gcc-3.1 build problem in the java area(?)
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Wed May 22 19:26:00 GMT 2002
George.R.Goffe@seagate.com wrote:
>I tried to build gcc-3.1 a few days ago and have run into a problem
>building libjava. Is this the "right" list for submitting this kind of bug?
>I'm enclosing the full build log just in case this is the "right" list.
>
>Regards and thanks for your time,
>
>
The error of interest seems to be:
/tmp/tools/gcc/gcc-3.1/gcc-3.1/obj.sparc-sun-solaris2.8/gcc/xgcc
-shared-libgcc
-B/tmp/tools/gcc/gcc-3.1/gcc-3.1/obj.sparc-sun-solaris2.8/gcc/
-nostdinc++
-L/tmp/tools/gcc/gcc-3.1/gcc-3.1/obj.sparc-sun-solaris2.8/sparc-sun-solaris2.8/libstdc++-v3/src
-L/tmp/tools/gcc/gcc-3.1/gcc-3.1/obj.sparc-sun-solaris2.8/sparc-sun-solaris2.8/libstdc++-v3/src/.libs
-B/usr/lsd/SunOS.5.8/sparc-sun-solaris2.8/bin/
-B/usr/lsd/SunOS.5.8/sparc-sun-solaris2.8/lib/ -isystem
/usr/lsd/SunOS.5.8/sparc-sun-solaris2.8/include -DHAVE_CONFIG_H -I.
-I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude
-I../../../libjava/include -I../../../libjava/../boehm-gc/include
-DGC_SOLARIS_THREADS=1 -DGC_SOLARIS_PTHREADS=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../../../libjava/libltdl -I../../../libjava/libltdl
-I../../../libjava/.././libjava/../gcc -I../../../libjava/../zlib
-I../../../libjava/../libffi/include -I../libffi/include
-I/usr/lsd/SunOS.5.8/include -fno-rtti -fnon-call-exceptions
-fdollars-in-identifiers -I/usr/openwin/include -W -Wall -D_GNU_SOURCE
"-DPREFIX=\"/usr/lsd/SunOS.5.8\"" -g -O2 -MD -MT
java/net/natInetAddress.lo -MF java/net/natInetAddress.pp -c
../../../libjava/java/net/natInetAddress.cc -fPIC -DPIC -o
java/net/.libs/natInetAddress.o
cc1plus: warning: changing search order for system directory
"/usr/lsd/SunOS.5.8/include"
cc1plus: warning: as it has already been specified as a non-system
directory
../../../libjava/java/net/natInetAddress.cc: In static member function
`static
jint java::net::InetAddress::getFamily(JArray<jbyte>*)':
../../../libjava/java/net/natInetAddress.cc:142: `AF_INET' undeclared
(first
use this function)
../../../libjava/java/net/natInetAddress.cc:142: (Each undeclared
identifier is
reported only once for each function it appears in.)
This is odd: AF_INET should be defined in sys/socket.h. Can you tell why
this file isn't getting included?
I'm pretty sure that others have successfully built libjava on Solaris 8
so there must be something different about your configuration which
caused this to happen.
regards
Bryce.
More information about the Java
mailing list