pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45324: gcc45 breaks comms/hylafax build



>Number:         45324
>Category:       pkg
>Synopsis:       gcc45 breaks comms/hylafax build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 02 19:30:00 +0000 2011
>Originator:     Hauke Fath
>Release:        NetBSD 5.99.55
>Organization:
Falling Raindrops
>Environment:
        
        
System: NetBSD pizza.causeuse.org 5.99.55 NetBSD 5.99.55 (PIZZA_PF) #0: Thu Sep 
1 16:56:35 CEST 2011 
hf@Hochstuhl:/var/obj/netbsd-builds/developer/sparc/sys/arch/sparc/compile/PIZZA_PF
 sparc
Architecture: sparc
Machine: sparc
>Description:

        The hylafax pkg build fails early in the configure phase.

[...]
===> Configuring for hylafax-4.2.5nb5
=> Checking for portability problems in extracted files

Configuring HylaFAX (tm) (aka FlexFAX) 4.2.5.

If configure does the wrong thing, check the file config.log for
information that may help you understand what went wrong.

Reading site-wide parameters from ./config.site.
Oh no, not another sparc-unknown-netbsdelf5.99.55 system...
Using /usr/bin/gcc for a C compiler (set CC to override).
Looks like /usr/bin/gcc supports the -g option.
... but not together with the -O option, not using it.
Looks like /usr/bin/gcc has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Looks like /usr/bin/gcc supports the -M option for generating make dependencies.
Using /usr/bin/c++ for a C++ compiler (set CXX to override).
Looks like /usr/bin/c++ supports the -g option.
Using " -g" for C++ compiler options.
Looks like /usr/bin/c++ has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Using /usr/bin/make to configure the software.
Using "include file" syntax for Makefiles.
Looks like /usr/bin/make supports "sinclude" for conditional includes.
Using /usr/pkg/bin/bash to process command scripts.

Missing C++ runtime support for c++ (/usr/bin/c++).

Compilation of the following test program failed:

----------------------------------------------------------
#include "iostream.h"
int main(){ cout << "Hello World!" << endl; return 0;}
----------------------------------------------------------

Usually this is because you do not have a standard C++ library
installed on your system or you have installed it in a non-standard
location.  If you do not have a C++ library installed, then you must
install it.  If it is installed in a non-standard location, then you
should configure the compiler so that it will automatically be found.

(For recent gcc releases this is libstdc++, for older gcc - libg++)

Unrecoverable error!  Once you've corrected the problem rerun this script.
*** Error code 1

Stop.
make: stopped in /u1/netbsd-developer/src/pkgsrc/comms/hylafax
*** Error code 1


        The config.log has


Fri Sep  2 20:49:10 CEST 2011

This file contains information that was captured from running the configure
script.  Lines that begin with a "+" are command lines echoed by the
shell.  Other lines are the output of commands; usually the contents of
test case files or the output from compilers.  If configure does the
wrong thing, use the information captured here to aid in debugging.

+ '.' './config.site'
TARGET: sparc-unknown-netbsdelf5.99.55
RELEASE: 5.99.55
+ cat 'dummy.c'
main(int argc, char* argv) { exit(0); }
+ cat 'xgnu.c'
#ifdef __GNUC__
yes;
#endif
+ + egrep yes
gcc -E 'xgnu.c'
yes;
+ gcc -o dummy 'dummy.c'
dummy.c: In function 'main':
dummy.c:1:30: warning: incompatible implicit declaration of built-in function 
'exit'
+ /usr/bin/gcc -g -c 'dummy.c'
dummy.c: In function 'main':
dummy.c:1:30: warning: incompatible implicit declaration of built-in function 
'exit'
eval: 1: Syntax error: "(" unexpected
+ cat 'dummy.c'
#define ansiIDENT(a) a
#define ansiCAT(a,b) a##b
A=ansiCAT(ANSI,CPP);
+ + grep/usr/bin/gcc ANSICPP -E
 'dummy.c'
A=ANSICPP;
+ cat 'dummy.c'
#ifdef __ANSI_CPP__
yes
#else
no
#endif
+ /usr/bin/gcc -E 'dummy.c'
+ grep no
no
+ cat 'dummy.c'
main(int argc, char* argv) { exit(0); }
+ + grep '^dummy.o[     ]*:[    ]*dummy.c'
/usr/bin/gcc -c -M 'dummy.c'
dummy.o: dummy.c
+ cat 'dummy.C'
class foo {
public:
    struct bar {
        int a;
        bar();
    };
    foo();
};
foo::bar::bar() { a = 0; }
foo::foo() { bar x; }
int main() { foo t; return 0; }
+ cat 'xgnu.c'
#ifdef __GNUC__
yes;
#endif
+ egrep+  yes
'c++' -E 'xgnu.c'
yes;
+ 'c++' -o dummy 'dummy.C'
+ '/usr/bin/c++' -c -g 'dummy.C'
+ cat 'dummy.C'
#define ansiIDENT(a) a
#define ansiCAT(a,b) a##b
A=ansiCAT(ANSI,CPP);
+ + grep'/usr/bin/c++' ANSICPP -E
 'dummy.C'
A=ANSICPP;
+ + grep no
'/usr/bin/c++' -E 'dummy.C'
no
+ cat 'dummy.C'
/* this comment should be stripped */
something else just in case
and another line also
+ + grep comment
'/usr/bin/c++' -E 'dummy.C'
+ cat 'dummy.C'
int main()
{
    bool success = false;
    return 0;
}
+ '/usr/bin/c++' 'dummy.C'
+ cat confMakefile
include xmakeinc
all:
+ /usr/bin/make -f confMakefile
+ cat confMakefile
sinclude xMakedepend
all:
+ /usr/bin/make -f confMakefile
+ cat 'dummy.C'
#include "new.h"
struct foo {
    int x;
    foo();
    ~foo();
};
foo::foo() {}
foo::~foo() {}
int main()
{
    foo* ptr = 0;
    foo* a = new(ptr) foo;
    a->x = 0;
    delete a;
    return 0;
}
+ '/usr/bin/c++' -o dummy 'dummy.C'
dummy.C:1:17: fatal error: new.h: No such file or directory
compilation terminated.
+ '/usr/bin/c++' -o dummy 'dummy.C' '-lg++'
dummy.C:1:17: fatal error: new.h: No such file or directory
compilation terminated.
+ /usr/bin/make -f confMakefile t
/usr/bin/c++        -D__ANSI_CPP__ -I. -I. -I././regex -I.  -I././util 
-I/usr/pkg/include -g -O2 -mcpu=supersparc -pipe -I/usr/include 
-I/usr/pkg/include  t.c++
t.c++:1:22: fatal error: iostream.h: No such file or directory
compilation terminated.
*** Error code 1

Stop.
make: stopped in /var/obj/pkgsrc/comms/hylafax/work/hylafax-4.2.5


>How-To-Repeat:

        Build package on -current system with gcc 4.5.

>Fix:
        Add missing header files (how? where from?).

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index