LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-02-2007, 02:03 AM   #1
Amrita@3086
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Rep: Reputation: 0
"list dynamic dependency" of an executable using command other than "ldd"


Hi all,
My application using dlopen() to load the Shared
object.
But, The man page for ldd telling that,
"ldd does not list shared objects explicitly
attached using dlopen(3DL)
"


Is there any way to find the "dynamic dependency"
used by an executable
, other than "ldd command"

Thanks in advance.
 
Old 04-02-2007, 07:57 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
You can trace all the files open by your application while it is running using truss, dtrace or apptrace:
Code:
$ apptrace -f ./dltest 2>&1 | grep dlopen
1290:-> a        ->  ld.so.1:void * dlopen(const char * = 0x8050a1c "/lib/foo.so", int = 0x0)
1290:<- a        ->  ld.so.1:dlopen()

Last edited by jlliagre; 04-02-2007 at 04:52 PM.
 
Old 04-04-2007, 03:00 AM   #3
Amrita@3086
LQ Newbie
 
Registered: Mar 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Hi jlliagre,
Thanks for your response,
But i have one more queiry,

Yesterday when I used apptrace command it was working fine.
but today when I am using the same command it is not showing anything.
will you pelase tell me why is it so?
Thanks in advance.
 
Old 04-04-2007, 04:56 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
If it doesn't show dlopen calls, then that must be because there are no more of them ...

Try removing the final "| grep dlopen" to see what other calls the command does.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Dynamic MMap ran out of room" error when adding new apt source list hasanito Debian 25 05-27-2013 03:56 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM


All times are GMT -5. The time now is 01:39 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration