Begin forwarded message: Date: 31 oktober 2007 23:28:52 GMT+01:00 Subject: Re: native lib problem in leopard
Hi Pratik,
I was on 10.4.10 probably - that was the last one from Software Update?
This is the output of the commands that I just ran
[venetia:/opt/ooRexx/lib] rvjansen% file libBSF4Rexx.jnilib libBSF4Rexx.jnilib: Mach-O dynamically linked shared library ppc [venetia:/opt/ooRexx/lib] rvjansen% otool -L libBSF4Rexx.jnilib libBSF4Rexx.jnilib: libBSF4Rexx.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/ooRexx/lib/ooRexx/librexx.3 (compatibility version 4.0.0, current version 4.4.0) /opt/ooRexx/lib/ooRexx/librexxapi.3 (compatibility version 4.0.0, current version 4.4.0) /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM (compatibility version 1.0.0, current version 96.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.10) [venetia:/opt/ooRexx/lib] rvjansen%
best regards,
René.
On 31 okt 2007, at 23:25, Pratik Solanki wrote:
Some questions.
- Which version of 10.4 were you on before you upgraded?
- Can you run
$ file /opt/ooRexx/lib/libBSF4Rexx.jnilib
$ otool -L /opt/ooRexx/lib/libBSF4Rexx.jnilib
Pratik
On Oct 31, 2007, at 3:03 PM, René Jansen wrote:
I was preparing the ooRexx 3.2.0 release for MacOSX when I noticed a problem with the BSF4Rexx Java integration library. I try to deliver a working BSF4Rexx in the installer package because Open Object Rexx for MacOSX does not contain any of the Dialog Manager stuff that the Windows version has, and BSF4Rexx can be used to build very convincing graphical apps using Swing.
On both of my systems (Intel MacBook Pro, Dual G5 PPC) BSF4Rexx fails after upgrade to Leopard. The integration library is packaged in a JNI library called libBSF4Rexx.jnilib, and I get the following error:
22:50:31,074 ERROR BSFManager:? - [BSFManager] Exception :
java.lang.UnsatisfiedLinkError: /opt/ooRexx/lib/libBSF4Rexx.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.rexxla.bsf.engines.rexx.RexxAndJava.<clinit>(RexxAndJava.java:179)
at org.rexxla.bsf.engines.rexx.RexxEngine.initialize(RexxEngine.java:79)
at org.apache.bsf.BSFManager$8.run(BSFManager.java:788)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:786)
at org.rexxla.bsf.RexxDispatcher.main(RexxDispatcher.java:80)
[BSFManager.loadScriptingEngine()] unable to load language: rexx: java.lang.UnsatisfiedLinkError: /opt/ooRexx/lib/libBSF4Rexx.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.rexxla.bsf.engines.rexx.RexxAndJava.<clinit>(RexxAndJava.java:179)
at org.rexxla.bsf.engines.rexx.RexxEngine.initialize(RexxEngine.java:79)
at org.apache.bsf.BSFManager$8.run(BSFManager.java:788)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:786)
at org.rexxla.bsf.RexxDispatcher.main(RexxDispatcher.java:80)
I did not change any settings. I verified that it worked on both machines before upgrading. On Intel, I then recompiled and relinked ooRexx including the BSF4Rexx source, but to no avail - exactly the same error. I read in the release notes that now also .dylib is allowed as a library name extension. Would this change have broken something? Did anyone else experience a problem with one of the BSF languages? How would I go about debugging this?
And can anyone give me a pointer on how to use this nifty DTRACE stuff to see exactly which library filename MacOSX is trying to load?
Many thanks in advance ...
René Vincent Jansen. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
|