Operating System - HP-UX
1748084 Members
5414 Online
108758 Solutions
New Discussion юеВ

Help! The library libdl.sl is missed on HP-UX 11.00

 
Lev Assinovsky
Frequent Advisor

Help! The library libdl.sl is missed on HP-UX 11.00

Hi all!
I just installed HP-UX 11.00 (yes, the old one) and was unable to find
the library libdl.so (dl* function family provider).
In the same time I see the man pages (e.g. man dlopen, man dlclose ...)
and include file dlfcn.h
What might be wrong with my installation?
Any help will be appreciated!
-------------------------
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

Check for correct values in the variable SHLIB_PATH

This often causes this problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

Hi Lev,

I don't think there's a problem with your install. I checked several 11.0 & 11i systems & none of them had dld.so. They all had dld.sl as part of the CORE-SHLIBS & CORE-64SLIB filesets.
I think that dld.so comes in with either the aC++ and C compilers, so you won't see it 'til you load one of those.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
ranganath ramachandra
Esteemed Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

you should be looking for /usr/lib/libdld.sl (for 32-bit programs) and/or /usr/lib/pa20_64/libdl.sl (for 64-bit programs). there is also /usr/lib/pa20_64/libdld.sl which i guess is the same thinng as libdl.sl.

please make sure you have the latest linker/dld patch (PHSS_28434) installed.
 
--
ranga
[i work for hpe]

Accept or Kudo

Tim Adamson_1
Honored Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

Hi,

I am coming from left field here, but do you require libdld.so for Java by any chance?

If so, you need to link against the .sl library.


Cheers
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Lev Assinovsky
Frequent Advisor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

Hello guys!
Thank you for the responces.
Actually I don't care about library name itself.
I need a dl* function family (dlopen, dlclose etc) implementation.
According to "man dlopen" a library "libdl.sl"
provides that implentation.
I tried to find the library ising:
find / -name "libdl*.*".
I found libdld.sl, but it contains shl_* family only.
My global target is to port a big C++ application
system to all possible Unux systems.
For now I am done with Solaris 8/9 i386/ultra.
All Solaris systems do have System V standard
functions from dl* family.
With lack of that family in HP-UX I have to use a lot of "ifdef hpux".
Lev
ranganath ramachandra
Esteemed Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

the 32-bit dld does support the basic dl- calls viz dlopen/dlsym/dladdr/dlclose. it is available at least since 2000.

bash-2.01$ odump -sym /usr/lib/libdld.sl | grep " dl"
00002d8b 00000003 Code Univ 0 .........N 3 10001 dlclose
00003087 00000003 Code Univ 0 .........N 3 00001 dlerror
0000318f 00000003 Code Univ 0 .........N 3 00001 dld_getenv
00003287 00000003 Code Univ 0 .........N 3 11001 dladdr
0000336b 00000003 Code Univ 0 ........LN 3 11001 dlopen
00003373 00000003 Code Univ 0 ........LN 3 11001 dlsym
00002d73 00002d88 Entry Univ 0 .........N 3 10001 dlclose
00003373 00003370 Entry Univ 0 ........LN 3 11001 dlsym
0000306f 00003084 Entry Univ 0 .........N 3 00001 dlerror
0000336b 00003368 Entry Univ 0 ........LN 3 11001 dlopen
0000326f 00003284 Entry Univ 0 .........N 3 11001 dladdr
00003177 0000318c Entry Univ 0 .........N 3 00001 dld_getenv
bash-2.01$ what /usr/lib/libdld.sl
/usr/lib/libdld.sl:
92453-07 dld dld libdld.sl B.11.36 030403
bash-2.01$ ls -l /usr/lib/libdld.sl
lrwxr-xr-x 1 root sys 10 Jun 4 2002 /usr/lib/libdld.sl -> ./libdld.2
 
--
ranga
[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

i forgot to mention, the 64-bit libdld supports more of the dl- calls than the 32-bit libdld. so you will not find all the calls listed in /usr/include/dlfcn.h in /usr/lib/libdld.2 (the 32-bit libdld for 11.X). however you will find them in /usr/lib/pa20_64/libdl.1 (the 64-bit libdld).
 
--
ranga
[i work for hpe]

Accept or Kudo

Lev Assinovsky
Frequent Advisor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

Hi!
The poblem is solved!
Special thanks to Ranganath Ramachandra!
I applied the patch he advised (PHSS_28434)
and got everything I needed.
I am happy now!
Lev
ranganath ramachandra
Esteemed Contributor

Re: Help! The library libdl.sl is missed on HP-UX 11.00

you are welcome :)
 
--
ranga
[i work for hpe]

Accept or Kudo