/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'typeid__XTQ2_3std9exception_'in load module '/usr/

T

TsanChung

CertificateDemo is a java program which use JNI call.
Please help to solve the following error.
Thanks.

$ java -version
java version "1.6.0.01"
Java(TM) SE Runtime Environment (build 1.6.0.01-
jinteg_06_jun_2008_13_24-b00)
Java HotSpot(TM) Server VM (build 1.6.0.01 jinteg:06.06.08-12:28 PA2.0
(aCC_AP), mixed mode)

Computer is HP-UX B.11.11 U 9000/785.

$ java -d64 CertificateDemo
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q3_3std8ios_base4InitFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'typeid__XTQ2_3std9exception_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'_C_initfacet__Q2_3std5ctypeXTc_FRCQ2_3std6locale' in load module '/
usr/lib/libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'_C_initfacet__Q2_3std5ctypeXTc_FRCQ2_3std6locale' in load module '/
usr/lib/libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'do_out__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCwT2RPCwPcT5RPc'
in load module '/usr/lib/libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'do_in__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCcT2RPCcPwT5RPw'
in load module '/usr/lib/libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'[Vtable]key:__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'__nullref__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__'
in load module '/usr/lib/libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol
'_C_classic_table__Q2_3std5ctypeXTc_' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol
'__dt__Q2_3std9exceptionFv' in load module '/usr/lib/
libcryptograph2_64.sl'.
dll load failed with errno=2
trying to load [/usr/lib/libcryptograph2_64.sl]
Exception in thread "main" com.mycomp.crypto.HwCryptographException:
function 'CryptographConnect failed' returns 0x0
at
com.mycomp.crypto.HwCryptographException.ThrowNew(HwCryptographException.java:
57)
at com.mycomp.crypto.HwAPI.Initialize(Native Method)
at com.mycomp.crypto.HwTokenManager.<init>(HwTokenManager.java:
107)
at
com.mycomp.crypto.HwTokenManager.getInstance(HwTokenManager.java:62)
at CertificateDemo.main(CertificateDemo.java:47)
 
G

Gordon Beaton

CertificateDemo is a java program which use JNI call.
Please help to solve the following error.
Thanks.

Either your .sl has runtime dependencies on another library that
couldn't be found by the loader, or you're using a C++ compiler to
compile your C code, but failed to correctly declare your functions as
"extern C".

/gordon

--
 
T

TsanChung

Either your .sl has runtime dependencies on another library that
couldn't be found by the loader, or you're using a C++ compiler to
compile your C code, but failed to correctly declare your functions as
"extern C".

/gordon

--

The same source code work on 64-bit linux and jdk 6 but does not work
on 64-bit hpux.
The following means that .sl does not have runtime dependencies
problem.
Therefore, how to find out which function should be declared as
"extern C"?

# ldd /opt/java6/jre/lib/ext/libHwAPI.sl
librt.2 => /usr/lib/pa20_64/librt.2
libpthread.1 => /usr/lib/pa20_64/libpthread.1
libstream.2 => /usr/lib/pa20_64/libstream.2
libdl.1 => /usr/lib/pa20_64/libdl.1

# ldd /usr/lib/libcryptograph2_64.sl
libstd.2 => /usr/lib/pa20_64/libstd.2
libstream.2 => /usr/lib/pa20_64/libstream.2
libCsup.2 => /usr/lib/pa20_64/libCsup.2
libpthread.1 => /usr/lib/pa20_64/libpthread.1
librt.2 => /usr/lib/pa20_64/librt.2
libm.2 => /usr/lib/pa20_64/libm.2
libcl.2 => /usr/lib/pa20_64/libcl.2
libdl.1 => /usr/lib/pa20_64/libdl.1
libc.2 => /usr/lib/pa20_64/libc.2
 
T

TsanChung

The same source code work on 64-bit linux and jdk 6 but does not work
on 64-bit hpux.
The following means that .sl does not have runtime dependencies
problem.
Therefore, how to find out which function should be declared as
"extern C"?

# ldd /opt/java6/jre/lib/ext/libHwAPI.sl
        librt.2 =>      /usr/lib/pa20_64/librt.2
        libpthread.1 => /usr/lib/pa20_64/libpthread.1
        libstream.2 =>  /usr/lib/pa20_64/libstream.2
        libdl.1 =>      /usr/lib/pa20_64/libdl.1

# ldd /usr/lib/libcryptograph2_64.sl
        libstd.2 =>     /usr/lib/pa20_64/libstd.2
        libstream.2 =>  /usr/lib/pa20_64/libstream.2
        libCsup.2 =>    /usr/lib/pa20_64/libCsup.2
        libpthread.1 => /usr/lib/pa20_64/libpthread.1
        librt.2 =>      /usr/lib/pa20_64/librt.2
        libm.2 =>       /usr/lib/pa20_64/libm.2
        libcl.2 =>      /usr/lib/pa20_64/libcl.2
        libdl.1 =>      /usr/lib/pa20_64/libdl.1
        libc.2 =>       /usr/lib/pa20_64/libc.2

It seems that using the "+DD64" flag of the aCC compiler will cause
this problem with JNI on hpux.
If that is true, what is the solution?
 
T

TsanChung

Either your .sl has runtime dependencies on another library that
couldn't be found by the loader, or you're using a C++ compiler to
compile your C code, but failed to correctly declare your functions as
"extern C".

/gordon

--

I do ldd on the .sl and get
libstd.2 => /usr/lib/pa20_64/libstd.2
libstream.2 => /usr/lib/pa20_64/libstream.2
libCsup.2 => /usr/lib/pa20_64/libCsup.2
libpthread.1 => /usr/lib/pa20_64/libpthread.1
librt.2 => /usr/lib/pa20_64/librt.2
libm.2 => /usr/lib/pa20_64/libm.2
libcl.2 => /usr/lib/pa20_64/libcl.2
libdl.1 => /usr/lib/pa20_64/libdl.1
libc.2 => /usr/lib/pa20_64/libc.2

so runtime dependency is not the problem.
I used cpp instead of c.
How to find out which functions should be declared as "extern C"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,068
Latest member
MakersCBDIngredients

Latest Threads

Top