[Java-gnome-developer] Problems running Java-Gnome v0.5.0 on Solaris 8 (SPARC).
Brought to you by:
afcowie
From: Rich B. <Ric...@en...> - 2001-01-31 19:42:34
|
Hi all, I've just started looking at the Java-Gnome code. I'm using Solaris 8 on a SPARC machine (maybe the first to do that?), so this might be the cause of my problems. I'll give the error I'm seeing first, then I'll explain things in more detail. I've built Java-Gnome, and when I try to run TestGTK, I get: stard[88] java TestGTK ld.so.1: /spare/jgtk/jdk1.3/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /spare/dist-jgtk/lib/libGTKJava.so.0.5.0: symbol gtk_init: referenced symbol not found Killed stard[89] I looked through the archives for this list on www.geocrawler.com, and found: http://www.geocrawler.com/archives/3/7036/2000/11/0/4714386/ and http://www.geocrawler.com/archives/3/7036/2000/11/0/4714543/ but I'm not running with two different JDK's here, so I don't think that's the problem. Okay. More details. * I'm using JDK 1.3. This I believe would have been compiled with the Sun native compilers. * I've got gtk+ 1.2.8 and glib 1.2.8, and I've compiled them both with Gnu v2.95.2. * I grabbed: http://download.sourceforge.net/java-gnome/java-gtk-0.5.0.tar.gz and compiled that with Gnu v2.95.2. My hacked up build script contains the following commands: % cp src/other/Callback.java src/gtk % cp src/other/GListString.java src/gtk % cp src/other/GtkObject.java src/gtk % cp src/other/callback_dispatcher.c src/glue % ln -s lib/gtk-0.5.0.jar lib/gtk.jar % ./configure --with-gtk-only --prefix=/spare/dist-jgtk % gmake % gmake install * When I try "java TestGTK" I get the results above. I took it a little further. I tried: stard[111] ldd libGTKJava.so.0.5.0 warning: ldd: libGTKJava.so.0.5.0: is not executable on the installed libGTKJava library. I was expecting to see some other library dependencies here. I then did a nm on that library, looking for gtk_init references and I get stard[134] nm libGTKJava.so.0.5.0 | fgrep gtk_init [671] | 0| 0|NOTY |GLOB |0 |UNDEF |gtk_init I then found an application of mine (compiled with Gnu 2.95.2) that links against the Gtk+ library, and tried the same thing: stard[128] nm mptool | fgrep gtk_init [234] | 239712| 0|FUNC |GLOB |0 |UNDEF |gtk_init Now this might be the difference between an application and shared library usage, but I though I'd mention it. If the answer to my problem isn't obvious, then I suppose there are a couple things I can try: 1/ Recompile gtk+, glib and java-gnome with the Sun native compilers and see if that changes anything. 2/ Check out the very latest java-gnome source code from the CVS repository and see if that improves anything. I thought I'd post the problem here before doing either of these. Any advice would be very much appreciated. Thanks. PS: www.geocrawler.com only has archives for this mailing list for November and December 2000. Are there later archives that I can look at? -- Rich Burridge Email: ric...@Su... Sun Microsystems, Desktop Foundation Software. Phone: +1.408.343.1850 901 San Antonio Rd. CUP01-103 AIM/YAHOO: RicBurridge Palo Alto, CA 94303 WWW: http://java.sun.com/people/richb/ |