public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15007] New: [PATCH] /usr/include/bits/stdlib-ldbl.h:35:1: error: 'qecvt' undeclared here (not in a function)
@ 2013-01-09 13:39 devurandom at gmx dot net
  2013-01-09 13:39 ` [Bug libc/15007] " devurandom at gmx dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: devurandom at gmx dot net @ 2013-01-09 13:39 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-13 19:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-09 13:39 [Bug libc/15007] New: [PATCH] /usr/include/bits/stdlib-ldbl.h:35:1: error: 'qecvt' undeclared here (not in a function) devurandom at gmx dot net
2013-01-09 13:39 ` [Bug libc/15007] " devurandom at gmx dot net
2013-01-09 17:33 ` joseph at codesourcery dot com
2013-01-09 22:57 ` [Bug libc/15007] stdlib/bits/stdlib-ldbl.h: mismatch of guards around qecvt & friends vapier at gentoo dot org
2013-03-30 15:12 ` devurandom at gmx dot net
2013-03-30 15:12 ` devurandom at gmx dot net
2013-04-03 16:51 ` aj at suse dot de
2013-04-03 17:23 ` devurandom at gmx dot net
2013-04-27 14:25 ` aj at suse dot de
2014-06-13 19:05 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).