This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
AF_INET6 and cygwin builds
- From: Eric Blake <ebb9 at byu dot net>
- To: java at gcc dot gnu dot org
- Cc: konqueror at gmx dot de
- Date: Tue, 05 Aug 2003 06:45:48 -0600
- Subject: AF_INET6 and cygwin builds
I'm trying to bootstrap gcj on i686-pc-cygwin, from CVS HEAD, but I am
running into an error:
/home/eblake/gcc-trunk/gcc/xgcc -shared-libgcc -B/home/eblake/gcc-trunk/gcc/
-nostdinc++ -L/home/eblake/gcc-trunk/i686-pc-cygwin/libstdc++-v3/src
-L/home/eblake/gcc-trunk/i686-pc-cygwin/libstdc++-v3/src/.libs
-B/home/eblake/gcc-3.4/i686-pc-cygwin/bin/
-B/home/eblake/gcc-3.4/i686-pc-cygwin/lib/ -isystem
/home/eblake/gcc-3.4/i686-pc-cygwin/include -isystem
/home/eblake/gcc-3.4/i686-pc-cygwin/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc/libjava -I./include -I./gcj -I../../../gcc/libjava -Iinclude
-I../../../gcc/libjava/include -I../../../gcc/libjava/../boehm-gc/include
-DGC_WIN32_THREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1
-DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1
-DATOMIC_UNCOLLECTABLE=1 -I../../../gcc/libjava/libltdl
-I../../../gcc/libjava/libltdl -I../../../gcc/libjava/.././libjava/../gcc
-I../../../gcc/libjava/../zlib -I../../../gcc/libjava/../libffi/include
-I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers
-Wswitch-enum -D__NO_MATH_INLINES -ffloat-store -W -Wall -D_GNU_SOURCE
-DPREFIX=\"/home/eblake/gcc-3.4\" -DLIBDIR=\"/home/eblake/gcc-3.4/lib\" -g
-O2 -MD -MT java/net/natInetAddress.lo -MF java/net/natInetAddress.pp -c
java/net/natInetAddress.cc -o java/net/natInetAddress.o
java/net/natInetAddress.cc: In static member function `static jint
java::net::InetAddress::getFamily(JArray<jbyte>*)':
java/net/natInetAddress.cc:101: error: `AF_INET6' undeclared (first use this
function)
java/net/natInetAddress.cc:101: error: (Each undeclared identifier is reported
only once for each function it appears in.)
java/net/natInetAddress.cc: In static member function `static
JArray<java::net::InetAddress*>*
java::net::InetAddress::lookup(java::lang::String*, java::net::InetAddress*,
__java_boolean)':
java/net/natInetAddress.cc:190: error: `AF_INET6' undeclared (first use this
function)
On investigation, I found java/net/natInetAddress.cc is linking to
libjava/java/net/natInetAddressPosix.cc, which has #include <sys/socket.h>.
However, the cygwin sys/socket.h does not (yet) support AF_INET6. Also,
Michael Koch's Changelog for this file,
2003-03-18 Michael Koch <konqueror@gmx.de>
* configure.in: Create links to architecture dependent files,
introduced PLATFORMNET variable (set to NoNet for newlib usage).
* configure: Regenerated.
* java/net/natInetAddressNoNet.cc,
java/net/natInetAddressPosix.cc,
java/net/natInetAddressWin32.cc,
java/net/natNetworkInterfaceNoNet.cc,
java/net/natNetworkInterfacePosix.cc,
java/net/natNetworkInterfaceWin32.cc,
java/net/natPlainDatagramSocketImplNoNet.cc,
java/net/natPlainDatagramSocketImplPosix.cc,
java/net/natPlainDatagramSocketImplWin32.cc,
java/net/natPlainSocketImplNoNet.cc,
java/net/natPlainSocketImplPosix.cc,
java/net/natPlainSocketImplWin32.cc: New files.
makes it sound like the link may have been set up correctly - should cygwin
should be using the NoNet version? Otherwise, if cygwin is correctly using
the Posix version, we probably need some configure magic to check for AF_INET6.
--
Someday, I might put a cute statement here.
Eric Blake ebb9@byu.net