This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/16300] New: Bug in vendor /usr/include/net/if.h needs fixincluding


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]