Make sure there's a line reading /local/lib/tcl8.5 within your /etc/ld.so.conf file, and run ldconfig to update the database of loadable modules (must be run with root privs).
Great!
If I'll have root privs on that machine, there will be no problem.
Spent a lot of time trying to understand why linker/compiler ignores -I and -L params and --with-tcllib, --with-tclinc in configure.
strace ./eggdrop -v show us, that even if -I .... and -L.. was used correctly in compiling, eggdrop binary ignores that and wont search library in the defined path.
"
Linking eggdrop (standard build).
gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o dccutil.o dns.o flags.o language.o match.o main.o mem.o misc.o misc_file.o modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o userent.o userrec.o users.o -L/home/clients/websites/w_arsigr/opt/tcl/current/lib -ltcl8.5 -lm -ldl -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop
Successful compile: eggdrop
"
... but still 127:
"
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13970, ...}) = 0
old_mmap(NULL, 13970, PROT_READ, MAP_PRIVATE, 3, 0) = 0x127000
close(3) = 0
open("/lib/tls/sse2/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/lib/tls/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/lib/sse2/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/lib/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/sse2/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/usr/lib/sse2/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", 0xbfffec64) = -1 ENOENT (No such file or directory)
open("/usr/lib/libtcl8.5.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
writev(2, [{"./eggdrop", 9}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libtcl8.5.so", 12}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10./eggdrop: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
) = 121
exit_group(127) = ?
Process 22023 detached
"