public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
@ 2005-09-22 15:16 gerald at pfeifer dot com
  2005-09-22 15:20 ` [Bug libstdc++/24012] [3.4/4.0/4.1 " schwab at suse dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: gerald at pfeifer dot com @ 2005-09-22 15:16 UTC (permalink / raw)
  To: gcc-bugs

The following simple program fails to compile on FreeBSD 5.4:  
  
  #define _POSIX_C_SOURCE 1   
  #include <iostream>   
  
g++ issues the following error message:   
  
  /gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl  
ude/c++/4.1.0/cwchar:166:   
error: '::vfwscanf' has not been declared   
  /gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl   
ude/c++/4.1.0/cwchar:170:   
error: '::vswscanf' has not been declared   
  /gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl   
ude/c++/4.1.0/cwchar:174:   
error: '::vwscanf' has not been declared   
  /gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl   
ude/c++/4.1.0/cwchar:191:   
error: '::wcstof' has not been declared   
   
The FreeBSD 5.4 system compiler, which basically is GCC 3.4.2, has the 
same issue.

-- 
           Summary: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks
                    #include <iostream>
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gerald at pfeifer dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-unknown-freebsd5.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug libstdc++/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
@ 2005-09-22 15:20 ` schwab at suse dot de
  2005-09-22 15:21 ` [Bug target/24012] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: schwab at suse dot de @ 2005-09-22 15:20 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4,4.0,4,1 regression]    |[3.4/4.0/4.1 regression]
                   |#define _POSIX_C_SOURCE     |#define _POSIX_C_SOURCE
                   |breaks #include <iostream>  |breaks #include <iostream>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
  2005-09-22 15:20 ` [Bug libstdc++/24012] [3.4/4.0/4.1 " schwab at suse dot de
@ 2005-09-22 15:21 ` pinskia at gcc dot gnu dot org
  2005-09-22 15:38 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-22 15:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-22 15:20 -------
This is a target issue.  The way we work around this on GNU/Linux is that we define _GNU_SOURCE all 
the time.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libstdc++                   |target
   GCC host triplet|i386-unknown-freebsd5.4     |
 GCC target triplet|                            |i386-unknown-freebsd5.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
  2005-09-22 15:20 ` [Bug libstdc++/24012] [3.4/4.0/4.1 " schwab at suse dot de
  2005-09-22 15:21 ` [Bug target/24012] " pinskia at gcc dot gnu dot org
@ 2005-09-22 15:38 ` pinskia at gcc dot gnu dot org
  2005-09-22 15:50 ` gerald at pfeifer dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-22 15:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-22 15:37 -------
*** Bug 24013 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
                   ` (2 preceding siblings ...)
  2005-09-22 15:38 ` pinskia at gcc dot gnu dot org
@ 2005-09-22 15:50 ` gerald at pfeifer dot com
  2005-09-22 19:21 ` ljrittle at gcc dot gnu dot org
  2005-09-24 16:34 ` gerald at pfeifer dot com
  5 siblings, 0 replies; 8+ messages in thread
From: gerald at pfeifer dot com @ 2005-09-22 15:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rittle at latour dot waar
                   |                            |dot labs dot mot dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
                   ` (3 preceding siblings ...)
  2005-09-22 15:50 ` gerald at pfeifer dot com
@ 2005-09-22 19:21 ` ljrittle at gcc dot gnu dot org
  2005-09-24 16:34 ` gerald at pfeifer dot com
  5 siblings, 0 replies; 8+ messages in thread
From: ljrittle at gcc dot gnu dot org @ 2005-09-22 19:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ljrittle at gcc dot gnu dot org  2005-09-22 19:20 -------
The better way to fix this IMHO is to mirror how we fixed other conditionally
missing symbols. Add a _DYNAMIC hook, add the support guards in various places
where the HAVE_X guards exist, add a correctly written define in os_defines.h to
describe the OS-level macro used to key the visibility of the "standard"
function or other symbol.  See the current FreeBSD os_defines.h for some examples.

In my further opinion, this is merely a QoI issue (granted, annoying): The user
defining a macro in implementor space may get this type of result.

Regards,
Loren

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-22 19:20:40
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
  2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
                   ` (4 preceding siblings ...)
  2005-09-22 19:21 ` ljrittle at gcc dot gnu dot org
@ 2005-09-24 16:34 ` gerald at pfeifer dot com
  5 siblings, 0 replies; 8+ messages in thread
From: gerald at pfeifer dot com @ 2005-09-24 16:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gerald at pfeifer dot com  2005-09-24 16:34 -------
Historically, on some systems one had to define _POSIX_C_SOURCE to get at
fileno(), which has been used by code generated by flex() and probably others.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

* [Bug target/24012] [3.4/4.0/4.1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
       [not found] <bug-24012-231@http.gcc.gnu.org/bugzilla/>
@ 2005-10-30 23:22 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 23:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P5
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012


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

end of thread, other threads:[~2005-10-30 23:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 15:16 [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream> gerald at pfeifer dot com
2005-09-22 15:20 ` [Bug libstdc++/24012] [3.4/4.0/4.1 " schwab at suse dot de
2005-09-22 15:21 ` [Bug target/24012] " pinskia at gcc dot gnu dot org
2005-09-22 15:38 ` pinskia at gcc dot gnu dot org
2005-09-22 15:50 ` gerald at pfeifer dot com
2005-09-22 19:21 ` ljrittle at gcc dot gnu dot org
2005-09-24 16:34 ` gerald at pfeifer dot com
     [not found] <bug-24012-231@http.gcc.gnu.org/bugzilla/>
2005-10-30 23:22 ` pinskia at gcc dot gnu dot org

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).