build kaffe-1.0.6 error

Dorothy Wu dorothy21cn at 21cn.com
Sun Nov 11 19:03:28 PST 2001


Hello!

I downloaded the source code of kaffe-1.0.6.(kaffe-1.0.6.tar.gz)
When compile in kaffe/kaffevm/gcj, error happened:

source='gcj-class.cc' object='gcj-class.lo' libtool=yes \
depfile='.deps/gcj-class.Plo' tmpdepfile='.deps/gcj-class.TPlo' \
depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile
c++ -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include -I../../../
kaffe/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DJIT3 -I../../
../compat-include  -DKVER='"1.0.6"' -I/tmp/kaffe-1.0.6/./kaffe/kaffevm -I/tm
p/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads -I../../../config -I../.
./../include  -I/usr/local/include  -g -O2 -c -o gcj-class.lo gcj-class.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include -I../../../
kaffe/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DJIT3 -I../../
../compat-include -DKVER=\"1.0.6\" -I/tmp/kaffe-1.0.6/./kaffe/kaffevm -I/tmp
/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads -I../../../config -I../..
/../include -I/usr/local/include -g -O2 -c
gcj-class.cc -Wp,-MD,.deps/gcj-class.TPlo  -fPIC -DPIC -o gcj-class.lo
In file included from gcj-class.cc:26:
/usr/include/gcj/method.h: In function `_Jv_Method
*_Jv_FromReflectedConstructor (java::lang::reflect::Constructor *)':
/usr/include/gcj/method.h:27: invalid use of undefined type `class
java::lang::reflect::Constructor'
/usr/include/gcj/javaprims.h:195: forward declaration of `class
java::lang::reflect::Constructor'
/usr/include/gcj/method.h:27: invalid use of undefined type `class
java::lang::reflect::Constructor'
/usr/include/gcj/javaprims.h:195: forward declaration of `class
java::lang::reflect::Constructor'
gcj-class.cc: In function `void dumpClass (java::lang::Class *)':
gcj-class.cc:309: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:309: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:315: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:315: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc: In function `bool gcjProcessClassConstants
(Hjava_lang_Class *, void *, _errorInfo *)':
gcj-class.cc:546: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:546: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:568: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:568: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:575: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:575: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:577: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
gcj-class.cc:577: invalid use of undefined type `union _Jv_word'
/usr/include/java/lang/Class.h:53: forward declaration of `union
_Jv_word'
make: *** [gcj-class.lo] Error 1


and this is my configure result:

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... (cached) mawk
checking whether make sets ${MAKE}... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking dependency style of gcc... (cached) gcc
checking host system type... i686-pc-linux-gnu
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for gcc option to produce PIC... (cached)  -fPIC
checking if gcc PIC flag  -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached)
no
creating libtool
loading cache ./config.cache
checking for _ prefix in compiled symbols... (cached) no
checking execution engine... jit3
checking gprof(4) profiling support... no
checking sun compatibility mode... yes
checking thread system... unix-jthreads
checking for trampolines... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for jikes... (cached) jikes
checking for zip... (cached) zip
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking size of __int64... (cached) 0
checking size of void*... (cached) 4
checking alignment of void*... (cached) 4
checking return type of signal handlers... (cached) void
checking whether signal handlers are one-shot... (cached) no
checking for ANSI C header files... (cached) yes
checking for size_t... (cached) yes
checking for ssize_t... (cached) yes
checking for _mwvalidcheckl in -lmw... (cached) no
checking for sin in -lm... (cached) yes
checking for gethostname... (cached) yes
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for deflate in -lz... (cached) yes
checking for mpz_get_d in -lgmp... (cached) no
checking for MD2Init... (cached) no
checking for MD4Init... (cached) no
checking for MD5Init... (cached) no
checking for MD5Init in -lmd... (cached) no
checking for X... (cached) libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for __T_9__nothrow in -lCsup... (cached) no
checking for XShmQueryExtension in -lXext... (cached) yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_create_info_struct in -lpng... (cached) yes
checking for a usable version of gif_lib.h... (cached) yes
checking for DGifOpen in -lungif... (cached) yes
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for winnt.h... (cached) no
checking for wintypes.h... (cached) no
checking for wtypes.h... (cached) no
checking for winbase.h... (cached) no
checking for windows.h... (cached) no
checking for winsock.h... (cached) no
checking for dlfcn.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/filio.h... (cached) no
checking for malloc.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/utsname.h... (cached) yes
checking for pwd.h... (cached) yes
checking for asm/sigcontext.h... (cached) yes
checking for sigcontext.h... (cached) no
checking for asm/signal.h... (cached) yes
checking for signal.h... (cached) yes
checking for mach-o/rld.h... (cached) no
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for memory.h... (cached) yes
checking for bsd/libc.h... (cached) no
checking for dl.h... (cached) no
checking for features.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for zlib.h... (cached) yes
checking for netinet/tcp.h... (cached) yes
checking for netinet/in_systm.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for netdb.h... (cached) yes
checking for jpeglib.h... (cached) no
checking for png.h... (cached) yes
checking for gmp.h... (cached) yes
checking for utime.h... (cached) yes
checking for kernel/OS.h... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/resource.h... (cached) yes
checking for getrusage... (cached) yes
checking for __throw... (cached) yes
checking for __terminate_func... (cached) yes
checking for __get_eh_info... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking dependency style of c++... (cached) gcc
checking for java/lang/Class.h... (cached) yes
checking whether to enable GCJ support... yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking whether char is unsigned... (cached) no
checking for inline... (cached) inline
checking for struct sigcontext... (cached) yes
checking for struct sigcontext_struct (without asm/sigcontext.h)... (cached)
no
checking for struct sigcontext_struct (with asm/sigcontext.h)... (cached) no
checking for strftime... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for getsockname... (cached) yes
checking for getpagesize... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mkdir... (cached) yes
checking for getcwd... (cached) yes
checking for chdir... (cached) yes
checking for getwd... (cached) yes
checking for gettimeofday... (cached) yes
checking for ftime... (cached) yes
checking for time... (cached) yes
checking for uname... (cached) yes
checking for getuid... (cached) yes
checking for localtime... (cached) yes
checking for remainder... (cached) yes
checking for remainderf... (cached) yes
checking for fmod... (cached) yes
checking for fmodf... (cached) yes
checking for drem... (cached) yes
checking for rint... (cached) yes
checking for floor... (cached) yes
checking for ceil... (cached) yes
checking for finite... (cached) yes
checking for isinf... (cached) yes
checking for isnan... (cached) yes
checking for strtod... (cached) yes
checking for mergesort... (cached) no
checking whether long long modulo is broken... (cached) no
checking whether strtod("-0.0") is broken... (cached) no
checking for strerror... (cached) yes
checking for hstrerror... (cached) yes
checking for fcntl... (cached) yes
checking for ioctl... (cached) yes
checking for alarm... (cached) yes
checking for setitimer... (cached) yes
checking for sigprocmask... (cached) yes
checking for sigsetmask... (cached) yes
checking for sigemptyset... (cached) yes
checking for sigaddset... (cached) yes
checking for signal... (cached) yes
checking for sigaction... (cached) yes
checking for sbrk... (cached) yes
checking for valloc... (cached) yes
checking for memalign... (cached) yes
checking for mallopt... (cached) yes
checking for mprotect... (cached) yes
checking for madvise... (cached) yes
checking for waitpid... (cached) yes
checking for kill... (cached) yes
checking for fork... (cached) yes
checking for execve... (cached) yes
checking for execvp... (cached) yes
checking for sync... (cached) yes
checking for fsync... (cached) yes
checking for atexit... (cached) yes
checking for on_exit... (cached) yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for declaration of select... (cached) yes
checking for declaration of swab... (cached) no
checking for path separator... (cached) :
checking for directory separator... (cached) /
creating ./config.status
creating Makefile
creating config/Makefile
creating include/Makefile
creating kaffe/Makefile
creating libraries/Makefile
creating kaffe/kaffevm/Makefile
creating kaffe/kaffevm/intrp/Makefile
creating kaffe/kaffevm/jit/Makefile
creating kaffe/kaffevm/jit3/Makefile
creating kaffe/kaffevm/gcj/Makefile
creating kaffe/kaffevm/systems/Makefile
creating kaffe/kaffevm/systems/unix-jthreads/Makefile
creating kaffe/kaffevm/systems/oskit-pthreads/Makefile
creating kaffe/kaffevm/systems/beos-native/Makefile
creating kaffe/kaffevm/systems/unix-pthreads/Makefile
creating kaffe/kaffe/Makefile
creating kaffe/kaffeh/Makefile
creating kaffe/xprof/Makefile
creating kaffe/man/Makefile
creating kaffe/scripts/Makefile
creating kaffe/scripts/bat/Makefile
creating kaffe/scripts/compat/Makefile
creating libraries/javalib/Makefile
creating libraries/clib/Makefile
creating libraries/clib/native/Makefile
creating libraries/clib/io/Makefile
creating libraries/clib/net/Makefile
creating libraries/clib/zip/Makefile
creating libraries/clib/math/Makefile
creating libraries/clib/management/Makefile
creating libraries/clib/security/Makefile
creating libraries/clib/awt/Makefile
creating libraries/clib/awt/X/Makefile
creating libraries/extensions/Makefile
creating libraries/extensions/comm/Makefile
creating libraries/extensions/comm/javalib/Makefile
creating libraries/extensions/pjava/Makefile
creating libraries/extensions/pjava/javalib/Makefile
creating libraries/extensions/servlet/Makefile
creating libraries/extensions/servlet/javalib/Makefile
creating libraries/extensions/tools/Makefile
creating libraries/extensions/tools/javalib/Makefile
creating libraries/extensions/microsoft/Makefile
creating libraries/extensions/microsoft/javalib/Makefile
creating libraries/extensions/microsoft/clib/Makefile
creating libraries/extensions/rmi/Makefile
creating libraries/extensions/rmi/javalib/Makefile
creating kaffe/man/kaffe.1
creating libraries/javalib/rebuildLib
creating kaffe/scripts/install-jar
creating kaffe/scripts/kaffe
creating kaffe/scripts/kaffexprof
creating kaffe/scripts/javac
creating kaffe/scripts/javakey
creating kaffe/scripts/jar
creating kaffe/scripts/javap
creating kaffe/scripts/jdb
creating kaffe/scripts/kjc
creating kaffe/scripts/kopi
creating kaffe/scripts/javadoc
creating kaffe/scripts/appletviewer
creating kaffe/scripts/rmic
creating kaffe/scripts/rmiregistry
creating kaffe/scripts/serialver
creating kaffe/scripts/native2ascii
creating kaffe/scripts/compat/java
creating kaffe/scripts/compat/javac
creating kaffe/scripts/compat/appletviewer
creating kaffe/scripts/compat/javadoc
creating test/Makefile
creating test/regression/Makefile
creating test/regression/TestScript
creating config/config.h
config/config.h is unchanged
creating include/jtypes.h
include/jtypes.h is unchanged
configuring in libltdl
running /bin/sh
./configure  --enable-ltdl-convenience --cache-file=.././config.cache --srcd
ir=.
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... (cached) mawk
checking whether make sets ${MAKE}... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking dependency style of gcc... (cached) gcc
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache .././config.cache within ltconfig
checking for objdir... .libs
checking for gcc option to produce PIC... (cached)  -fPIC
checking if gcc PIC flag  -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache .././config.cache
checking command to parse /usr/bin/nm -B output... (cached) yes
checking for ANSI C header files... (cached) yes
checking which extension is used for shared libraries... (cached) .so
checking which variable specifies run-time library path... (cached)
LD_LIBRARY_PATH
checking for the default library search path... (cached) /lib /usr/lib
checking for objdir... (cached) .libs
checking whether libtool supports -dlopen/-dlpreopen... (cached) yes
checking for dlopen in -ldl... (cached) yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... (cached) no
checking for dlerror... (cached) yes
checking for _ prefix in compiled symbols... (cached) no
checking for malloc.h... (cached) yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdio.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for dl.h... (cached) no
checking for dld.h... (cached) no
checking for string.h... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking for strcmp... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged

And my os is redhat 7.0.
Is there anything wrong?

Thanks a lot

Dorothy Wu



More information about the kaffe mailing list