[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc works on the command line, not with autoconf
From: |
Denis Vlasenko |
Subject: |
Re: gcc works on the command line, not with autoconf |
Date: |
Wed, 27 Oct 2004 15:55:02 +0300 |
User-agent: |
KMail/1.5.4 |
> Now, configure scripts use gcc3 as wanted. From the command line, gcc3
> is OK:
>
> preston:~/tmp % cat conftest.c
> int
> main ()
> {
> ;
> return 0;
> }
> preston:~/tmp % /usr/pkg/gcc3/bin/gcc conftest.c
> preston:~/tmp %
>
> But from configure (I test with Quagga but it is the same problem with
> every configure file):
>
> preston:pkgsrc/net/quagga % sudo make
> ...
> => Checksum OK for quagga-0.96.3.tar.gz.
> ===> Extracting for quagga-0.96.3nb2
> ...
> checking build system type... sparc64-unknown-netbsd1.6.2
> checking host system type... sparc64--netbsd
> checking for sparc64--netbsd-gcc... /usr/pkg/gcc3/bin/gcc
> checking for C compiler default output file name... configure: error: C
> compiler
> +cannot create executables
> See `config.log' for more details.
> *** Error code 77
>
> Stop.
> make: stopped in /usr/pkgsrc/net/quagga
> *** Error code 1
>
> config.log has:
>
> configure:2211: checking for C compiler default output file name
> configure:2214: /usr/pkg/gcc3/bin/gcc -O -ffixed-g4 -I/usr/pkg/include
> -L/usr/pkg/lib conftest.c -Wl,-R/usr/pkg/lib >&5
> /usr/bin/ld: cannot find -lgcc_eh
> collect2: ld returned 1 exit status
> configure:2217: $? = 1
> configure: failed program was:
>
> Funny, the same command line works:
>
> preston:~/tmp % /usr/pkg/gcc3/bin/gcc -O -ffixed-g4 -I/usr/pkg/include
> -L/usr/pkg/lib conftest.c -Wl,-R/usr/pkg/lib
> preston:~/tmp %
Most probably it depends on some enviroment variable.
--
vda