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.

Compiling error

Old posts that have not been replied to for several years.
Locked
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Compiling error

Post by optik »

Hey, need help on this one guys, I chcked around the forums havn't found anywhere about this...similar but not exactly and I have no idea about it either...everything goes ok except for the last part when it gets to the linking part it returns undefined references and I have my tcl installed and all so i have no idea

Code: Select all

---------- 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 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/lib -ltcl -lm -ldl -lnsl  md5/md5c.o compat/*.o `cat mod/mod.xlibs`
tcl.o(.text+0x561): In function `tcl_eggstr':
/home/optik/eggdrop1.6.15/src/tcl.c:288: undefined reference to `Tcl_GetVar2Ex'
tcl.o(.text+0x58a):/home/optik/eggdrop1.6.15/src/tcl.c:292: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o(.text+0x77a): In function `utf_converter':
/home/optik/eggdrop1.6.15/src/tcl.c:350: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o(.text+0xb41): In function `init_tcl':
/home/optik/eggdrop1.6.15/src/tcl.c:661: undefined reference to `Tcl_SetSystemEncoding'
tcl.o(.text+0xb6b):/home/optik/eggdrop1.6.15/src/tcl.c:674: undefined reference to `Tcl_GetEncoding'
tcl.o(.text+0xc85):/home/optik/eggdrop1.6.15/src/tcl.c:646: undefined reference to `Tcl_UtfToLower'
tcl.o(.text+0xc94):/home/optik/eggdrop1.6.15/src/tcl.c:647: undefined reference to `Tcl_SetSystemEncoding'
tclmisc.o(.text+0x1808): In function `tcl_md5':
/home/optik/eggdrop1.6.15/src/tclmisc.c:662: undefined reference to `Tcl_GetByteArrayFromObj'
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/home/optik/eggdrop1.6.15/src'
make: *** [modegg] Error 2
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Weird.. haven't seen that one before.

Tcl version? Operating system?

Wcc
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

8.4.6 tcl and redhat 9.0
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Try:

Code: Select all

export LD_LIBRARY_PATH=/path/to/DIRECTORY/containing/libtcl8.4.so
./configure --with-tcllib=/path/to/fine/libtcl8.4.so --with-tclinc=/path/to/tcl.h
make config
make
Wcc
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

weird now it compiles ok i think but sum weird error now

Code: Select all

---------- 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 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/tcl8.4.6/unix -ltcl8.4 -lm -ldl -lnsl  md5/md5c.o compat/*.o `cat mod/mod.xlibs`
strip ../eggdrop
Successful compile: eggdrop

make[1]: Leaving directory `/home/optik/eggdrop1.6.15/src'

./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
make: *** [modegg] Error 127
and i got 2 of those files in the system
/usr/local/lib/libtcl8.4.so
/tcl8.4.6/unix/libtcl8.4.so
and i've tried both but same thing =/
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

And you're SURE you did export LD_LIBRARY_PATH=/usr/local/lib ?
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

i didn't it but i didn't see any return or anything maybe i did it wrong or sumthing?
i just entered that in eggy folder with the lib path and the filename and thats it but it didn't return anything like expoted done or sumthing like that i proly did sumthing wrong huh? :(
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

anyone still willing to give this problem a shot ? pweez :) hehe
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Where is your tcl.h?
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

Code: Select all

/usr/include/tcl.h
/usr/local/include/tcl.h
/home/optik/tcl8.4.7/win/tcl.hpj.in
/home/optik/tcl8.4.7/tools/tcl.hpj.in
/home/optik/tcl8.4.7/generic/tcl.h
/tcl8.4.6/win/tcl.hpj.in
/tcl8.4.6/tools/tcl.hpj.in
/tcl8.4.6/generic/tcl.h
and i've tried both /usr/include/tcl.h and
/usr/local/include/tcl.h
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Code: Select all

export LD_LIBRARY_PATH=/usr/local/lib

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

make config

make

make install
o
optik
Voice
Posts: 12
Joined: Wed Jul 21, 2004 3:17 pm

Post by optik »

ahh got it thx i messed up on the export i misunderstood what you mean :P
thanks a lot man :) off to code new additions to the botnet then :) thx again
Locked