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.

Problem re-compiling bot after updating TCL

Old posts that have not been replied to for several years.
Locked
S
Serevinus

Problem re-compiling bot after updating TCL

Post by Serevinus »

I had the eggdrop bot working using TCL 8.0.5, however I have updated TCL from 8.0.5 to 8.4.4 because a script wants a newer version...

I did...
make clean
rm config.cache
./configure (which finds the new version of TCL ok)
make config (seems to run fine)
make (gives a load of warnings then errors and stops... see quote block)
(This may take a while. Go get some Coca-Cola.)
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c bg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botcmd.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botmsg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botnet.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c chanprog.c
chanprog.c: In function `list_timers':
chanprog.c:636: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c cmds.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dccutil.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dns.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c flags.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c language.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H \
'-DCCFLAGS="gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H "' \
'-DLDFLAGS="gcc -pipe"' \
'-DSTRIPFLAGS="strip"' -c ./main.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c mem.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc_file.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c modules.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c net.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c rfc1459.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcl.c
tcl.c: In function `tcl_eggcouplet':
tcl.c:150: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c:152: warning: assignment discards qualifiers from pointer target type
tcl.c: In function `tcl_eggint':
tcl.c:192: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c:195: warning: assignment discards qualifiers from pointer target type
tcl.c: In function `tcl_eggstr':
tcl.c:255: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c:265: warning: assignment discards qualifiers from pointer target type
tcl.c: In function `add_tcl_strings':
tcl.c:708: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c: In function `rem_tcl_strings':
tcl.c:722: warning: passing arg 4 of `Tcl_VarTraceInfo' from incompatible pointer type
tcl.c:725: warning: passing arg 4 of `Tcl_UntraceVar' from incompatible pointer type
tcl.c: In function `add_tcl_ints':
tcl.c:750: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c: In function `rem_tcl_ints':
tcl.c:765: warning: passing arg 4 of `Tcl_VarTraceInfo' from incompatible pointer type
tcl.c:768: warning: passing arg 4 of `Tcl_UntraceVar' from incompatible pointer type
tcl.c: In function `add_tcl_coups':
tcl.c:794: warning: passing arg 4 of `Tcl_TraceVar' from incompatible pointer type
tcl.c: In function `rem_tcl_coups':
tcl.c:808: warning: passing arg 4 of `Tcl_VarTraceInfo' from incompatible pointer type
tcl.c:812: warning: passing arg 4 of `Tcl_UntraceVar' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcldcc.c
tcldcc.c: In function `tcl_botlist':
tcldcc.c:579: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
tcldcc.c: In function `tcl_dcclist':
tcldcc.c:615: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
tcldcc.c: In function `tcl_whom':
tcldcc.c:666: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
tcldcc.c:689: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclhash.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclmisc.c
tclmisc.c: In function `tcl_binds':
tclmisc.c:209: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
tclmisc.c: In function `tcl_modules':
tclmisc.c:530: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
tclmisc.c:534: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcluser.c
tcluser.c: In function `tcl_ignorelist':
tcluser.c:468: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userent.c
userent.c: In function `xtra_display':
userent.c:785: warning: passing arg 4 of `Tcl_SplitList' from incompatible pointer type
userent.c: In function `xtra_tcl_get':
userent.c:890: warning: passing arg 2 of `Tcl_Merge' from incompatible pointer type
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userrec.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c users.c
make[2]: Entering directory `/home/sites/site2/eggdrop1.6.9/src/md5'
gcc -pipe -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c md5c.c
make[2]: Leaving directory `/home/sites/site2/eggdrop1.6.9/src/md5'
make[2]: Entering directory `/home/sites/site2/eggdrop1.6.9/src/compat'
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c inet_aton.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c snprintf.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c memset.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c memcpy.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c strcasecmp.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c strftime.c
make[2]: Leaving directory `/home/sites/site2/eggdrop1.6.9/src/compat'
---------- 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 -L/usr/lib -ltcl -lm -ldl -lnsl md5/md5c.o compat/*.o `cat mod/mod.xlibs`
tcl.o: In function `utf_converter':
/home/sites/site2/eggdrop1.6.9/src/tcl.c:310: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o: In function `init_tcl':
/home/sites/site2/eggdrop1.6.9/src/tcl.c:601: undefined reference to `Tcl_UtfToLower'
/home/sites/site2/eggdrop1.6.9/src/tcl.c:602: undefined reference to `Tcl_SetSystemEncoding'
/home/sites/site2/eggdrop1.6.9/src/tcl.c:616: undefined reference to `Tcl_SetSystemEncoding'
/home/sites/site2/eggdrop1.6.9/src/tcl.c:629: undefined reference to `Tcl_GetEncoding'
tclmisc.o: In function `tcl_md5':
/home/sites/site2/eggdrop1.6.9/src/tclmisc.c:598: undefined reference to `Tcl_GetByteArrayFromObj'
collect2: ld returned 1 exit status
make[1]: *** [../eggdrop] Error 1
make[1]: Leaving directory `/home/sites/site2/eggdrop1.6.9/src'
make: *** [modegg] Error 2
Any ideas what the problem is?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

well, I would suggest upgrading your eggdrop version.

eggdrop1.6.9 is old, download eggdrop1.6.15 www.geteggdrop.com
and update it. it should work fine after u ./configure, make config, make...
S
Serevinus

Post by Serevinus »

OK, thanks... new version returns a few less warnings, but it still wont compile...
make[1]: Entering directory `/home/sites/site2/eggdrop1.6.15/src'
(This may take a while. Go get some runts.)
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c bg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botcmd.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botmsg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c botnet.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c chanprog.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c cmds.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dccutil.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c dns.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c flags.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c language.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c match.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H \
'-DCCFLAGS="gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H "' \
'-DLDFLAGS="gcc -pipe"' \
'-DSTRIPFLAGS="strip"' -c ./main.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c mem.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc.c
misc.c: In function `putlog':
misc.c:490: warning: `t' might be used uninitialized in this function
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c misc_file.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c modules.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c net.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c rfc1459.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcl.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcldcc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclhash.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tclmisc.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c tcluser.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userent.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c userrec.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -c users.c
make[2]: Entering directory `/home/sites/site2/eggdrop1.6.15/src/md5'
gcc -pipe -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c md5c.c
make[2]: Leaving directory `/home/sites/site2/eggdrop1.6.15/src/md5'
make[2]: Entering directory `/home/sites/site2/eggdrop1.6.15/src/compat'
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c inet_aton.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c inet_ntop.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c snprintf.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c memset.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c memcpy.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c strcasecmp.c
gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -c strftime.c
make[2]: Leaving directory `/home/sites/site2/eggdrop1.6.15/src/compat'
---------- 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: In function `tcl_eggstr':
/home/sites/site2/eggdrop1.6.15/src/tcl.c:288: undefined reference to `Tcl_GetVar2Ex'
/home/sites/site2/eggdrop1.6.15/src/tcl.c:292: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o: In function `utf_converter':
/home/sites/site2/eggdrop1.6.15/src/tcl.c:350: undefined reference to `Tcl_GetByteArrayFromObj'
tcl.o: In function `init_tcl':
/home/sites/site2/eggdrop1.6.15/src/tcl.c:646: undefined reference to `Tcl_UtfToLower'
/home/sites/site2/eggdrop1.6.15/src/tcl.c:647: undefined reference to `Tcl_SetSystemEncoding'
/home/sites/site2/eggdrop1.6.15/src/tcl.c:661: undefined reference to `Tcl_SetSystemEncoding'
/home/sites/site2/eggdrop1.6.15/src/tcl.c:674: undefined reference to `Tcl_GetEncoding'
tclmisc.o: In function `tcl_md5':
/home/sites/site2/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/sites/site2/eggdrop1.6.15/src'
make: *** [modegg] Error 2
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Please do avoid pasting big chunks of stuff that are not so important, put them to a free web hosting page thing and paste the link. Thank you.
Once the game is over, the king and the pawn go back in the same box.
S
Serevinus

Post by Serevinus »

OK, sorry, next time I have something big to post I will do that...

Do you have any idea how I can get this to install? one of my customers is asking for it (he needs something that can save file with a list of people currently in a specific chan on his irc server... I have a TCL script that can do that, but I need to get the eggdrop installed first... Unles you can think of another way I can do what he wants?)

Thanks
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Try re-installing the TCL package, see if that helps.
Once the game is over, the king and the pawn go back in the same box.
Locked