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

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

Re: [Edward S. Peschko] gettext and glibc


From: Bruno Haible
Subject: Re: [Edward S. Peschko] gettext and glibc
Date: Sun, 22 Feb 2004 14:41:26 +0100
User-agent: KMail/1.5

Edward Peschko wrote:
> I'm compiling on solaris2.8 with gcc, no glibc.
> ...
> However, if I compile 0.13.1 - everything *seems* fine, until I get to trying 
> to actually *use* the library with other programs and I get stuff
> like:
> 
> undefined reference to libintl_gettext, etc.
> ...
> when I try 
> to configure packages, it says it finds libintl just fine; but it neglects to 
> add -lintl onto the generated makefiles.

Hi,

Please take a look at
http://www.haible.de/bruno/gettext-FAQ.html#integrating_undefined

> I'm wondering if this is from glibc-isms in the code

Some packages indeed don't use AM_GNU_GETTEXT and instead have glibc-isms
of the form "if a gettext() function is found in libc, don't use libintl".
Which of course cannot work with Solaris, since the Solaris libc gettext()
function is incompatible with the GNU gettext() function. (And this is why
the prefixed name libintl_gettext is used: it guarantees a link error instead
of a core dump at run time.)

Bruno





reply via email to

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