Created attachment 6805 [details] glibc-2.16.0-stdlib-ldbl-qecvt.patch libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include/opensm -I./../include -Wall -g -D_XOPEN_SOURCE=6 00 -D_BSD_SOURCE=1 -pipe -O2 -mcpu=cell -mabi=altivec -mgen-cell-microcode -c cl_dispatcher.c -fPIC -DPIC -o .libs/libosmcomp_la-cl_dispatcher.o In file included from /usr/include/stdlib.h:960:0, from cl_dispatcher.c:46: /usr/include/bits/stdlib-ldbl.h:35:1: error: 'qecvt' undeclared here (not in a function) /usr/include/bits/stdlib-ldbl.h:36:1: error: 'qfcvt' undeclared here (not in a function) /usr/include/bits/stdlib-ldbl.h:37:1: error: 'qgcvt' undeclared here (not in a function) /usr/include/bits/stdlib-ldbl.h:38:1: error: 'qecvt_r' undeclared here (not in a function) /usr/include/bits/stdlib-ldbl.h:39:1: error: 'qfcvt_r' undeclared here (not in a function) The problem was caused by mismatching #ifdef guards: The reference in stdlib-ldbl.h was guarded by "defined __USE_SVID || defined __USE_XOPEN_EXTENDED" while stdlib.h guarded the declaration with "(defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) || defined __USE_SVID". Apparently __USE_XOPEN2K is defined in my case. Attached patch fixes the issue.
On Wed, 9 Jan 2013, devurandom at gmx dot net wrote: > --> http://sourceware.org/bugzilla/attachment.cgi?id=6805 > glibc-2.16.0-stdlib-ldbl-qecvt.patch The conditions on these functions in stdlib.h changed in 2.17 to fix bug 14824, so a patch to stdlib-ldbl.h will need to match the current fixed version of stdlib.h rather than an older version. Please send patches to libc-alpha@sourceware.org - with [BZ #15007] in the ChangeLog entry to reference this bug.
Created attachment 6962 [details] glibc-2.17-stdlib-ldbl-qecvt.patch (In reply to comment #1) > The conditions on these functions in stdlib.h changed in 2.17 to fix bug > 14824, so a patch to stdlib-ldbl.h will need to match the current fixed > version of stdlib.h rather than an older version. Attached patch was created against glibc-2.17, but it looks exactly the same as the old patch - apparently the change of conditions was reverted before release.
devurandom, could you give me your full name for a ChangeLog entry, please?
(In reply to comment #3) > devurandom, could you give me your full name for a ChangeLog entry, please? Dennis Schridde Thanks for the credit. :)
We fixed this slightly different now for glibc 2.18 with this commit: commit 4220c3ef773c0e7fff7c95ecd7cff69886fe4c0e Author: Andreas Jaeger <aj@suse.de> Date: Sat Apr 27 16:17:55 2013 +0200 Fix guards for qecvt [BZ #15007] * stdlib/stdlib.h: Update guards for qecvt. * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with <stdlib.h>. Thanks for the report, Andreas