Re: [Java-gnome-developer] undefined reference to `org::gnu::gtk::Entry::class$'
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2006-11-28 00:05:13
|
On Mon, 2006-11-27 at 15:29 +0100, Jean-Christian de Rivaz wrote: > I did not understand why the GCJ library still make the JNI stuff=20 > required. I tried linking the java-gnome jni.so libraries into my executable once, but I couldn't get it to work. If I had to guess, it's because System.loadLibrary() seems to require that there be a separate library be findable by dlopen() at runtime by name. You'd think, though, that libgcj would have hacked theirs up so that it could find its symbols linked in to the final binary. Maybe someone smarter than me can point out how to do it right. Interestingly, although the library as a whole gets loaded, Sun's JVM does the symbol lookups on a class by class basis. Try java -verbose:jni MyProgram sometime. And try doing ldd ./myprogram on a java-gnome binary built with GCJ. It's quite the monster list, so somehow removing the JNI .so's wouldn't really change much. > This could be an Ubuntu Edgy specific issue.=20 Be aware that Ubuntu is out of date: https://launchpad.net/distros/ubuntu/+source/glib-java/+bug/70113/ so Ubuntu users need to show some of that Ubuntu magic that Ubuntu lovers are always going on about and get some new java-gnome packages made up! AfC Singapore --=20 Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |