public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration
@ 2003-07-03  6:01 rbrown64 at csc dot com dot au
  2003-07-12  2:56 ` [Bug target/11419] " neroden at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rbrown64 at csc dot com dot au @ 2003-07-03  6:01 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: libstdc++ basic_file.cc compile fails with ioctl
                    redeclaration
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbrown64 at csc dot com dot au
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-unknown-sysv5UnixWare7.1.0
  GCC host triplet: i686-unknown-sysv5UnixWare7.1.0
GCC target triplet: i686-unknown-sysv5UnixWare7.1.0

The change to fix PR bootstrap/11272 on -06-21, including <unistd.h>
causes the compile of basic_file.cc to fail.
sys/sockio.h included from sys/ioctl.h declares a static ioctl causing the
error below. Should fixinclude sys/sockio.h to #define ioctl to avoid the
redeclaration - does both sys/sockio.h and unistd.h need fixing to be order
independant.

Reading specs from /devel/src/gcc-20030630.chk/gcc/specs
Configured with: ../gcc-20030630/configure --enable-checking --with-gnu-as
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
Thread model: single
gcc version 3.3.1 20030630 (prerelease)
 /devel/src/gcc-20030630.chk/gcc/cc1plus -E -D__GNUG__=3 -quiet -nostdinc++
-nostdinc++ -v
-I/devel/src/gcc-20030630.chk/i686-unknown-sysv5UnixWare7.1.0/libstdc++-v3/include/i686-unknown-sysv5UnixWare7.1.0
-I/devel/src/gcc-20030630.chk/i686-unknown-sysv5UnixWare7.1.0/libstdc++-v3/include
-I../../../../gcc-20030630/libstdc++-v3/libsupc++
-I../../../../gcc-20030630/libstdc++-v3/libmath -iprefix
/devel/src/gcc-20030630.chk/gcc/../lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.1/
-isystem /devel/src/gcc-20030630.chk/gcc/include -isystem
/usr/local/i686-unknown-sysv5UnixWare7.1.0/bin/include -isystem
/usr/local/i686-unknown-sysv5UnixWare7.1.0/lib/include -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -isystem
/usr/local/i686-unknown-sysv5UnixWare7.1.0/include basic_file.cc -Wall
-Wno-format -W -Wwrite-strings -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2
basic_file.ii
ignoring nonexistent directory
"/usr/local/i686-unknown-sysv5UnixWare7.1.0/bin/include"
ignoring nonexistent directory
"/usr/local/i686-unknown-sysv5UnixWare7.1.0/lib/include"
ignoring nonexistent directory "/usr/local/i686-unknown-sysv5UnixWare7.1.0/include"
ignoring nonexistent directory
"/devel/src/gcc-20030630.chk/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.1/include"
ignoring nonexistent directory
"/devel/src/gcc-20030630.chk/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.1/../../../../i686-unknown-sysv5UnixWare7.1.0/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.1/include"
ignoring nonexistent directory "/usr/local/i686-unknown-sysv5UnixWare7.1.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /devel/src/gcc-20030630.chk/i686-unknown-sysv5UnixWare7.1.0/libstdc++-v3/include/i686-unknown-sysv5UnixWare7.1.0
 /devel/src/gcc-20030630.chk/i686-unknown-sysv5UnixWare7.1.0/libstdc++-v3/include
 ../../../../gcc-20030630/libstdc++-v3/libsupc++
 ../../../../gcc-20030630/libstdc++-v3/libmath
 /devel/src/gcc-20030630.chk/gcc/include
 /usr/local/include
 /usr/include
End of search list.
 /devel/src/gcc-20030630.chk/gcc/cc1plus -fpreprocessed basic_file.ii -quiet
-dumpbase basic_file.cc -dN -auxbase-strip basic_file.o -g -O2 -Wall -Wno-format
-W -Wwrite-strings -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -o basic_file.s
GNU C++ version 3.3.1 20030630 (prerelease) (i686-unknown-sysv5UnixWare7.1.0)
        compiled by GNU C version 3.3.1 20030630 (prerelease).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
In file included from /usr/include/sys/ioctl.h:51,
                 from basic_file.cc:40:
/usr/include/sys/sockio.h: In function `int ioctl(int, int, ...)':
/usr/include/sys/sockio.h:95: error: `int ioctl(int, int, ...)' was declared 
   `extern' and later `static'
/usr/include/unistd.h:264: error: previous declaration of `int ioctl(int, int, 
   ...)'


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

* [Bug target/11419] libstdc++ basic_file.cc compile fails with ioctl redeclaration
  2003-07-03  6:01 [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration rbrown64 at csc dot com dot au
@ 2003-07-12  2:56 ` neroden at gcc dot gnu dot org
  2003-11-09 23:27 ` pinskia at gcc dot gnu dot org
  2003-12-19 10:59 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-12  2:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


neroden at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bkorb at veritas dot com
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


------- Additional Comments From neroden at gcc dot gnu dot org  2003-07-12 02:56 -------
Siccing this on Bruce as fixincludes maintainer. :-)


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

* [Bug target/11419] libstdc++ basic_file.cc compile fails with ioctl redeclaration
  2003-07-03  6:01 [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration rbrown64 at csc dot com dot au
  2003-07-12  2:56 ` [Bug target/11419] " neroden at gcc dot gnu dot org
@ 2003-11-09 23:27 ` pinskia at gcc dot gnu dot org
  2003-12-19 10:59 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-09 23:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-09 23:27 -------
UnixWare is SCO's product so assigning to jkj@sco.com.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bkorb at veritas dot com    |jkj at sco dot com


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


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

* [Bug target/11419] libstdc++ basic_file.cc compile fails with ioctl redeclaration
  2003-07-03  6:01 [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration rbrown64 at csc dot com dot au
  2003-07-12  2:56 ` [Bug target/11419] " neroden at gcc dot gnu dot org
  2003-11-09 23:27 ` pinskia at gcc dot gnu dot org
@ 2003-12-19 10:59 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19 10:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.0                       |---


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


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

end of thread, other threads:[~2003-12-19 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-03  6:01 [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration rbrown64 at csc dot com dot au
2003-07-12  2:56 ` [Bug target/11419] " neroden at gcc dot gnu dot org
2003-11-09 23:27 ` pinskia at gcc dot gnu dot org
2003-12-19 10:59 ` 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).