bug-gnulib
[Top][All Lists]
Advanced

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

multiply defined wcstouq on Linux


From: Eric Blake
Subject: multiply defined wcstouq on Linux
Date: Thu, 25 Dec 2008 22:18:23 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----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             address@hidden
-----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-----




reply via email to

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