Hi
I've been happily using PC/SC Lite and PC/SC Shim driving a Gemplus reader
for over a year without a problem (and a big thanks to all those guys that
had a hand in putting it all together)
I have just spent some time working on java JNI native program when I did a
'ldconfig'. When I next tried to run a java program using the OCF To PC/SC
bridge, an exception was thrown -
java.lang.UnsatisfiedLinkError: /usr/jdk1.5.0/jre/lib/i386/libOCFPCSC1.so:
/usr/jdk1.5.0/jre/lib/i386/libOCFPCSC1.so: cannot restore segment prot after
reloc: Permission denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at
opencard.core.util.SystemAccess.loadLibrary(SystemAccess.java:111)
at
com.ibm.opencard.terminal.pcsc10.OCFPCSC1.loadLib(OCFPCSC1.java:64)
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.open(Pcsc10CardTerminalFactory.java:217)
at
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.<init>(Pcsc10CardTerminalFactory.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:424)
at
opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:261)
at opencard.core.service.SmartCard.start(SmartCard.java:534)
I have the libOCFPCSC1.so in /usr/jdk1.5.0/jre/lib/i386 and when I run ldd
on libOCFPCSC1.so, I get
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00a4f000)
libpcsclite.so.1 => /usr/lib/libpcsclite.so.1 (0x00a0d000)
libc.so.6 => /lib/tls/libc.so.6 (0x003f6000)
libm.so.6 => /lib/tls/libm.so.6 (0x00be1000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00371000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00691000)
/lib/ld-linux.so.2 (0x00b24000)
... So that looks OK
So, if anybody has the slightest idea on what has caused me to spend the
last 7 hours pulling out my hair, trying to figure out what I've done wrong
and how to go about fixing it, I would be very, very grateful for any kind
of input.
Cheers
Nick
_________________________________________________________________
Winks & nudges are here - download MSN Messenger 7.0 today!
http://messenger.msn.co.uk
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle