Clayton Smith <[EMAIL PROTECTED]> said: > This is with elinks-0.11.1. > I've been trying to debug figure it out.. > to answer how the lib.o is created... I think it is either of these: > > -------------------- > echo " [LD] src/intl/gettext/lib.o" && ld -r -o lib.o > bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o > dngettext.o explodename.o finddomain.o gettext.o intl-compat.o > l10nflist.o libintl.o loadmsgcat.o localcharset.o localealias.o > ngettext.o plural.o textdomain.o [and] > echo " [LD] src/intl/lib.o" && ld -r -o lib.o charsets.o `test > -e gettext/lib.o && echo gettext/lib.o`
Yup. I don't know the solution and I don't have time to play with it now, so I'll just ramble on here a bit, might be useful to someone... It's pretty unusual to link all those .o into a giant .o instead of archiving them in a .a, and it also makes it harder to track down where symbols definitions actually are. So elinks-devels...why is that being done? I'm having trouble finding clear documentation of the changes you've made from the official gettext distro. > Here is the command that runs that actually produces the error: > -------------------- > [EMAIL PROTECTED]/docs/downloads/elinks-0.11.1/src$ gcc -g -O2 -Wall > -fno-strict-aliasing -Wno-pointer-sign -o elinks lib.o -lssl -lcrypto > -ldl -lz -lbz2 -liconv > /usr/bin/ld: warning multiple definitions of symbol _locale_charset > lib.o definition of _locale_charset in section (__TEXT,__text) > /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libiconv.dylib(localcharset.o) > definition of _locale_charset There's long been a symbol with the same name in gettext (libintl) and iconv (libiconv). It usually only triggers a warning on OS X because each symbol lives in its own lib's namespace. If both definitions of the symbol wind up in the common namespace, however, there is a (fatal) collision. There might be a flag to instruct the linker to use symbols in the specific .o before those in the -l libs? The brute-force solution would be to rename the offending symbol in the elinks gettext. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks _______________________________________________ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
