Compare two executables


 
Thread Tools Search this Thread
Top Forums Programming Compare two executables
# 8  
Old 05-15-2009
I don't know how output of ldd looks like on Linux. My AIX system lists the shlibs needed by any executable in a single column while my HPUX shows 2 columns separated by => sign. So on HPUX the lhs of => shows the shlib as recorded in the executable while the rhs is the physical location (on disk) of that shlib. Also ldd won't show any shlibs that have been loaded explicitly by calling dlopen in the code.
# 9  
Old 05-15-2009
Within the two sessions I am running I have:

env > env.txt

then run diff on the two files. The only differences are related to the directories I'm running in and LD_LIBRARY_PATH is identical.
# 10  
Old 05-15-2009
Sorry need to edit this

Last edited by BrighterLater; 05-15-2009 at 01:16 PM..
# 11  
Old 05-15-2009
Well they look the same...not any difference. Can you post the errors you are getting with the new version.
# 12  
Old 05-15-2009
Are there any recommended compiler option for the new APIs specified in the doc?
Are there any new required environment variables recommended for the new APIs?
# 13  
Old 05-15-2009
New Version

linux-gate.so.1 => (0xffffe000)
libXm.so.2 => /usr/lib/libXm.so.2 (0x55556000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x00944000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00c99000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00101000)
libclntsh.so.8.0 => /site/gngapps/lgc/03.12/Linux/lib/libclntsh.so.8.0 (0x556f2000)
libnsl.so.1 => /lib/libnsl.so.1 (0x02367000)
libdl.so.2 => /lib/libdl.so.2 (0x00b76000)
libg2c.so.0 => /usr/lib/libg2c.so.0 (0x55ca9000)
libgpr_ctk.so => /site/gngapps/lgc/03.12/Linux/SeisWorks/lib/libgpr_ctk.so (0x55cc7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b7c000)
libm.so.6 => /lib/libm.so.6 (0x00b3f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0099e000)
libc.so.6 => /lib/libc.so.6 (0x009e1000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00b26000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x55e08000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x001e9000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x001cd000)
libXp.so.6 => /usr/lib/libXp.so.6 (0x55ec2000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00c94000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00c8c000)
libwtc8.so => /site/gngapps/lgc/03.12/Linux/lib/libwtc8.so (0x55eca000)
/lib/ld-linux.so.2 (0x009c3000)

Old (working version)

linux-gate.so.1 => (0xffffe000)
libXm.so.2 => /usr/lib/libXm.so.2 (0x55556000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x00944000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00c99000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00101000)
libgpr_ctk.so => /site/gngapps/lgc/03.12/Linux/SeisWorks/lib/libgpr_ctk.so (0x556f2000)
libclntsh.so.8.0 => /site/gngapps/lgc/03.12/Linux/lib/libclntsh.so.8.0 (0x55833000)
libnsl.so.1 => /lib/libnsl.so.1 (0x02367000)
libg2c.so.0 => /usr/lib/libg2c.so.0 (0x55de9000)
libdl.so.2 => /lib/libdl.so.2 (0x00b76000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00b7c000)
libm.so.6 => /lib/libm.so.6 (0x00b3f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0099e000)
libc.so.6 => /lib/libc.so.6 (0x009e1000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00b26000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x55e08000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x001e9000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x001cd000)
libXp.so.6 => /usr/lib/libXp.so.6 (0x55ec2000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00c94000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00c8c000)
libwtc8.so => /site/gngapps/lgc/03.12/Linux/lib/libwtc8.so (0x55eca000)
/lib/ld-linux.so.2 (0x009c3000)
# 14  
Old 05-15-2009
Sorry about that. Cut and Paste from Linux from terminal emulator to windows is unreliable and I ended up posting to identical Paste Buffers. Apolgies again
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Gcc cannot create executables

https://www.unix.com/302461112-post1.html Thank you. It's still in Linux Mint 17 (3 Replies)
Discussion started by: jgt
3 Replies

2. Shell Programming and Scripting

Scripting with executables

Hi everyone, I am working with an executable (let's say work) in bash shell. When I run this work executable it asks the following information; 1- choose task a or b 2- input file 3- output file 4- some operational choices after it reads the given input file, does some algebraic... (17 Replies)
Discussion started by: hayreter
17 Replies

3. Shell Programming and Scripting

Help: Makefile with multiple executables

I am trying to create executables for the following files Currently, I am making 9 different directories for for each. I would like to make 1 directory but everytime I try it does not work. CROSS_COMPILE?= # CROSS_COMPILE used to = arm-arago-linux-gnueabi... (1 Reply)
Discussion started by: bpetersen
1 Replies

4. Shell Programming and Scripting

Searching for executables

Hello Unix users, this is my first post here. :) I want to search a directory (and subdirectories) for executable files (files with rwx------ permission) and move them to a different folder. What Unix commands can accomplish this? (2 Replies)
Discussion started by: Sagan_Radiation
2 Replies

5. Shell Programming and Scripting

Running executables in ksh

I am trying a set up a very simple korn shell script. It has 2 basic steps. Firstly I read the first line of a text file (which is a file name) Secondly I run a fortran executable using that line I must be doing something wring because it wouldn't work. I know that the executable wants the... (4 Replies)
Discussion started by: larangunn
4 Replies

6. Solaris

C compiler cannot create executables

Hi, I'm trying to compile Apache2.2 (I know it is available as a package) on a fresh install of Solaris Express 11. I've installed gcc-3 and gnu-bintutils via pkg. The config.log is attached (as config.txt). I don't see what I'm missing. Thanks, Doug (1 Reply)
Discussion started by: Doug_M
1 Replies

7. UNIX for Dummies Questions & Answers

Regarding shell scripts to executables

Hi, I have written a shell script for automating some of our repetitive activities. I want all my colleagues to use my script and do the activities automatically by just running the script. But I do not want them to see the code. Is there a way we can generate something like an executable... (16 Replies)
Discussion started by: lokachari
16 Replies

8. Programming

Error creating executables

hi, I am getting error when trying to create binaaries for Xerces C++ error is configure:error:installation:cofihuration error:compiler cant create executables ??????????? Thanks in advance im using AIX flavour of IBM Im using ./configure command to create binaries.Its saying c... (6 Replies)
Discussion started by: chetan2309
6 Replies

9. Programming

executables ending with *

Hi All, I m very new to unix. I have a basic doubt .. In unix I m seeing that there is a * at the end of by executable name (exe1*).. Wht is the significance of that Thanks a lot in advance (2 Replies)
Discussion started by: binums
2 Replies

10. UNIX for Dummies Questions & Answers

cannot create executables

I am trying to install PROFTPD-1.2.7 on a SCO OpenServer 5.0.6 Server with a gcc-2.95.2 installed the VOLS files from http://www.caldera.com/skunkware. The problem I am having is when I try to run ./configure in the proftpd directory I get this error: # ./configure checking build system... (6 Replies)
Discussion started by: stufine
6 Replies
Login or Register to Ask a Question