Operating System - HP-UX
1823016 Members
3728 Online
109645 Solutions
New Discussion юеВ

ldd for 32bit apps on hpux

 
SOLVED
Go to solution
Monit Kapoor
Occasional Contributor

ldd for 32bit apps on hpux

I am trying to find a way to list the dynamic linked libraries (run -time) associated with an executable file. The command 'ldd' is suited to this, but only works for a 64-bit executable file and not a 32-bit executable file. I looked a the '/usr/ccs/bin/ldd ' and for all the machines, it seems to be hard linked to the '/usr/ccs/lbin/fastbind64'.everytime it gives the following error:

ldd /usr/sbin/sam
ldd: Invalid file type: "/usr/sbin/sam". 64-bit shared executable or shared library expected.
Please tell me how to see all the run-time linked libraries.
If You don't Know! Ask!!
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor
Solution

Re: ldd for 32bit apps on hpux

I think the chattr command will do the trick.

Bill
It works for me (tm)
James R. Ferguson
Acclaimed Contributor

Re: ldd for 32bit apps on hpux

Hi:

Try 'chatr'.

...JRF...
Herve BRANGIER
Respected Contributor

Re: ldd for 32bit apps on hpux

Hi,

I think your problem here is that /usr/sbin/sam
is NOT a binary file but a shell script !!!

For example you can try ldd /bin/ls but I think
it's work well. You can obtain some
informations with chatr . But
before to test you have to be sure it's a
binary executable. You can use file
and obtain something like :
/bin/ls: s800 shared executable dynamicly linked.

Regards,

Herve

Bill McNAMARA_1
Honored Contributor

Re: ldd for 32bit apps on hpux

Oops, typo!

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x25b0e7613948d5118fef0090279cd0f9,00.html

Above is a link to later patches for chatr!

Later,
Bill
It works for me (tm)