joelhockey / jacknji11

Java Native Interface for PKCS#11
MIT License
33 stars 22 forks source link

undefined symbol: login_nonce #24

Closed paulmgtech closed 4 years ago

paulmgtech commented 4 years ago

Hi @primetomas

I could run with cavium pcks11 lib. But If I run with cavium api client it throws below error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library '/WorkSpace/liquidsec_api/src/.libs/libliquidsec_api_client.so.2.3.0': /WorkSpace/liquidsec_api/src/.libs/libliquidsec_api_client.so.2.3.0: undefined symbol: login_nonce at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239) at com.sun.jna.Library$Handler.(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:393) at com.sun.jna.Native.loadLibrary(Native.java:378) at org.pkcs11.jacknji11.jna.JNA.(JNA.java:62) at org.pkcs11.jacknji11.C.(C.java:68) at org.pkcs11.jacknji11.CE.Initialize(CE.java:60) at org.pkcs11.jacknji11.Test.main(Test.java:33)

If you have gone through this error or any idea to fixing it, please help me

Regards Paul S

primetomas commented 4 years ago

Sorry, I have not done that.

paulmgtech commented 4 years ago

@primetomas Thanks for your reply.

As per my code study, I have to separately load cavium api client and have a native call. There is no other choice.