public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rbrown64 at csc dot com dot au" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/11419] New: libstdc++ basic_file.cc compile fails with ioctl redeclaration Date: Thu, 03 Jul 2003 06:01:00 -0000 [thread overview] Message-ID: <20030703060054.11419.rbrown64@csc.com.au> (raw) 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, ...)'
next reply other threads:[~2003-07-03 6:01 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-03 6:01 rbrown64 at csc dot com dot au [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030703060054.11419.rbrown64@csc.com.au \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).