LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-25-2006, 11:23 AM   #1
shamju
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Rep: Reputation: 0
how to know dependencies of library file?


We can use ldd to know the dependencies of a dynamic library (.so).
How will we know the same for static library? I got error When I tried ldd
with a static library (.a) This is listed below. Can someone please tell
me the reason?

[root@localhost flirt-20060121]# ldd libflirt.a
ldd: warning: you do not have execution permission for `./libflirt.a'
not a dynamic executable

But this libflirt.a is a working library file.

thanks
shamju joseph
 
Old 09-25-2006, 11:26 AM   #2
m0rg
Member
 
Registered: Jun 2003
Location: France
Distribution: slackware 11.0
Posts: 80

Rep: Reputation: 15
Quote:
[root@localhost flirt-20060121]# ldd libflirt.a
ldd: warning: you do not have execution permission for `./libflirt.a'
I think your answer is in the question...you don't have the execution permission to run ldd on that file. Try some chmod if you can...
 
Old 09-25-2006, 12:53 PM   #3
shamju
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I've changed the permission but still error is there!

[root@localhost flirt-20060121]# chmod 777 libflirt.a

root@localhost flirt-20060121]# ls -l libflirt.a
-rwxrwxrwx 1 root root 1752280 Sep 25 19:58 libflirt.a

[root@localhost flirt-20060121]# ldd libflirt.a
not a dynamic executable
[root@localhost flirt-20060121]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swaret vs. Slapt-Get (library dependencies) FreeDoughnut Slackware 10 08-28-2006 11:27 PM
xscreensaver install trouble: library dependencies marquitico Linux - Newbie 4 08-26-2005 08:28 PM
complicated library dependencies mickepe Linux - Newbie 2 08-05-2005 04:43 AM
library dependencies bipins1979 Linux - Software 2 03-21-2005 10:50 PM
Command to check library dependencies daihard Linux - Software 2 12-09-2004 11:59 PM


All times are GMT -5. The time now is 12:23 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration