public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16300] New: Bug in vendor /usr/include/net/if.h needs fixincluding
@ 2004-06-30 16:39 skunk at iskunk dot org
  2004-07-01  1:17 ` [Bug target/16300] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 20+ messages in thread
From: skunk at iskunk dot org @ 2004-06-30 16:39 UTC (permalink / raw)
  To: gcc-bugs

This error came up in bootstrapping:

----(cut here)----
/mnt/scratch/gcc-3.4.0/gcc/xgcc -shared-libgcc -B/mnt/scratch/gcc-3.4.0/gcc/
-nostdinc++ -L/mnt/scratch/gcc-3.4.0/alphaev56-dec-osf4.0g/libstdc++-v3/src
-L/mnt/scratch/gcc-3.4.0/alphaev56-dec-osf4.0g/libstdc++-v3/src/.libs
-B/mnt/freeport/arch/tru64/alphaev56-dec-osf4.0g/bin/
-B/mnt/freeport/arch/tru64/alphaev56-dec-osf4.0g/lib/ -isystem
/mnt/freeport/arch/tru64/alphaev56-dec-osf4.0g/include -isystem
/mnt/freeport/arch/tru64/alphaev56-dec-osf4.0g/sys-include -DHAVE_CONFIG_H -I.
-I/mnt/freeport/src/gcc/current/libjava -I./include -I./gcj
-I/mnt/freeport/src/gcc/current/libjava -Iinclude
-I/mnt/freeport/src/gcc/current/libjava/include
-I/mnt/freeport/src/gcc/gcc-3.4.0/boehm-gc/include -pthread -DGC_OSF1_THREADS=1
-DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1
-I/mnt/freeport/src/gcc/current/libjava/libltdl
-I/mnt/freeport/src/gcc/current/libjava/libltdl
-I/mnt/freeport/src/gcc/current/libjava/.././libjava/../gcc
-I/mnt/freeport/src/gcc/current/libjava/../zlib
-I/mnt/freeport/src/gcc/current/libjava/../libffi/include -I../libffi/include
-O2 -g -mieee -fno-rtti -fnon-call-exceptions -pthread -fdollars-in-identifiers
-Wswitch-enum -mieee -W -Wall -D_GNU_SOURCE
-DPREFIX=\"/mnt/freeport/arch/tru64\" -DLIBDIR=\"/mnt/freeport/arch/tru64/lib\"
-DBOOT_CLASS_PATH=\"/mnt/freeport/arch/tru64/share/java/libgcj-3.4.0.jar\" -g
-O2 -mieee -MD -MT java/net/natNetworkInterface.lo -MF
java/net/natNetworkInterface.pp -c java/net/natNetworkInterface.cc -o
java/net/natNetworkInterface.o
In file included from java/net/natNetworkInterface.cc:35:
/usr/include/net/if.h:144: error: expected `;' before '}' token
/usr/include/net/if.h:144: error: expected `;' before '}' token
java/net/natNetworkInterface.cc: In static member function `static
java::util::Vector* java::net::NetworkInterface::getRealNetworkInterfaces()':
java/net/natNetworkInterface.cc:77: warning: comparison between signed and
unsigned integer expressions
gmake[3]: *** [java/net/natNetworkInterface.lo] Error 1
gmake[3]: Leaving directory `/mnt/scratch/gcc-3.4.0/alphaev56-dec-osf4.0g/libjava'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/mnt/scratch/gcc-3.4.0/alphaev56-dec-osf4.0g/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/mnt/scratch/gcc-3.4.0'
gmake: *** [bootstrap-lean] Error 2
----(cut here)----

Relevant snippet of the offending header file:

----(cut here)----
/*
 * struct used to identify virtual mac addresses. This are
 * created by the ARP code and will be used to identify non
 * default mac addresses. The list will be hashed to allow
 * for faster searches.
 * NOTE: that the flags field must be at the correct offset
 *       since this and the ifnet struct should be interchangable
 *       till a user can determin that this entry is a vmac ifnet
 */
struct vmac_ifnet {
        struct  vmac_ifnet *vmif_next;  /* the next structure in the list */
        char    *vmif_name;             /* name, e.g. ``en'' or ``lo'' */
        char    *vmif_version;          /* The version string.             */
        struct  sockaddr vmif_hwaddr;   /* address of interface */
        int     vmif_flags;             /* up/down, broadcast, etc. */
        int     vmif_refcnt;            /* last one out needs to delete this */
        struct  ifnet *vmif_ifnet;      /* point to the correct ifnet struct */
        struct  sockaddr vmif_paddr     /* protocol address */
};
----(cut here)----

Note the missing semicolon.

I was able to work around this by placing an edited if.h with other fixed
headers in gcc-3.4.0/gcc/include/root/usr/sys/include/net/.

-- 
           Summary: Bug in vendor /usr/include/net/if.h needs fixincluding
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: skunk at iskunk dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: alphaev56-dec-osf4.0g
  GCC host triplet: alphaev56-dec-osf4.0g
GCC target triplet: alphaev56-dec-osf4.0g


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


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <bug-16300-8784@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2009-08-07 21:13 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 16:39 [Bug libgcj/16300] New: Bug in vendor /usr/include/net/if.h needs fixincluding skunk at iskunk dot org
2004-07-01  1:17 ` [Bug target/16300] " pinskia at gcc dot gnu dot org
2004-10-13 12:52 ` giovannibajo at libero dot it
2004-10-13 13:04 ` giovannibajo at libero dot it
2004-10-15 22:25 ` skunk at iskunk dot org
2004-10-15 23:43 ` giovannibajo at libero dot it
2004-10-15 23:44 ` giovannibajo at libero dot it
2004-10-16  3:30 ` giovannibajo at libero dot it
2004-10-18  5:06 ` bkorb at veritas dot com
2004-10-18 13:37 ` giovannibajo at libero dot it
2004-10-18 15:16 ` skunk at iskunk dot org
2004-10-18 16:06 ` bkorb at veritas dot com
2004-10-20 20:14 ` skunk at iskunk dot org
2004-10-20 20:23 ` bkorb at veritas dot com
2004-10-28 21:07 ` skunk at iskunk dot org
2004-10-29  1:31 ` giovannibajo at libero dot it
     [not found] <bug-16300-8784@http.gcc.gnu.org/bugzilla/>
2007-02-01 17:19 ` skunk at iskunk dot org
2009-02-28  0:41 ` skunk at iskunk dot org
2009-02-28 16:39 ` bkorb at gnu dot org
2009-08-07 21:13 ` skunk at iskunk 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).