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.

eggdrop on openbds 3.0

Old posts that have not been replied to for several years.
Locked
D
Defiant

Post by Defiant »

Hello

I installed tcl in my home direcotory.
setting exports for TCLLIB and TCLINC i get ./configure to work.
then I typed make.
The compiling was successful, but not the linking:

---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop...

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 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 mod/*.o -L/home/crom/defiant/tcl/lib/ -ltcl -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
ld: -ltcl: no match
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/crom/defiant/eggdrop1.6.8/src (line 36 of Makefile).
*** Error code 1

Stop in /home/crom/defiant/eggdrop1.6.8 (line 219 of Makefile).

I have no root access and the saystem ist (uname -a):
OpenBSD g33k 3.0 g33k#0 i386

It looks like there is a problem with the dynamic loader...
I looked in the Makefile and found that for tcl:
# stuff for Tcl
XREQS = /home/crom/defiant/tcl/lib//libtcl.so
XLIBS = -L/home/crom/defiant/tcl/lib/ -ltcl -lm
TCLLIB = /home/crom/defiant/tcl/lib/
TCLLIBFN = tcl.so

...so the -ltcl is wrong...any ideas, please?
D
Defiant

Post by Defiant »

ok...it has to be
XLIBS = -L/home/crom/defiant/tcl/lib/ -ltcl84 -lm
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

yes, because you should symlink the major version of tcl you're using to libtcl.a and libtcl.so in your lib dir. this is standard practice for modern libraries - they are built into files containing their version number (ie libtcl8.4.a) so that you can have more than 1 version on the system. eggdrop however, by default, looks for the default tcl library, which standard naming rules would be libtcl.a (or libtcl.so if its shared). Its the sysadmins responsibility to ensure that the symlinks for standard named libraries are in place, or the compilers responsibility to modify their makefile/enviroment to point to the nonstandard names.
D
Defiant

Post by Defiant »

k - thx
Locked