[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-devtools
Subject: RE: HPUX-DEVTOOLS: tcl runtime error(Can't shl_load() a library containing Thread Local Storage)
From: Dennis Handly <dhandly () cup ! hp ! com>
Date: 2006-10-26 8:10:19
Message-ID: 200610260810.BAA02783 () hpcll183 ! hp ! com
[Download RAW message or body]
> From: "Chen, Yan-Ke (TSG-SMO-MKG-BJ)" <yanke.chen@hp.com>
> I relink using:
> cc -Wl,-E tclAppInit.o -L/tmp/tcl/tcl/unix -ltcl8.3 \
> -mt -lstd_v2 -lCsup_v2 -lm -Wl,+s,+b,/usr/local/lib:. -o tclsh,
You probably should NOT link C applications with the aC++ runtime.
Each aC++ should follow the directions for plugins:
http://www.docs.hp.com/en/7762/5991-4874/distributing.htm#linking
aCC runtime: Error 215 from shl_findsym(/home/aioss/lib/libaitool-1.2.sl.2,_shlInit)
dld.sl: Unresolved symbol: \
registerSelf__Q2_5aidb312OracleDriverSFPQ2_5aidb318DriverManagerClass (code) from \
/home/aioss/lib/libxframe.sl
dld.sl: Unresolved module for symbol: \
[Vtable_Q2_8asiainfo21CancellationException]key: (data) from \
/home/aioss/lib/libaitool-1.2.sl.2
dld.sl: Unresolved symbol: pthread_attr_init (code) from \
/home/aioss/lib/libaitool-1.2.sl.2
dld.sl: Unresolved symbol: pthread_create (code) from \
/home/aioss/lib/libaitool-1.2.sl.2
So it is missing aidb3::OracleDriver::registerSelf() and the virtual function
asiainfo::CancellationException
> cc -Wl,-E tclAppInit.o -L/tmp/tcl/tcl/unix -ltcl8.3 \
> -L/home/aioss/lib -laitool -laidb -lxframe \
> -mt -lstd_v2 -lCsup_v2 -lm -Wl,+s,+b,/usr/local/lib:. -o tclsh
bash-3.00# ./tclsh xxx.tcl
/usr/lib/dld.sl: Can't find path for shared library: libframe-3.0.sl.0
/usr/lib/dld.sl: No such file or directory
Can you do: chatr /home/aioss/lib/libxfram.sl
It probably has the internal name libframe-3.0.sl.0?
> 1 Need I link my libs statics?(libaitool.sl, libaidb.sl...)
What do you mean by statics? You need these of other libs need them.
2 bash-3.00# ldd tclsh
/usr/lib/libCsup_v2.2 => /usr/lib/libCsup_v2.2
/usr/lib/libstd_v2.2 => /usr/lib/libstd_v2.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
dld.sl: Can't find path for shared library: libframe-3.0.sl.0
dld.sl: No such file or directory
bash-3.00# ldd libxframe.sl
Do chatr instead.
/home/aioss/lib/libaidb-3.0.sl.1 => /home/aioss/lib/libaidb-3.0.sl.1
/home/aioss/lib/libaitool-1.2.sl.2 => /home/aioss/lib/libaitool-1.2.sl.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
This application is broken. You must NOT have libCsup.2 (-AP) if you also
have libCsup_v2.2 (-AA). Which lib has this?
When I don't add -lxframe,
bash-3.00# ldd tclsh
Does it run without -lxframe?
/usr/lib/libCsup_v2.2 => /usr/lib/libCsup_v2.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
Again the mixture of -AA and -AP.
> So I don't know where libframe-3.0.sl.0
It's probably the internal name of libxframe.sl and you forgot a symlink.
> BTW, libaitool.sl, libaidb.sl, libxframe.sl are shared libraries by
> others compiled. I don't know the compile options. So I don't why
> libxframe depends libCsup_v2.2, libCsup and libstd_v2.2.
It is broken. It can't depend on both libCsup_v2.2 & libCsup.2. You'll need
to get that lib relinked.
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE hpux-devtools
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic