Operating System - Linux
1751857 Members
5540 Online
108782 Solutions
New Discussion юеВ

/usr/lib/dld.sl: unresolved symbol

 
cing2006
Occasional Advisor

/usr/lib/dld.sl: unresolved symbol

Hello,
This is the error that I get when I try to run my RPCserver program.

***************************
/usr/lib/dld.sl: Unresolved symbol: cerr (data) from /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/dld.sl: Unresolved symbol: rwse_UnexpectedNullPtr (data) from /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/dld.sl: Unresolved symbol: nullref__12basic_stringXTcT18string_char_traitsXTc_T9allocator_ (data) from /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/dld.sl: Unresolved symbol: openprot__7filebuf (data) from /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/dld.sl: Unresolved symbol: clog (data) from /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/dld.sl: Unresolved symbol: cerr (data) from /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/libCsup.2
Abort(coredump)

*****************************

uname -a
HP-UX dhn1b203 B.11.11 U 9000/800 3196149707 unlimited-user license

nm /usr/lib/*.sl | grep __shlinit
libCsup.sl:__shlinit| 89516|extern|entry |
libCsup.sl:__shlinit| 89732|uext |stub |
libCsup.sl:__shlinit| 89756|extern|code |$CODE$
libCsup_v2.sl:__shlinit| 89924|extern|entry |
libCsup_v2.sl:__shlinit| 90140|uext |stub |
libCsup_v2.sl:__shlinit| 90164|extern|code |$CODE$
librwtool.sl:__shlinit| -4|uext |stub |
librwtool.sl:__shlinit| |undef |code |
libstd.sl:__shlinit | -4|uext |stub |
libstd.sl:__shlinit | |undef |code |
libstd_v2.sl:__shlinit| -4|uext |stub |
libstd_v2.sl:__shlinit| |undef |code |
libstream.sl:__shlinit| -4|uext |stub |
libstream.sl:__shlinit| |undef |code |

I shall post more information when asked for. I am using the 32-bit gcc for compilation and have linnked explicitly to libon.sl, libdsd.sl and all the rest of the shared libraries.

I have run out of ideas on how to fix this problem. Why am I so lucky?
Please help.

Thanks,
banu
10 REPLIES 10
Sandman!
Honored Contributor

Re: /usr/lib/dld.sl: unresolved symbol

Banu,

What's the command you are using to compile your program? That may aid in further debugging.

cheers!
cing2006
Occasional Advisor

Re: /usr/lib/dld.sl: unresolved symbol

gcc 3.2 (thread model: posix) is used for the compile and this is the output for the what ld:

what /usr/bin/ld
/usr/bin/ld:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
HP aC++ B3910B A.03.52 Classic Iostream Library
HP aC++ B3910B A.03.52 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.47 REL 051005
AwadheshPandey
Honored Contributor

Re: /usr/lib/dld.sl: unresolved symbol

this is a linking problem, u need to install ld and linker tool patch.

Regards,
Awadhesh
It's kind of fun to do the impossible
cing2006
Occasional Advisor

Re: /usr/lib/dld.sl: unresolved symbol


This is the output after the PHSS_33033 patch on the linker. The most recent patch.
Sandman!
Honored Contributor

Re: /usr/lib/dld.sl: unresolved symbol

Banu,

Please post the gcc command and the various options you supplied to it in order to compile your source code. I wasn't looking for a what on the link-editor (ld). Also run the following on your executable:

# ldd -v

cheers!
cing2006
Occasional Advisor

Re: /usr/lib/dld.sl: unresolved symbol

Hello Sandman,

Its a big Makefile and I shall write the main command and the compilation of one of the object files. I am new to this and do not know who much I can post on a public domain thread. No offense meant here. I sincerely appreciate the effort put my all invloved in trying to make my life easier.

gcc -fPIC -Wl,+s,-N -Wl,+n -lclntsh -ldld -lnsl -ldsd -lon -lCsup $(ALLDIRS) -o RPCServer $(OBJS)

rcache.o : rcache.c ociload.h getvalue.h
gcc $(ALLFLAGS) $(ALLDIRS) -c -I oci -I hash -D_PTHREADS -D_REENTRANT -DHPACC rcache.c -o $@

The rest are similar to the next line:

ociconnect.o: ociconnect.c
gcc $(ALLFLAGS) $(ALLDIRS) -c ociconnect.c -o $@

Regards and thanks,
Banu
cing2006
Occasional Advisor

Re: /usr/lib/dld.sl: unresolved symbol

Hello Sandman,

The output of ldd -v is as follows :

find library=/usr/lib/libc.2; required by RPCcache_server
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libCsup.2; required by RPCcache_server
/usr/lib/libCsup.2 => /usr/lib/libCsup.2

find library=/home/bsanar/fusionworks/OPENET/lib/libon.sl; required by RPCcache_server
/home/bsanar/fusionworks/OPENET/lib/libon.sl => /home/bsanar/fusionworks/OPENET/lib/libon.sl

find library=/usr/lib/libnsl.1; required by /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1

find library=/usr/lib/libxti.2; required by /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2

find library=/usr/lib/librt.2; required by /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libpthread.1; required by /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/usr/lib/libdld.2; required by /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libxti.2; required by /home/bsanar/fusionworks/OPENET/lib/libon.sl
/usr/lib/libxti.2 => /usr/lib/libxti.2

find library=./include/libdsd.sl; required by RPCcache_server
./include/libdsd.sl => /home/bsanar/fusionworks/OPENET/lib/libdsd.sl

find library=/net/rover/export/raid/builds/3.0.6B128.27/src/lib/obj.hppa/libon.sl; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/net/rover/export/raid/builds/3.0.6B128.27/src/lib/obj.hppa/libon.sl => /home/bsanar/fusionworks/OPENET/lib/libon.sl

find library=/usr/lib/libnsl.1; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1

find library=/usr/lib/librt.2; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/usr/lib/libpthread.1; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/usr/lib/libdld.2; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libxti.2; required by /home/bsanar/fusionworks/OPENET/lib/libdsd.sl
/usr/lib/libxti.2 => /usr/lib/libxti.2

find library=/usr/lib/libnsl.1; required by RPCcache_server
/usr/lib/libnsl.1 => /usr/lib/libnsl.1

find library=/usr/lib/libdld.2; required by RPCcache_server
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0; required by RPCcache_server
/apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0 => /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0

find library=/usr/lib/libcl.2; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libcl.2 => /usr/lib/libcl.2

find library=/usr/lib/libisamstub.1; required by /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1

find library=/usr/lib/libdld.2; required by /usr/lib/libcl.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libm.2; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libdld.2; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libnss_dns.1; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libnss_dns.1 => /usr/lib/libnss_dns.1

find library=/usr/lib/libdld.2; required by /usr/lib/libnss_dns.1
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libpthread.1; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/usr/lib/librt.2; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/apps/oracle/product/9.2.0/lib32/libwtc9.sl; required by /apps/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
/apps/oracle/product/9.2.0/lib32/libwtc9.sl => /apps/oracle/product/9.2.0/lib32/libwtc9.sl
cing2006
Occasional Advisor

Re: /usr/lib/dld.sl: unresolved symbol

I was able to find all the libraries but for the libon.sl at /net/rover ... but there is a libon.sl at /bsanar/... SO I hope it does not matter.

I can post the nm on all these if you want me to.

Regards,
Banu
Kalin Evtimov
Regular Advisor

Re: /usr/lib/dld.sl: unresolved symbol

Hi!
It may sound a bit strange, but as I am not a UNIX-Guru, I usually look for non-standard decisions.
You have a dynamic-linking problem, because you may have not linked all libraries that your programm needs. Or you don't have them. In the first case you need a proper compiler-call for building. In the second case, I usually copy the library from another machine, where the program works. Yesterday I compiled a programm on two RISC's, on the first worked, on the second I got error like this. The I copied all libraries from the first to the second and it also worked.

Greetings!

Kalin