bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gettext-0.11.5: build failure on Compaq/DEC Alpha OSF/1 4.0


From: Bruno Haible
Subject: Re: gettext-0.11.5: build failure on Compaq/DEC Alpha OSF/1 4.0
Date: Mon, 16 Sep 2002 22:38:13 +0200 (CEST)

Nelson H. F. Beebe writes:
> The build of gettext-0.11.5 with gcc-2.95.3 on Compaq/DEC Alpha OSF/1 4.0
> fails with this strange error:
> 
>       gcc -g -O2 -o .libs/gettext gettext.o ../lib/basename.o ../lib/error.o \
>               ../lib/getopt.o ../lib/getopt1.o ../lib/strtoul.o 
> ../lib/xmalloc.o \
>               ../intl/.libs/libintl.so -L/usr/local/lib -lc \
>               /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
>       /usr/ccs/bin/ld:
>       Unresolved:
>       abort
>       collect2: ld returned 1 exit status
> 
> The missing abort function IS found in /usr/lib/libc.a

It is also in /shlib/libc.so which is the library that is used here.

>       /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0f/2.95.3/collect2 -G 8 -O3 \
>               -call_shared -o .libs/gettext /usr/lib/cmplrs/cc/crt0.o \
>               -L/usr/local/lib \
>               -L/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0f/2.95.3 \
>               -L/usr/lib/cmplrs/cc -L/usr/local/lib gettext.o \
>               ../lib/basename.o ../lib/error.o ../lib/getopt.o \
>               ../lib/getopt1.o ../lib/strtoul.o ../lib/xmalloc.o \
>               ../intl/.libs/libintl.so -lc /usr/local/lib/libiconv.so -rpath \
>               /usr/local/lib -lgcc -lc -lgcc
> 
> I tried running this collect2 command directly with -lc at the end,
> and with /usr/lib/libc.a at the end, but abort is still unresolved.

When you remove the first "-lc" here, the link performs fine.  It
seems that "-lc" before the first "-lgcc" causes the problem, whereas
"-lc" after it works. The strange thing is that I observed the same
behaviour with a totally different compiler (Intel cc on Linux/i386).

> I then switched to the native c89 compiler for a build in a
> freshly-unpacked copy of the .tar.gz distribution file.  This time,
> the build completed successfully, but there were a number of
> suspicious test failures that make me disinclined to run "make
> install":
> 
>       Couldn't set locale.
>       SKIP: lang-c
>       /usr/ccs/bin/ld:
>       Unresolved:
>       strcmp
>       abort
>       fprintf
>       bzero
>       collect2: ld returned 1 exit status
>       FAIL: lang-c++

Weird, but that can happen if you didn't specify a good C++ compiler.
(Environment variable CXX while running 'configure'.)

>       26079:./usey: /sbin/loader: Fatal Error: cannot map librpathy.so
>       make[3]: *** [check] Error 1
>       FAIL: rpath-2bbd

This one is a known test failure (see tests/rpath.README). It is not
very likely to hit you. "make install" should be OK.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]