RELEASE Kaffe 1.0.0

Daniel Veillard Daniel.Veillard at w3.org
Tue Jul 14 11:47:19 PDT 1998


  Ok,

 enclosed is a patch to try to compile in a separate tree with the
--with-staticlibs configure flag:
   - some of the paths to static libs in the configure.in were broken
   - one need to add the Jpeg libraries to the static libs list
   - two external_wrappers.h files are generated and hence located in
     the build tree, not the source tree, add to add 
     ../../libraries/clib
     to INCLUDES in kaffevm/Makefile.in

 Now I'm still stuck with some linking errors for some native functions
(I suspect a $name v.s. $name0 mess but this is not clear right now)

----------
make[2]: Entering directory `/u/veillard/test/kaffe/kaffe'
gcc -g -O2  -I. -I../../../kaffe-1.0.b1/kaffe/kaffe/../kaffevm -I../../config -I../../../kaffe-1.0.b1/kaffe/kaffe/../../config -I../../include -I../../../kaffe-1.0.b1/kaffe/kaffe/../../include   -o Kaffe main.o ../kaffevm/libkaffevm.a  ../../libraries/clib/native/libnative.a ../../libraries/clib/net/libnet.a ../../libraries/clib/zip/libzip.a ../../libraries/clib/math/libmath.a ../../libraries/clib/management/libmanagement.a  ../../libraries/clib/awt/libawt.a  -lgmp -lm -lc  -lz   -L/usr/X11R6/lib -lX11 -ljpeg 
../kaffevm/libkaffevm.a(external.o): In function `loadNativeLibrary':
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:152: undefined reference to `java_lang_Class_getClassLoader'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:168: undefined reference to `java_lang_ClassLoader_getSystemResourceAsStream0'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:168: undefined reference to `java_lang_ClassLoader_getSystemResourceAsName0'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:172: undefined reference to `java_text_DateFormat_format0'
../kaffevm/libkaffevm.a(external.o): In function `getLibraryPath':
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_Object_wait'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_Thread_sleep'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_UNIXProcess_forkAndExec'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_UNIXProcess_destroy'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_UNIXProcess_run'
/u/veillard/test/kaffe/kaffevm/../../../kaffe-1.0.b1/kaffe/kaffevm/external.c:241: undefined reference to `java_lang_UNIXProcess_notifyReaders'
collect2: ld returned 1 exit status
make[2]: *** [Kaffe] Error 1
make[2]: Leaving directory `/u/veillard/test/kaffe/kaffe'
----------

Daniel

-- 
Daniel.Veillard at w3.org | W3C  MIT/LCS  NE43-344  | Today's Bookmarks :
Tel : +1 617 253 5884  | 545 Technology Square   | Linux, WWW, rpm2html,
Fax : +1 617 258 5999  | Cambridge, MA 02139 USA | badminton, Kaffe,
http://www.w3.org/People/W3Cpeople.html#Veillard | HTTP-NG and Amaya.
-------------- next part --------------
diff -r -p kaffe-1.0.b1.orig/configure.in kaffe-1.0.b1/configure.in
*** kaffe-1.0.b1.orig/configure.in	Tue Jul 14 02:54:23 1998
--- kaffe-1.0.b1/configure.in	Tue Jul 14 14:37:41 1998
*************** JAVA_LIBRARIES=" \
*** 625,631 ****
  ../../libraries/clib/net/libnet$LIBEXT \
  ../../libraries/clib/zip/libzip$LIBEXT \
  ../../libraries/clib/math/libmath$LIBEXT \
! ../../libraries/clib/math/libmanagement$LIBEXT \
  "
  
  dnl If we have X then include AWT support.
--- 625,631 ----
  ../../libraries/clib/net/libnet$LIBEXT \
  ../../libraries/clib/zip/libzip$LIBEXT \
  ../../libraries/clib/math/libmath$LIBEXT \
! ../../libraries/clib/management/libmanagement$LIBEXT \
  "
  
  dnl If we have X then include AWT support.
*************** make_output="$make_output \
*** 634,640 ****
  libraries/clib/awt/Makefile \
  "
  JAVA_LIBRARIES="$JAVA_LIBRARIES \
! ../../libraries/clib/math/libawt$LIBEXT \
  "
  fi
  
--- 634,640 ----
  libraries/clib/awt/Makefile \
  "
  JAVA_LIBRARIES="$JAVA_LIBRARIES \
! ../../libraries/clib/awt/libawt$LIBEXT \
  "
  fi
  
*************** if test "$dynamic_libraries" = "yes" ; t
*** 646,652 ****
  	NOSHAREDLIBS="-L../kaffevm -lkaffevm $VM_LIBRARIES $STD_LIBRARIES"
  	KAFFE_LIBDEP=""
  else
! 	NOSHAREDLIBS="../kaffevm/libkaffevm$LIBEXT $JAVA_LIBRARIES $STD_LIBRARIES $ZIP_LIBRARIES $NET_LIBRARIES $X_LIBRARIES"
  	KAFFE_LIBDEP="$KAFFE_LIBDEP ../kaffevm/libkaffevm$LIBEXT $JAVA_LIBRARIES"
  	PIC=""
  	PICVM=""
--- 646,652 ----
  	NOSHAREDLIBS="-L../kaffevm -lkaffevm $VM_LIBRARIES $STD_LIBRARIES"
  	KAFFE_LIBDEP=""
  else
! 	NOSHAREDLIBS="../kaffevm/libkaffevm$LIBEXT $JAVA_LIBRARIES $STD_LIBRARIES $ZIP_LIBRARIES $NET_LIBRARIES $X_LIBRARIES $JPEG_LIBRARIES"
  	KAFFE_LIBDEP="$KAFFE_LIBDEP ../kaffevm/libkaffevm$LIBEXT $JAVA_LIBRARIES"
  	PIC=""
  	PICVM=""
diff -r -p kaffe-1.0.b1.orig/kaffe/kaffevm/Makefile.in kaffe-1.0.b1/kaffe/kaffevm/Makefile.in
*** kaffe-1.0.b1.orig/kaffe/kaffevm/Makefile.in	Tue Jul 14 00:34:13 1998
--- kaffe-1.0.b1/kaffe/kaffevm/Makefile.in	Tue Jul 14 14:00:13 1998
*************** KVER=		@KVER@
*** 29,35 ****
  OBJEXT=		@OBJEXT@
  LIBEXT=		@LIBVMEXT@
  
! INCLUDES=	-I. -I$(srcdir) -I$(srcdir)/../../config -I../../config -I../../include -I$(srcdir)/../../include
  CFLAGS=		@CFLAGS@
  ALL_CFLAGS=	$(CFLAGS) @KAFFEVMFLAGS@ $(INCLUDES) $(ENGINE_CFLAGS) -DKVER=\"$(KVER)\" $(EXTRA_CFLAGS)
  
--- 29,35 ----
  OBJEXT=		@OBJEXT@
  LIBEXT=		@LIBVMEXT@
  
! INCLUDES=	-I. -I$(srcdir) -I$(srcdir)/../../config -I../../config -I../../include -I$(srcdir)/../../include -I../../libraries/clib
  CFLAGS=		@CFLAGS@
  ALL_CFLAGS=	$(CFLAGS) @KAFFEVMFLAGS@ $(INCLUDES) $(ENGINE_CFLAGS) -DKVER=\"$(KVER)\" $(EXTRA_CFLAGS)
  


More information about the kaffe mailing list