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

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

Re: gettext 0.11 build failed on solaris 2.6


From: Eli Zaretskii
Subject: Re: gettext 0.11 build failed on solaris 2.6
Date: Fri, 01 Feb 2002 12:10:56 +0200

> From: Paul Lew <address@hidden>
> Date: Thu, 31 Jan 2002 17:05:55 -0800
> 
> Failed in linking phase:
> 
> Undefined                       first referenced
>  symbol                             in file
> __eprintf                           basename.lo

This is usually a sign that the linker was not instructed to scan
libgcc.a, because that's where __eprintf comes from.  GCC-compiled
object files include references to that function, so the linker needs
to find it.

Usually, this happens if GCC-compiled object files are linked by
invoking a compiler driver other than GCC.  You did seem to use GCC
all along, but the final portion of the build log (reproduced below)
does show that somehow the linker was not instructed to scan
libgcc.a.  The "-lc  -lc" part of the linker command line should have
been "-lc -lgcc -lc".

So I suspect some GCC installation snafu, which prevented GCC from
finding libgcc.a in the directories where it looks for libraries.
There's an extra blank between the two -lc, which probably hints at
GCC being unable to find libgcc.a.

> /usr/ccs/bin/ld -G -z defs -h libgettextlib-0.11.so -o 
> .libs/libgettextlib-0.11.so  argmatch.lo backupfile.lo addext.lo basename.lo 
> c-ctype.lo copy-file.lo error.lo execute.lo findprog.lo fstrcmp.lo 
> full-write.lo gcd.lo getopt.lo getopt1.lo hash.lo javacomp.lo javaexec.lo 
> linebreak.lo localcharset.lo mbswidth.lo obstack.lo concatpath.lo 
> pipe-bidi.lo pipe-in.lo pipe-out.lo progname.lo safe-read.lo sh-quote.lo 
> strtoul.lo tmpdir.lo wait-process.lo xerror.lo xmalloc.lo xstrdup.lo 
> xsetenv.lo stpcpy.lo stpncpy.lo vasprintf.lo getline.lo mkdtemp.lo setenv.lo  
> -R/auto/insbu-cnstools/build/gettext-0.11/intl/.libs 
> -R/auto/insbu-cnstools/lib -R/auto/insbu-cnstools/lib  
> -L/auto/insbu-cnstools/lib ../intl/.libs/libintl.so 
> /auto/insbu-cnstools/lib/libiconv.so -lc  -lc 
> Undefined                     first referenced
>  symbol                           in file
> __eprintf                           basename.lo
> ld: fatal: Symbol referencing errors. No output written to 
> .libs/libgettextlib-0.11.so
> make[2]: *** [libgettextlib.la] Error 1



reply via email to

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