From: Denise Sandell <dsandell@execpc.com>
I'm attempting to get cricket running on a new machine here and am running
into problems with the collector running socksified in version 0.70
The version I was running on the old one (soon to be retired) was
cricket-0.61 on Solaris 5.6
I have a runsocks program to run the collector script socksified, but it
doesn't seem to work with the newer version of the collector (0.68-0.70,
actually) on RH-6.0.
I have included the source for runsocks at the bottom of the message.
Has anyone else had any experience running the collector successfully with
runsocks (or something similar)?
as always, any help would be appreciated (i really want to ditch the Solaris
machine).
-- begin file --
#!/bin/sh
#
# Put the path to the socks shared library in our LD_LIBRARY_PATH so when we
# preload the library, ld.so will find it...
#
if test -n "${SOCKS5_SHLIB_RUNPATH}" ; then
SOCKS5_SHLIB_RUNPATH="${SOCKS5_SHLIB_RUNPATH}/"
elif test -n "/usr/local/lib"; then
SOCKS5_SHLIB_RUNPATH="/lib/"
else
SOCKS5_SHLIB_RUNPATH="./"
fi
#
# Some OS's use PRELOADS=lib while others use _RLD_LIST=lib:DEFAULT. Hopefully
# this can handle all those cases. At any rate, this is basically causing the
# socks5 shared libary to be used to resolve symbols before other libraries,
# hence we get socks's connect before we get libc's connect...
#
# Also, on SunOS 4*, LD_LIBRARY_PATH has no effect on, so we need to put the path
# in front of it. We make the path overridable with SOCKS5_SHLIB_RUNPATH...
#
case `uname -rs` in
SunOS*4.*)
LD_PRELOAD=${SOCKS5_SHLIB_RUNPATH}libsocks5_sh.so
export LD_PRELOAD
;;
*)
if test -z "$LD_LIBRARY_PATH" ; then
LD_LIBRARY_PATH=${SOCKS5_SHLIB_RUNPATH}
else
LD_LIBRARY_PATH=${SOCKS5_SHLIB_RUNPATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
fi
LD_PRELOAD=libsocks5_sh.so
export LD_LIBRARY_PATH
;;
esac
#
# Run the actual program...
#
export LD_PRELOAD
exec $*
-- end file --
-- - Denise Sandell ExecPC Network Operations - - dsandell@execpc.com http://home.execpc.com/ - - PGP -- http://www.execpc.com/~dsandell/stuff/PGPpub ---------------------------- ONElist Sponsor ----------------------------
Create a list for FRIENDS & FAMILY... ....and YOU can WIN $100 to Amazon.com. For details, go to http://www.onelist.com/info/onereachsplash3.html
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:00 PST