Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crle

Status
Not open for further replies.

Igaduma

Technical User
Nov 23, 2001
322
0
0
BE
Hi All,

Slow crle death here.
Got a binary that is called by a script.

Script:
# Script to control the operation of the Sun loader when loading eProcess executables
LD_CONFIG=/fnsw/bin/vw_virtual_table.conf
export LD_CONFIG
exec VWJs.X $*

The binary lacks some libs.
When setting LD_LIBRARY_PATH to where the libs are, no luck.
When linking them into /usr/lib ,it finds them.

crle -c vw_virtual_table.conf contains this:
Configuration file [version 4]: vw_virtual_table.conf [ RTLD_REL_RELATIVE ]
Default Library Path (ELF): /usr/lib (system default)
Trusted Directories (ELF): /usr/lib/secure (system default)

Memory Reservation: fe500000 - ff264000 (d64000 bytes)

Directory: /fnsw/lib/shobj
libvwvfylib.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwvfylib.so)
libvwcdl.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwcdl.so)
libvwprint.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwprint.so)
libvwserver.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwserver.so)
libvwrunsvc.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwrunsvc.so)
libvwfnbase.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwfnbase.so)
libvwxml.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwxml.so)
libvwsystem.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwsystem.so)
libvwalloc.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwalloc.so)
libvwjava.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwjava.so)
libvwperobj.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwperobj.so)
libvwruncom.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwruncom.so)
libvwexpr.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwexpr.so)
libvwjavavm.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwjavavm.so)
libvwdbi.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwdbi.so)
libvwcppv.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwcppv.so)
libvwrules.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwrules.so)

Directory: .
libvwvfylib.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwvfylib.so)
libvwcdl.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwcdl.so)
libvwprint.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwprint.so)
libvwserver.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwserver.so)
libvwrunsvc.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwrunsvc.so)
libvwfnbase.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwfnbase.so)
libvwxml.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwxml.so)
libvwsystem.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwsystem.so)
libvwalloc.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwalloc.so)
libvwjava.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwjava.so)
libvwperobj.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwperobj.so)
libvwruncom.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwruncom.so)
libvwexpr.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwexpr.so)
libvwjavavm.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwjavavm.so)
libvwdbi.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwdbi.so)
libvwcppv.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwcppv.so)
libvwrules.so (alternate: /fnsw/lib/shobj/fixed-libs/libvwrules.so)

Command line:
crle -c vw_virtual_table.conf -o /fnsw/lib/shobj/fixed-libs -I ./libvwrules.so -I ./libvwprint.so -I ./libvwserver.so -I ./libvwruncom.so -I ./libvwexpr.so -I ./libvwsystem.so -I ./libvwalloc.so -I ./libvwjava.so -I ./libvwdbi.so -I ./libvwrunsvc.so -I ./libvwxml.so -I ./libvwcdl.so -I ./libvwcppv.so -I ./libvwperobj.so -I ./libvwvfylib.so -I ./libvwjavavm.so -I ./libvwfnbase.so

when executing the crle -u -c vw_virtual_table.conf and trying to add a different location, crle seems to loose all the directory & alternate pointers.

How are the directories & alternate pointers then created when the command in crle -c <conf_file> doesn't retain them ?
 
can I see the output of with a set LD_LIBRARY_PATH and without
# ldd ./crle


Best Regards, Franz
--
System Manager (Solaris, HP-UX, Linux, some networking, some SAN)
 
Hi DaFranze

What you want is a ldd of the called binary, once without LD path & once with LD path ?

ldd /usr/bin/crle gives this:

bash-2.05$ ldd /usr/bin/crle
libelf.so.1 => /usr/bin/../lib/libelf.so.1
libdl.so.1 => /usr/bin/../lib/libdl.so.1
libc.so.1 => /usr/bin/../lib/libc.so.1
/usr/platform/FJSV,GPUSK/lib/libc_psr.so.1

 
strange path string /usr/bin/../lib/ - I mean this is ok, but I have never seen this. There are no unresolved paths to libs, that was my major goal.
I suggest to add a
ldd /usr/bin/crle >> /tmp/lddcrle
to your script and check if the libs are resolved by the script, too.

Best Regards, Franz
--
System Manager (Solaris, HP-UX, Linux, some networking, some SAN)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top