I have created an .so file in which I am not at all using the boost library (Of course earlier I used it), but later I switched to pthreads and removed all the header files and boost .so file linking from the makefile.
The java files are getting compiled successfully. But, when I try to run using
java -Djava.library.path=libs/ -cp build/ Send
it gives me the following error.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/aahmed/libplxmsg-java/libs/libplxmsgjavaasyncbinder.so: /home/aahmed/libplxmsg-java/libs/libplxmsgjavaasyncbinder.so: undefined symbol: _ZN5boost6system16generic_categoryEv
I am sure that I am not using any boost related libraries or header files. Even the link for the .so file is given correctly.
EDIT
On executing nm
on the .so
file which was being loaded. Small snipped of that.
00000000002044d8 b _ZN5boost6system10errno_ecatE
00000000002044e0 b _ZN5boost6system11native_ecatE
00000000000031a0 W _ZN5boost6system12system_errorD0Ev
00000000000033a0 W _ZN5boost6system12system_errorD1Ev
0000000000003180 W _ZN5boost6system14error_categoryD0Ev
0000000000003050 W _ZN5boost6system14error_categoryD1Ev
00000000002044d0 b _ZN5boost6system14posix_categoryE
U _ZN5boost6system15system_categoryEv
U _ZN5boost6system16generic_categoryEv
0000000000003060 W _ZN7JNIEnv_14CallVoidMethodEP8_jobjectP10_jmethodIDz
00000000000030f0 W _ZN7JNIEnv_9NewObjectEP7_jclassP10_jmethodIDz
U _ZN9__gnu_cxx18__exchange_and_addEPVii@@GLIBCXX_3.4
0000000000003240 W _ZNK5boost6system12system_error4whatEv
0000000000003030 W _ZNK5boost6system14error_category10equivalentERKNS0_10error_codeEi
0000000000002fe0 W _ZNK5boost6system14error_category10equivalentEiRKNS0_15error_conditionE
0000000000002fd0 W _ZNK5boost6system14error_category23default_error_conditionEi