This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15007] New: [PATCH] /usr/include/bits/stdlib-ldbl.h:35:1: error: 'qecvt' undeclared here (not in a function)
- From: "devurandom at gmx dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 09 Jan 2013 13:38:30 +0000
- Subject: [Bug libc/15007] New: [PATCH] /usr/include/bits/stdlib-ldbl.h:35:1: error: 'qecvt' undeclared here (not in a function)
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15007
Bug #: 15007
Summary: [PATCH] /usr/include/bits/stdlib-ldbl.h:35:1: error:
'qecvt' undeclared here (not in a function)
Product: glibc
Version: 2.16
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: devurandom@gmx.net
CC: drepper.fsp@gmail.com
Classification: Unclassified
Created attachment 6805
--> http://sourceware.org/bugzilla/attachment.cgi?id=6805
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.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.