On 15-Nov-2006 Roderich Schupp wrote: >> copy the executable to a computer with RHEL 3, it will not run, complaining >> that libperl.so is missing. > > OK, given your experiment with LD_LIBRARY_PATH and LD_PRELOAD: > what does "readelf -d" (or the "Dynamic section" in the output of "objdump > -ax" > if you don't have readelf) say when run on the executable that is > unpacked into /tmp/par-dw/cache-XXXXX (_not_ on dw.exec itself)?
I don't have access to the RHEL box right not, but on a CentOS computer where I moved the libperl.so out of the way, I get : Dynamic section at offset 0xc014 contains 29 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libperl.so] 0x00000001 (NEEDED) Shared library: [libresolv.so.2] 0x00000001 (NEEDED) Shared library: [libnsl.so.1] 0x00000001 (NEEDED) Shared library: [libdl.so.2] 0x00000001 (NEEDED) Shared library: [libm.so.6] 0x00000001 (NEEDED) Shared library: [libcrypt.so.1] 0x00000001 (NEEDED) Shared library: [libutil.so.1] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000f (RPATH) Library rpath: [/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE] 0x0000000c (INIT) 0x8049c0c 0x0000000d (FINI) 0x804ede4 0x00000004 (HASH) 0x8048148 0x00000005 (STRTAB) 0x8048eb0 0x00000006 (SYMTAB) 0x80485a0 0x0000000a (STRSZ) 2072 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x8054144 0x00000002 (PLTRELSZ) 808 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x80498e4 0x00000011 (REL) 0x804989c 0x00000012 (RELSZ) 72 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x80497ec 0x6fffffff (VERNEEDNUM) 3 0x6ffffff0 (VERSYM) 0x80496c8 0x00000000 (NULL) 0x0 perl -V on the FC3 computer gives me : ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE' -Philip
