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

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

problems building/linking gettext on powerpc-apple-darwin6.3


From: Ruth and Dave O'Riva
Subject: problems building/linking gettext on powerpc-apple-darwin6.3
Date: Sun, 2 Feb 2003 09:44:57 -0800

I've been trying to build gettext-0.11.5 on my Mac (OSX 10.2.3), and have been encountering the (apparently) common "undefined symbol: libintl_gettext" error when attempting to link anything, including libgettext, against libintl.

I tracked this down to a problem that looks pretty ugly; when libintl.h tries to do an asm redirect, it issues _INTL_ASM(libintl_gettext), which expands to __asm__( "libintl_gettext" ). Unfortunately, the version of gcc that "came" with my Mac (claiming to be gcc 3.1 (prerelease)), requires that line to read __asm__("_libintll_gettext") in order for everything to link correctly.

There is another define referenced by the _INTL_ASM macro, __USER_LABEL_PREFIX__, that looks like it should actually contain that underscore. However, it does not, and I haven't been able to find a place where it gets defined anywhere. When __USER_LABEL_PREFIX__ is defined to be a single underscore ("_"), then everything magically starts to work, and I can go on to build internationalized versions of glib, etc...

Hope this is helpful in some way. I burned a couple of days tracking it down, and ended up having to hack the underscore in. Please mail back if you'd like more detail - I can provide .configure logs, make sessions, etc. if desired.




reply via email to

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