Operating System - HP-UX
1832431 Members
3455 Online
110042 Solutions
New Discussion

shared library problem - HPUX 11.0

 
steveo622
Advisor

shared library problem - HPUX 11.0

Hello,

I am using aC++ A03.27 version of your compiler. I am building shared libs
for our WEB application that get accessed via JNI. These are the switches I
use to build each library.

CCFLAGS = -b -v -c +z +p -AA +DAportable +DD32 -DHPUX -D_REENTRANT
-D_RWSTD_MULTI_THREAD

LDLIBS = -lPerfLib -lErrorSystem -lodbc -lpthread
LINKER = aCC
SHARED_LD_FLAGS = -v +p -AA +DAportable +DD32 -b -DHPUX -D_REENTRANT
-D_RWSTD_MULTI_THREAD

I have a test program that I run and everything works fine. However, when I
move these libraries to our application server and then try to access them
via a JNI call from a java servlet, I get the following types of errors.


aCC runtime: Error 215 from
shl_findsym(/home/wlogic1/weblogic/myserver/MarketMA
X/WEB-INF/lib/HPUX/lib/libErrorSystem.sl,_shlInit)

/usr/lib/dld.sl: Unresolved symbol: [Vftptr]key:__dt__Q2_3std9exceptionFv
(data)
from
/home/wlogic1/weblogic/myserver/MarketMAX/WEB-INF/lib/HPUX/lib/libPEInter
face.sl

/usr/lib/dld.sl: Unresolved symbol:
__nullref__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocat
orXTc__ (data) from
/home/wlogic1/weblogic/myserver/MarketMAX/WEB-INF/lib/HPUX/lib/libPEInterfac
e.sl

/usr/lib/dld.sl: Unresolved symbol: typeid__XTQ2_3std9exception_ (data)
from /h
ome/wlogic1/weblogic/myserver/MarketMAX/WEB-INF/lib/HPUX/lib/libPEInterface.
sl
/usr/lib/dld.sl: Unresolved symbol: _C_classic_table__Q2_3std5ctypeXTc_
(data)
from
/home/wlogic1/weblogic/myserver/MarketMAX/WEB-INF/lib/HPUX/lib/libPEInterfa
ce.sl


Do you have any ideas as to what is causing this problem? I am an HPUX
newbie, so I am at quite a loss as to what is going on here.

Please HELP!!!
1 REPLY 1
Alexander M. Ermes
Honored Contributor

Re: shared library problem - HPUX 11.0

Hi there.
You might be missing the shared library path in your environment.

SHLIB_PATH=/usr/lib:/usr/lib/Motif1.2 and so on.


Rgds
Alexander M. Ermes


.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"