Operating System - HP-UX
1756479 Members
2957 Online
108848 Solutions
New Discussion юеВ

/usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

 
Suresh_36
Occasional Advisor

/usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

On HPUX 11.23 when I start my daemon I get the following error, what can be the reason ?

/usr/lib/hpux32/dld.so: Cannot dlopen load
module '/usr/lib/hpux32/libc.so.1' be
cause it contains thread specific data.
/usr/lib/hpux32/dld.so: Cannot dlopen load
module '/usr/lib/hpux32/libc.so.1' be
cause it contains thread specific data.
/usr/lib/hpux32/dld.so: Cannot dlopen load
module '/usr/lib/hpux32/libc.so.1' be
cause it contains thread specific data.
/usr/lib/hpux32/dld.so: Cannot dlopen load
module '/usr/lib/hpux32/libc.so.1' be
cause it contains thread specific data.
/usr/lib/hpux32/dld.so: Cannot dlopen load
module '/usr/lib/hpux32/libc.so.1' be
cause it contains thread specific data.
steps taken to duplicate the problem:
8 REPLIES 8
KapilRaj
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

Your daemon was compiled with a diffrent set of libraries and some how they have been upgraded / changed.

Have you installed any patches recently ?.

Anyway if you can re-compile the daemon executable it should do the trick

Regds,

Kaps
Nothing is impossible
Suresh_36
Occasional Advisor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

Hi Kapil,

Thanks.
I will try to recompile.There was no patches installed. Was any patches released on HPUX 11.23.

Rgds
Suresh
Bharat Katkar
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

I suggest to boot your system into single user mode.Reboot your system.
1.HPUX> hpux -is
[go to the single user mode.]
2.# bdf
you see only / and stand
3. Mount /usr on /tmp
4. cd /usr/lib/hpux32
5. /tmp/usr/bin/ls *.so

See if you see the dld,libc files. I doubt they might have got renamed or deleted.
You need to know a lot to actually know how little you know
Suresh_36
Occasional Advisor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

Hi Bharat,

If after reboot in single user mode if files exist under the directory you mentioned, does that mean the files are corrupt. Please correct me if I my understanding is wrong.

Rgds
Suresh
Bharat Katkar
Honored Contributor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

No .. i don't think so ..
Did you checked it?
You need to know a lot to actually know how little you know
Suresh_36
Occasional Advisor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

Hi,

No I did not do that. I wil give a try.

Rgds
Suresh

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

Solution.
1. Deleted /lib/libc.so.1 file.
2. Installed OS patch [PHCO_30531/PACHRDME/English] (include [PHCO_29957/PACHRDME/English] ).
ranganath ramachandra
Esteemed Contributor

Re: /usr/lib/hpux32/dld.so: Cannot dlopen load on HPUX 11.23

this message does not mean anything is corrupt, so dont bother checking all that. this is a known limitation in dld, it cannot dynamically load any shared library that contains thread local storage. the solution is to link your program against any such libraries you may need to load dynamically. a workaround is to set the env variable LD_PRELOAD to a colon-delimited list with the full paths of all such shared libraries in proper order, in the shell where the program is invoked.

so in your case, link your program with -lc in the compile/link line (arent you doing so already?). the workaround is to set LD_PRELOAD=/usr/lib/hpux32/libc.so.1 in the shell where you start the daemon.
 
--
ranga
[i work for hpe]

Accept or Kudo