Frederick C. Druseikis [2006-04-24, 21:39:16]:
> I've gotten two reports that jamvm-1.4.2 on amd64 won't build.
> 
> This is a mistake on my part.
> 
> Sorry, No meaningful patch.

the attached patch gets me a bit further, but results in some linker
errors:

cc  -O2 -pipe -Wformat -Wbounded   -o jamvm  alloc.o cast.o class.o
dll.o excep.o execute.o hash.o interp.o jam.o jni.o lock.o natives.o
reflect.o resolve.o string.o thread.o utf8.o zip.o properties.o direct.o
dll_ffi.o access.o frame.o os/linux/x86_64/libnative.a os/linux/libos.a
-lz -lm -lpthread 
class.o(.text+0xfcc): In function `createArrayClass':
: warning: strcpy() is almost always misused, please use strlcpy()
class.o(.text+0x2edf): In function `bootClassPathResource':
: warning: sprintf() is often misused, please use snprintf()
class.o(.text+0x2305): In function `loadSystemClass':
: warning: strcat() is almost always misused, please use strlcat()
dll.o(.text+0x82e): In function `callJNIWrapper':
: undefined reference to `callJNIMethod'
dll.o(.text+0x8a8): In function `lookupLoadedDlls':
: undefined reference to `nativeExtraArg'



Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/jamvm/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    2006/04/11 01:04:15     1.1.1.1
+++ Makefile    2006/04/25 19:19:32
@@ -29,6 +29,7 @@
 WANTLIB=               c m z pthread
 
 CONFIGURE_ARGS+=       --with-classpath-install-dir=${LOCALBASE} \
-                       --includedir=${LOCALBASE}/include/jamvm
+                       --includedir=${LOCALBASE}/include/jamvm \
+                       --disable-ffi
 
 .include <bsd.port.mk>
Index: patches/patch-configure
===================================================================
RCS file: patch-configure
diff -N patch-configure
--- /dev/null   Sat Aug 30 18:16:59 1997
+++ patch-configure     Tue Apr 25 19:19:32 2006
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- configure.orig     Tue Apr 25 21:01:49 2006
++++ configure  Tue Apr 25 21:02:13 2006
+@@ -1948,6 +1948,7 @@ i[456]86-*-kfreebsd*) host_cpu=i386 host
+ i386-*-openbsd*) host_os=linux libdl_needed=no ;;
+ i386-*-freebsd*) host_os=linux libdl_needed=no ;;
+ x86_64-*-linux*) host_os=linux ;;
++x86_64-*-openbsd*) host_os=linux libdl_needed=no ;;
+ amd64-*-openbsd*) host_os=linux libdl_needed=no ;;
+ amd64-*-freebsd*) host_os=linux libdl_needed=no ;;
+ arm*-*-linux*) host_cpu=arm host_os=linux ;;

Reply via email to