building with Fink on OS X 10.3

Stephen Compall <[email protected]> Mon, 21 Mar 2005 20:42:13 -0600
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
I was working through some building issues with gpciceri and 1.11.1 on
IRC today.  Here's what we did.

First, attached is a patch to sablevm-classpath configure.ac.  This
fixed a problem with linking in the default (weird) OS X manner, which
apparently requires all directly referenced shlibs to be directly
specified on the link line.  Here's the error:

ld: .libs/gnu_java_awt_peer_gtk_GdkFontPeer.o illegal reference to
symbol: _pango_ft2_font_map_create_context defined in indirectly
referenced dynamic library /sw/lib/libpangoft2-1.0.0.dylib

Then there was a problem with finding some other stuff:

ld: Undefined symbols:
 _XTestFakeButtonEvent
 _XTestFakeKeyEvent
 _XTestFakeMotionEvent
 _XTestQueryExtension

The patch fixes that by plonking -Xtst down at the end of X_LIBS.
Didn't seem harmful because the script dies right before then if libXtst
isn't found anyway.

Also there was a SIGILL with inline interpreter; switched to direct for
the time being.  Unfortunately, I have no further information at this
time.  There's an old iMac at work I put OS X on; I'll spend some time
duplicating gpciceri's environment on there tomorrow, and ssh as well.
gadek suggested compiling it with --enable-inlinability-testing and
running Bytecode testing framework, which of course will be the point of
all this.

Otherwise, if you see gpciceri on IRC, let him know he can get that
"simple personal profile demo program" running much faster if he stays
in touch. :)

-- 
Stephen Compall

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
configure-osx.patch (text/x-patch, 560 B)
--- configure.ac~	2005-03-16 18:34:05.000000000 -0600
+++ configure.ac	2005-03-21 20:21:59.120979177 -0600
@@ -308,7 +308,8 @@
      AC_CHECK_LIB([Xtst], [XTestQueryExtension], [true],
 		  [AC_MSG_ERROR([libXtst NOT found, required for GdkRobot])],
 		  [${X_LIBS}])
-     PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 libart-2.0 gdk-pixbuf-2.0)
+     X_LIBS="${X_LIBS} -Xtst"
+     PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 libart-2.0 gdk-pixbuf-2.0 pangoft2)
      AC_SUBST(GTK_CFLAGS)
      AC_SUBST(GTK_LIBS)
   fi
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCP4YEYWjD35Pp0wIRAnd1AJ44um37LOep0iimPqWgw6j3+Rzb5gCgjfES
ltM1DGns3UV8VC42iIlvIJo=
=mEog
-----END PGP SIGNATURE-----