libgcj fail to build on Mac OSX

Per Bothner per@bothner.com
Wed Sep 10 07:23:00 GMT 2003


On MacOS 10.2 I did a configure without specifying --enable-languages,
and then a boostrap which failed. I thought this was supposed to work.
If not, we should default to *not* building libgcj on MacOS.
/Users/bothner/GNU/build-gcc.head/gcc/xgcc -shared-libgcc 
-B/Users/bothner/GNU/build-gcc.head/gcc/ -nostdinc++ 
-L/Users/bothner/GNU/build-gcc.head/powerpc-apple-darwin6.6/libstdc++-v3/src 
-L/Users/bothner/GNU/build-gcc.head/powerpc-apple-darwin6.6/libstdc++-v3/src/.libs 
-B/Users/bothner/GNU/install-gcc.head/powerpc-apple-darwin6.6/bin/ 
-B/Users/bothner/GNU/install-gcc.head/powerpc-apple-darwin6.6/lib/ 
-isystem 
/Users/bothner/GNU/install-gcc.head/powerpc-apple-darwin6.6/include 
-isystem 
/Users/bothner/GNU/install-gcc.head/powerpc-apple-darwin6.6/sys-include 
-DHAVE_CONFIG_H -I. -I/Users/bothner/GNU/gcc.head/libjava -I./include 
-I./gcj -I/Users/bothner/GNU/gcc.head/libjava -Iinclude 
-I/Users/bothner/GNU/gcc.head/libjava/include 
-I/Users/bothner/GNU/gcc.head/boehm-gc/include -DGC_DARWIN_THREADS=1 
-DTHREAD_LOCAL_ALLOC=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/Users/bothner/GNU/gcc.head/libjava/libltdl 
-I/Users/bothner/GNU/gcc.head/libjava/libltdl 
-I/Users/bothner/GNU/gcc.head/libjava/.././libjava/../gcc 
-I/Users/bothner/GNU/gcc.head/libjava/../zlib 
-I/Users/bothner/GNU/gcc.head/libjava/../libffi/include 
-I../libffi/include -O2 -g -O2 -fno-rtti -fnon-call-exceptions 
-fdollars-in-identifiers -Wswitch-enum -I/usr/X11R6/include -W -Wall 
-D_GNU_SOURCE -DPREFIX=\"/Users/bothner/GNU/install-gcc.head\" 
-DLIBDIR=\"/Users/bothner/GNU/install-gcc.head/lib\" 
-DBOOT_CLASS_PATH=\"/Users/bothner/GNU/install-gcc.head/share/java/libgcj-3.4.jar\" 
-g -O2 -MD -MT gnu/gcj/runtime/natSharedLibLoader.lo -MF 
gnu/gcj/runtime/natSharedLibLoader.pp -c 
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc 
-o gnu/gcj/runtime/natSharedLibLoader.o
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:21:19: 
dlfcn.h: No such file or directory
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc: 
In member function `virtual void 
gnu::gcj::runtime::SharedLibHelper::init()':
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:73: 
error: `RTLD_GLOBAL' undeclared (first use this function)
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:73: 
error: (Each undeclared identifier is reported only once for each 
function it appears in.)
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:73: 
error: `RTLD_LAZY' undeclared (first use this function)
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:80: 
error: `dlopen' undeclared (first use this function)
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:83: 
error: `dlerror' undeclared (first use this function)
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc: 
In member function `virtual void 
gnu::gcj::runtime::SharedLibHelper::finalize()':
/Users/bothner/GNU/gcc.head/libjava/gnu/gcj/runtime/natSharedLibLoader.cc:122: 
error: `dlclose' undeclared (first use this function)
make[3]: *** [gnu/gcj/runtime/natSharedLibLoader.lo] Error 1
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /