This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

tcllib problems though compiling worked :/

General support and discussion of Eggdrop bots.
Post Reply
s
soomon
Voice
Posts: 6
Joined: Sat Mar 04, 2006 10:23 am

tcllib problems though compiling worked :/

Post by soomon »

heyho,
i just reinstalled my server and wanted to setup my eggdrop.
as i knew i had problems setting up the eggdrop the last time i searched for this "export" thing because i knew it did it the last time.


i installed activetcl, then:

Code: Select all

export LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib/
and ran ./configure with the correct path's:

Code: Select all

./configure --with-tclinc='/usr/local/ActiveTcl/include/tcl.h' --with-tcllib='/usr/local/ActiveTcl/lib/libtcl8.4.so'

checking for Tcl library... using /usr/local/ActiveTcl/lib/libtcl8.4.so
checking for Tcl header... using /usr/local/ActiveTcl/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.13
checking for Tcl_Free in -ltcl8.4... yes
checking for TclpFinalizeThreadData in -ltcl8.4... no
no error at the end of the auto-configuration...

--

when running "make config" i didn't see anything concerning tcl.

Code: Select all

make:
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/usr/local/ActiveTcl/lib -ltcl8.4 -lm -ldl -lnsl  md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop
...

Code: Select all

All modules compiled.
make[1]: Leaving directory `/home/servant/eggdrop1.6.17/src/mod'

Test run of ./eggdrop -v:
./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [modules] Fehler 127
--
ldd eggdrop returns:

Code: Select all

ldd eggdrop
                libtcl8.4.so => /usr/local/ActiveTcl/lib/libtcl8.4.so (0x40018000)
        libm.so.6 => /lib/tls/libm.so.6 (0x400c2000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0x400e5000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0x400e8000)
        libc.so.6 => /lib/tls/libc.so.6 (0x400fc000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
what's wrong this time? ;/

thx & greets,
soomon
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

likely your LD_LIBRARY_PATH
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
s
soomon
Voice
Posts: 6
Joined: Sat Mar 04, 2006 10:23 am

Post by soomon »

how does it ave to look like?

i tried export LB_LIBRARY_PATH='/usr/lib/libtcl8.4.so.0'

and export LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib/
which file does it have to link at?
or to which directory? ;/

and why does he say: /eggdrop: error while loading shared libraries: libtcl8.4.so
when the link in ./configure --with ...
is correct?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you either don't have libtcl8.4.so in /usr/local/ActiveTcl/lib, or have no permission to load it

locate it and set LD_LIBRARY_PATH to the directory it is in

or fix your file permissions
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
s
soomon
Voice
Posts: 6
Joined: Sat Mar 04, 2006 10:23 am

Post by soomon »

as I wrote above:

ldd eggdrop
libtcl8.4.so => /usr/local/ActiveTcl/lib/libtcl8.4.so (0x40018000)

so it IS there!

and as i wrote he also recognises the file:

Code: Select all

checking for Tcl library... using /usr/local/ActiveTcl/lib/libtcl8.4.so
checking for Tcl header... using /usr/local/ActiveTcl/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.4
checking for Tcl patch level... 8.4.13
checking for Tcl_Free in -ltcl8.4... yes 
and when i use midnight commander from the user that shall run the eggdrop i can also view it.

which permissions does the user need???
s
soomon
Voice
Posts: 6
Joined: Sat Mar 04, 2006 10:23 am

Post by soomon »

strange...
the bot works...
lol
i just ignored tis errormessage and started it and it works o_0
Post Reply