Shared Object, ID yourself

2006-04-06 Thread Orna Agmon
Hi all, I need to identify a shared library. Usually, shared libraries' versions are identified using a symlink. The main shared object is called something like libX.so, but it is actually a symlink to libX.so.3.1.4, where 3.1.4 is the version. I would like to verify/find out the version without

Re: Shared Object, ID yourself

2006-04-06 Thread Omer Zak
DISCLAIMER: I did not actually try it. man dladdr dladdr() is a GNU extension to glibc. When given the function pointer, it returns data into Dl_info structure, including (among other things) also the filename of the dynamic library, in which the function exists. I assume that you need to

Re: Domestic VoIP service of BezeqInt

2006-04-06 Thread Ilya Konstantinov
Ira Abramov wrote: * Hot (077 service) is using a cable link protocol, directly on DOCSYS, therefore nothing like SIP or Asterisk compliance. you have to use their ATA. At the very least I would have expected this little detail to mean that the ATA takes on a separate slice of bandwidth from the

Re: Shared Object, ID yourself

2006-04-06 Thread Muli Ben-Yehuda
On Thu, Apr 06, 2006 at 11:42:49AM +0300, Orna Agmon wrote: Is there a standard and reliable way to read these values from within the software using the shared object, or is the only way reading the elf externally (giving the program its name and treating it like just another file, ignoring

Re: Domestic VoIP service of BezeqInt

2006-04-06 Thread Geoffrey S. Mendelson
On Thu, Apr 06, 2006 at 12:48:45PM +0300, Ilya Konstantinov wrote: If the device hooks up directly to the cable, just like a cable modem or a set-top box, then it doesn't take a slice off your (for sake of example) 1.5M Internet package. In essence, to the ATA, your cable modem is just like

Re: Shared Object, ID yourself

2006-04-06 Thread Shachar Shemesh
Orna Agmon wrote: The ELF format has fields like e_version (ev_current) and e_ident (ei_version), which are currently defined as holding the same information. objdump -x library.so | grep SONAME Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. Have you backed up today's

Re: Shared Object, ID yourself

2006-04-06 Thread Omer Zak
On Thu, 2006-04-06 at 14:17 +0300, Shachar Shemesh wrote: Orna Agmon wrote: The ELF format has fields like e_version (ev_current) and e_ident (ei_version), which are currently defined as holding the same information. objdump -x library.so | grep SONAME Orna asked for a way, which

Re: Shared Object, ID yourself

2006-04-06 Thread Orna Agmon
On Thu, 6 Apr 2006, Omer Zak wrote: Date: Thu, 06 Apr 2006 14:41:04 +0300 From: Omer Zak [EMAIL PROTECTED] To: linux-il linux-il@linux.org.il Subject: Re: Shared Object, ID yourself On Thu, 2006-04-06 at 14:17 +0300, Shachar Shemesh wrote: Orna Agmon wrote: The ELF format has fields

Re: Shared Object, ID yourself

2006-04-06 Thread Omer Zak
On Thu, 2006-04-06 at 17:53 +0300, Orna Agmon wrote: Because my problem is a specific shared object which, contrary to reasonable and normal installations, is NOT a symlink. All I got is libpgc.so, and I need to guess which compiler version it matches. With FOSS compilers there is no problem

Re: Shared Object, ID yourself

2006-04-06 Thread Oleg Goldshmidt
Orna Agmon [EMAIL PROTECTED] writes: Because my problem is a specific shared object which, contrary to reasonable and normal installations, is NOT a symlink. All I got is libpgc.so, and I need to guess which compiler version it matches. Orna, I don't quite understand this statement. Do you

readelf [was:Re: Shared Object, ID yourself]

2006-04-06 Thread Orna Agmon
Ok, I got a working solution (from Muli :-) ). readelf reads the elf file, and gives output which relates to the ELF spec (I found it at http://www.skyfree.org/linux/references/ELF_Format.pdf ). The other solutions, objdump and ldd, both rely on file names, which is not good enough for me (I do

XQueryTree

2006-04-06 Thread Shachar Shemesh
http://tronche.com/gui/x/xlib/window-information/XQueryTree.html for some reason, when I run this function on an X display, querying all children of the root window, I get a very long list. Much longer than anticipated. When I try to get XFetchName on the windows, I get lots of duplicates. For

Re: Shared Object, ID yourself

2006-04-06 Thread Yedidyah Bar-David
On Thu, Apr 06, 2006 at 08:05:40PM +0300, Oleg Goldshmidt wrote: Orna Agmon [EMAIL PROTECTED] writes: Because my problem is a specific shared object which, contrary to reasonable and normal installations, is NOT a symlink. All I got is libpgc.so, and I need to guess which compiler version

Re: Shared Object, ID yourself

2006-04-06 Thread Shachar Shemesh
Orna Agmon wrote: Because my problem is a specific shared object which, contrary to reasonable and normal installations, is NOT a symlink. All I got is libpgc.so, and I need to guess which compiler version it matches. There is a possibility that you have misunderstood the purpose of the

Re: XQueryTree

2006-04-06 Thread Amos Shapira
On 4/6/06, Shachar Shemesh [EMAIL PROTECTED] wrote: http://tronche.com/gui/x/xlib/window-information/XQueryTree.html for some reason, when I run this function on an X display, querying all children of the root window, I get a very long list. Much longer than anticipated. Every widget