[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 802
  • Last Modified:

Is there a command on Linux similiar to dump -H or chatr for other UNIX flavors?

Is there a command on Linux similiar to dump -H or chatr for other UNIX flavors? I need to see where and what shared library files are linked to a specific  '.so' file in Linux.

Like the example from HP-UX below......   can anyone tell me a similiar command? The part I need is the ***Import File Strings*** showing the location of linked / required files.  (except in Linux). Ultimately our application gets an error working with Oracle 10g on the same box even though it appears to be configured properly: failed to create OCI environment.

Any help would be appreciated.

Thanks,


----------------------------------------------------------------
dump -H sqoracle.oci9.so
 
sqoracle.oci9.so:
 
                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x0000008c       0x00000272       0x00000031
 
#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x00000003       0x00002a98       0x000006ec       0x00002ac9
 
                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /usr/lib:/lib
1                                    libc.a              shr.o
2                                    libclntsh.a         shr.o

0
myfalcon
Asked:
myfalcon
1 Solution
 
kfullartonCommented:
Have you tried ldd?
0
 
ravenplCommented:
try:
objdump -x lib.so
nm -a lib.so
and also: ldd lib.so
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now