System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

 
Highlighted
Occasional Advisor

/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Hi all,

a quite strange problem on HP-UX 11i v3, the message appears as in the subject of my post, while calling e.g. the lpshut command.

> lpshut
/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.
Abort

A few questions:
- How to fix it? (obvious)
- Is it normal that some 32-bits libs are called on a 64-bits system, although those files exist in /usr/lib/hpux64?

Thanks for your answers.
16 REPLIES 16
Highlighted
Honored Contributor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

# which lpshut
# ldd `which lpshut`
# echo SHLIB_PATH


Please provide.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Highlighted
Honored Contributor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

err:

echo $SHLIB_PATH
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Highlighted

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

> - Is it normal that some 32-bits libs are called on a 64-bits system, although those files exist in /usr/lib/hpux64?

Yes, entirely normal on HP-UX at least. The lpshut binary is a 32-bit one:

#file /usr/sbin/lpshut
/usr/sbin/lpshut: ELF-32 executable object file - IA64


Would also be interesting to see the output of:

#ll /usr/lib/hpux32/libdl.so.1

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Valued Contributor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Asking the obvious, does the file /usr/lib/hpux32/dld.so exist and has file execute permission on it? If not, someone may have removed/modified it.

/usr/lib/hpux32/dld.so is dynamic linker and loader, required for all 32-bit dynamically linked executables. If this file is not present, you need to restore OS-Core.CORE2-SHLIBS from the install media or re-install "linker + fdp cummulative patch".

Regards
-Rajesh
Highlighted
Acclaimed Contributor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

If you are missing dld.so, you may need to get out your ignite backup. Your system is basically unusable, toast.

If the problem is due to the wrong permissions or the directory or file was moved, then you could attempt to recover with the commands in /sbin/.

>Duncan: Would also be interesting to see the output of: ll /usr/lib/hpux32/libdl.so.1

Why is this so important? Though libc won't work without it.

>Rajesh: you need to restore OS-Core.CORE2-SHLIBS from the install media or re-install "linker + fdp cummulative patch".

This would be a good trick due to chickens and eggs. ;-)


Highlighted
Occasional Advisor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Hi all,

and thanks to all of you for your quick answers.

That will provide the requested informations:

> ldd `which lpshut`

/usr/sbin/lpshut:
/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.
> echo $SHLIB_PATH
sh: SHLIB_PATH: Parameter not set.

Note: the SHLIB_PATH variable is not set on another machine with a comparable configuration, on which lp* command does not return an exception.

------------------------------------------------------------------------------------

> ll /usr/lib/hpux32/libdl.so.1
-r-xr-xr-x 1 bin bin 76240 Dec 21 05:50 /usr/lib/hpux32/libdl.so.1
> ll /usr/lib/hpux32/uld.so
-r-xr-xr-x 1 bin bin 181240 Dec 21 05:50 /usr/lib/hpux32/uld.so
> ll /usr/lib/hpux32/dld.so
-r-xr-xr-x 1 bin bin 1148332 Dec 21 05:50 /usr/lib/hpux32/dld.so

> what /usr/lib/hpux32/libdl.so.1
/usr/lib/hpux32/libdl.so.1:
92453-07 dld dld libdl.1 HP Itanium(R) B.12.56
REL Wed Dec 1 12:24:44 2010 PST
> what /usr/lib/hpux32/uld.so
/usr/lib/hpux32/uld.so:
92453-07 linker uld HP Itanium(R) B.12.56
REL Wed Dec 1 12:24:44 2010 PST
> what /usr/lib/hpux32/dld.so
/usr/lib/hpux32/dld.so:
92453-07 linker dld HP Itanium(R) B.12.56
REL Wed Dec 1 12:24:44 2010 PST

------------------------------------------------------------------------------------

Nothing that new, I'm afraid.

What do you think about this, gentlemen?
Highlighted

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Frederic,

When you run:

ldd `which lpshut`

Are you saying the output you get is:

/usr/sbin/lpshut:
/usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.


Rather than (what I get):


/usr/sbin/lpshut:
libsec.so.1 => /usr/lib/hpux32/libsec.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libm.so.1 => /usr/lib/hpux32/libm.so.1
libdl.so.1 => /usr/lib/hpux32/libdl.so.1


What user are you running this as? What's the output of:

ll -d /usr/lib

ll -d /usr/lib/hpux32


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Occasional Collector

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Duncan,

yes I mean it!

> ll -d /usr/lib
dr-xr-xr-x 35 bin bin 8192 Jun 8 13:59 /usr/lib
> ll -d /usr/lib/hpux32
dr-xr-xr-x 11 bin bin 8192 Jun 8 14:05 /usr/lib/hpux32

Logged in as root.
Ziegler Infogroup
System Administrators' Team.
Highlighted
Occasional Advisor

Re: /usr/lib/hpux32/uld.so: Unable to open '/usr/lib/hpux32/dld.so'.

Duncan,

yes I mean it!

> ll -d /usr/lib
dr-xr-xr-x 35 bin bin 8192 Jun 8 13:59 /usr/lib
> ll -d /usr/lib/hpux32
dr-xr-xr-x 11 bin bin 8192 Jun 8 14:05 /usr/lib/hpux32

Logged in as root.