LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2010, 06:52 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
about ldd command !


Friends ,

I read the manual of the 'ldd' command in Linux , using the ldd command I got the below output :

1)
bash-3.00$ ldd libclntsh.so
libclntsh.so needs:
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libdl.a(shr_64.o)
/usr/lib/libodm.a(shr_64.o)
/usr/lib/libperfstat.a(shr_64.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libcfg.a(shr_64.o)
/usr/lib/libcorcfg.a(shr_64.o)
/usr/lib/liblvm.a(shr_64.o)
/usr/lib/libsrc.a(shr_64.o



2)
bash-3.00$ ldd libclntsh.so
File is an archive

Here , anybody plz tell me , what are the meaning of the above two outputs ?

waiting for kind reply ... ...
 
Old 07-13-2010, 09:06 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Will probably depend where you are using the ldd command.
Linux ? Please specify name and version.
http://catb.org/esr/faqs/smart-questions.html

Could 'libclntsh.so' be a 64 bit library ?
( Usually libclntsh.so is a link to libclntsh.so.XX,
e.g. libclntsh.so.8.0. ?
( libclntsh.so.8.0 is an Oracle file, I guess.))

""File is an archive"" : Renamed from a different file ?
Please try the command : file libclntsh.so
.. and show the reply.
..
 
Old 07-13-2010, 11:14 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you can't figure out why ldd is giving you that output try reading it with a text editor and see if you can follow the logic.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldd command veeruk101 Linux - General 10 07-25-2007 07:22 AM
"list dynamic dependency" of an executable using command other than "ldd" Amrita@3086 Solaris / OpenSolaris 3 04-04-2007 04:56 AM
How to implement ldd command logic nileshbaviskar Programming 2 04-04-2007 02:52 AM
Urgent: libraries not resolved on running ldd command in solaris 9 msgforsunil Solaris / OpenSolaris 5 06-16-2006 10:46 AM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration