public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE
@ 2012-02-27 21:18 msm at freescale dot com
  2012-02-27 21:23 ` [Bug stdio/13775] " roland at gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: msm at freescale dot com @ 2012-02-27 21:18 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13775

             Bug #: 13775
           Summary: dprintf and vdprintf are undefined if -D_GNU_SOURCE
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
        AssignedTo: unassigned@sourceware.org
        ReportedBy: msm@freescale.com
    Classification: Unclassified


See the following errors:

# gcc -o test -D_GNU_SOURCE  test.c    
In file included from /usr/include/stdio.h:933:0,
                 from test.c:1:
/usr/include/bits/stdio-ldbl.h:67:1: error: 'vdprintf' undeclared here (not in
a function)
/usr/include/bits/stdio-ldbl.h:68:1: error: 'dprintf' undeclared here (not in a
function)
test.c: In function 'main':
test.c:9:16: error: called object 'dprintf' is not a function

Seems to be related to in appropriate ifdef. Full test case below:

https://gist.github.com/1927104

-- 
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] 6+ messages in thread

* [Bug stdio/13775] dprintf and vdprintf are undefined if -D_GNU_SOURCE
  2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
@ 2012-02-27 21:23 ` roland at gnu dot org
  2012-02-27 22:04 ` roland at gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2012-02-27 21:23 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13775

Roland McGrath <roland at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |roland at gnu dot org
         AssignedTo|unassigned at sourceware    |roland at gnu dot org
                   |dot org                     |

--- Comment #1 from Roland McGrath <roland at gnu dot org> 2012-02-27 21:22:31 UTC ---
The report omits the essential information, which is the configuration.
This only affects __LDBL_COMPAT configurations such as powerpc.

-- 
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] 6+ messages in thread

* [Bug stdio/13775] dprintf and vdprintf are undefined if -D_GNU_SOURCE
  2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
  2012-02-27 21:23 ` [Bug stdio/13775] " roland at gnu dot org
@ 2012-02-27 22:04 ` roland at gnu dot org
  2012-02-28 17:01 ` msm at freescale dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2012-02-27 22:04 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13775

Roland McGrath <roland at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Roland McGrath <roland at gnu dot org> 2012-02-27 22:03:26 UTC ---
I committed a fix on the trunk (commit 36c8acb) though I did not test it on
an affected configuration.

I don't think the bug actually appeared for this case on the trunk
beforehand, because _GNU_SOURCE gets __USE_XOPEN2K8.  But probably there
was some other bug in 2.13 like _POSIX_C_SOURCE defaulting wrongly for
_GNU_SOURCE.

-- 
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] 6+ messages in thread

* [Bug stdio/13775] dprintf and vdprintf are undefined if -D_GNU_SOURCE
  2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
  2012-02-27 21:23 ` [Bug stdio/13775] " roland at gnu dot org
  2012-02-27 22:04 ` roland at gnu dot org
@ 2012-02-28 17:01 ` msm at freescale dot com
  2012-02-28 17:36 ` roland at gnu dot org
  2014-06-26 14:18 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: msm at freescale dot com @ 2012-02-28 17:01 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13775

--- Comment #3 from Matthew McClintock <msm at freescale dot com> 2012-02-28 17:00:48 UTC ---
Rebuilding gcc with 'with-long-double-128' also fixes this issue... that makes
sense though, since these DEFINES are sort of related to that bit?

Going to retest with just the header fix now.

-M

-- 
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] 6+ messages in thread

* [Bug stdio/13775] dprintf and vdprintf are undefined if -D_GNU_SOURCE
  2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
                   ` (2 preceding siblings ...)
  2012-02-28 17:01 ` msm at freescale dot com
@ 2012-02-28 17:36 ` roland at gnu dot org
  2014-06-26 14:18 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2012-02-28 17:36 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13775

--- Comment #4 from Roland McGrath <roland at gnu dot org> 2012-02-28 17:36:15 UTC ---
Yes, that's expected.  The problematic code is for machines that can have a new
long double type, but previously didn't.

-- 
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] 6+ messages in thread

* [Bug stdio/13775] dprintf and vdprintf are undefined if -D_GNU_SOURCE
  2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
                   ` (3 preceding siblings ...)
  2012-02-28 17:36 ` roland at gnu dot org
@ 2014-06-26 14:18 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 14:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13775

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-26 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 21:18 [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE msm at freescale dot com
2012-02-27 21:23 ` [Bug stdio/13775] " roland at gnu dot org
2012-02-27 22:04 ` roland at gnu dot org
2012-02-28 17:01 ` msm at freescale dot com
2012-02-28 17:36 ` roland at gnu dot org
2014-06-26 14:18 ` 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).