HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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'.

 
Frederic Tison
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
Zinky
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
Zinky
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

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

HTH

Duncan
Rajesh K Chaurasia
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

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. ;-)


Frederic Tison
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?

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

HTH

Duncan
Ziegler System Admin
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.
Frederic Tison
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.

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

Frederic,

Very strange... you don't have any SRPs/compartments active on this system do you?

You can check by running:

cmpt_tune

HTH

Duncan

HTH

Duncan
Frederic Tison
Occasional Advisor

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

Duncan,

Strange, have you said strange?

No compartments at all!
Frederic Tison
Occasional Advisor

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

Hi gang,

Please note that we have just installed the latest bundles of patches ( as FEATURE11i(B.11.31.1103.361b) and QPK1131(B.11.31.1103.361) ) and the issue remains the same.

We have found out that an antique patch was installed a few days ago (PHSS_37042 released on 2007!), although this system was installed this year...

I have tried to re-install the latest linker+fdp cumulative patch, but files were already up to date, as I had expected.

No more ideas for the moment...

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

Have you tried:

swverify OS-Core.CORE2-SHLIBS

and

swverify PrinterMgmt.LP2-SPOOL

to check everything we've seen here is installed correctly?

HTH

Duncan

HTH

Duncan

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

Since you can run some 32 bit commands like ll(1) and what(1), it sees that dld.so isn't completely broken.

Do you have tusc installed so you can find the exact errno?
Frederic Tison
Occasional Advisor

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

We have found at last the cause of our problem.

lp* commands perform a 'su lp' before execution. And the rights on '/sbin/sh' were changed to 'rw', funny. No shell executed, no library loaded.

Nevertheless, thank you for all your answers.
Frederic Tison
Occasional Advisor

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

See last post.