From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15356 invoked by alias); 27 Feb 2012 21:18:51 -0000 Received: (qmail 15345 invoked by uid 22791); 27 Feb 2012 21:18:49 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Feb 2012 21:18:34 +0000 From: "msm at freescale dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE Date: Mon, 27 Feb 2012 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msm at freescale dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00507.txt.bz2 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.