-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nelson H. F. Beebe gave me an off-list report of a failure linking on Linux due to multiply-defined wcstouq and other helper functions from the glibc headers.
uname: Linux xxx 2.6.18-92.1.22.el5 #1 SMP Fri Dec 5 09:29:46 EST 2008 i686 GNU/Linux unspecified glibc version compiled with gcc4 gcc4 -std=gnu99 -g -O2 -Wl,-rpath,/usr/local/lib -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o ../lib/libm4.a -lm /usr/local/lib/libsigsegv.a -lc ../lib/libm4.a(vasnprintf.o): In function `wcstouq': /usr/include/wchar.h:585: multiple definition of `wcstouq' ../lib/libm4.a(quotearg.o):/usr/include/wchar.h:585: first defined here ../lib/libm4.a(vasnprintf.o): In function `wcstoq': /usr/include/wchar.h:580: multiple definition of `wcstoq' ../lib/libm4.a(quotearg.o):/usr/include/wchar.h:580: first defined here ... This seems like a bug in glibc's <wchar.h>, especially since gnulib does not mess with wcstouq. However, it would be nice if we could identify what is causing this failure (incorrectly inlined functions, in particular due to the change in semantics of static inline between older and newer gcc to meet C99 semantics?) and work around it in gnulib's replacement <wchar.h>. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklUaR8ACgkQ84KuGfSFAYBn+QCgv6pkOA6LiZqOlos3lOAn1FF+ C6YAoMPKIvUp9HkYe2tVGFZydML+0YUx =WmZN -----END PGP SIGNATURE-----