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.

Problems with compiling the bot

General support and discussion of Eggdrop bots.
j
jsl
Voice
Posts: 12
Joined: Wed Nov 01, 2006 9:38 pm

Post by jsl »

I added #include "proto.h" to those 3 files, ./configure and 'make config' went fine, and now it says:
[8:44] koopa ~/eggdrop1.6.18 % make
This may take a while. Go get some runts.

cc -g -I.. -I.. -DHAVE_CONFIG_H -c bg.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c botcmd.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c botmsg.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c botnet.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c chanprog.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c cmds.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c dcc.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c dccutil.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c dns.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c flags.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c language.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c match.c
cc -g -I.. -I.. -DHAVE_CONFIG_H \
'-DCCFLAGS="cc -g -I.. -I.. -DHAVE_CONFIG_H "' \
'-DLDFLAGS="cc"' \
'-DSTRIPFLAGS="touch"' -c ./main.c
"./main.c", line 1107: warning: static function called but not defined: garbage_collect_tclhash()
cc -g -I.. -I.. -DHAVE_CONFIG_H -c mem.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c misc.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c misc_file.c
cc -g -I.. -I.. -DHAVE_CONFIG_H -c modules.c
"modules.c", line 1089: warning: assignment type mismatch:
pointer to function(int, pointer to char, int) returning void "=" pointer to function() returning void
"modules.c", line 1097: warning: assignment type mismatch:
pointer to function(pointer to struct userrec {pointer to struct userrec {..} next, array[10] of char handle, unsigned long flags, unsigned long flags_udef, pointer to struct chanuserrec {..} chanrec, pointer to struct user_entry {..} entries}, pointer to char) returning int "=" pointer to function() returning int
"modules.c", line 1156: warning: static function called but not defined: open_listen()
cc -g -I.. -I.. -DHAVE_CONFIG_H -c net.c
"proto.h", line 92: syntax error before or at: EGG_VARARGS
"proto.h", line 92: syntax error before or at: arg1
"proto.h", line 92: warning: undefined or missing type for: arg1
"proto.h", line 92: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 93: cannot have void object: tandout_but
"proto.h", line 93: syntax error before or at: EGG_VARARGS
"proto.h", line 93: syntax error before or at: arg1
"proto.h", line 93: warning: undefined or missing type for: arg1
"proto.h", line 93: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 134: cannot have void object: dprintf_eggdrop
"proto.h", line 134: syntax error before or at: EGG_VARARGS
"proto.h", line 134: syntax error before or at: arg1
"proto.h", line 134: warning: undefined or missing type for: arg1
"proto.h", line 134: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 135: cannot have void object: chatout
"proto.h", line 135: syntax error before or at: EGG_VARARGS
"proto.h", line 135: syntax error before or at: arg1
"proto.h", line 135: warning: undefined or missing type for: arg1
"proto.h", line 135: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 138: cannot have void object: chanout_but
"proto.h", line 138: syntax error before or at: EGG_VARARGS
"proto.h", line 138: syntax error before or at: arg1
"proto.h", line 138: warning: undefined or missing type for: arg1
"proto.h", line 138: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 150: syntax error before or at: *
"proto.h", line 150: warning: undefined or missing type for: struct
"proto.h", line 150: warning: undefined or missing type for: int
"proto.h", line 153: warning: dubious tag declaration: struct chat_info
"proto.h", line 155: warning: dubious tag declaration: struct dcc_table
"proto.h", line 157: warning: dubious tag declaration: struct dcc_table
"proto.h", line 160: warning: function prototype parameters must have types
"proto.h", line 162: warning: function prototype parameters must have types
"proto.h", line 164: syntax error before or at: char
"proto.h", line 164: warning: undefined or missing type for: char
"proto.h", line 164: warning: undefined or missing type for: int
"proto.h", line 165: syntax error before or at: IP
"proto.h", line 165: warning: undefined or missing type for: IP
"proto.h", line 165: warning: undefined or missing type for: int
"proto.h", line 166: warning: function prototype parameters must have types
"proto.h", line 203: cannot have void object: putlog
"proto.h", line 203: syntax error before or at: EGG_VARARGS
"proto.h", line 203: syntax error before or at: arg1
"proto.h", line 203: warning: undefined or missing type for: arg1
"proto.h", line 203: warning: old-style declaration or incorrect type for: EGG_VARARGS
"proto.h", line 213: parameter redeclared: time_t
"proto.h", line 213: syntax error before or at: char
"proto.h", line 213: warning: undefined or missing type for: char
"proto.h", line 214: parameter redeclared: time_t
"proto.h", line 214: syntax error before or at: char
"proto.h", line 214: warning: undefined or missing type for: char
"proto.h", line 215: parameter redeclared: time_t
"proto.h", line 215: syntax error before or at: char
"proto.h", line 215: warning: undefined or missing type for: char
"proto.h", line 244: warning: old-style declaration or incorrect type for: IP
"proto.h", line 244: syntax error before or at: my_atoul
"proto.h", line 244: warning: old-style declaration or incorrect type for: my_atoul
"proto.h", line 245: warning: function prototype parameters must have types
"proto.h", line 246: warning: old-style declaration or incorrect type for: IP
"proto.h", line 246: syntax error before or at: getmyip
"proto.h", line 246: warning: old-style declaration or incorrect type for: getmyip
"proto.h", line 254: syntax error before or at: addr
"proto.h", line 254: warning: undefined or missing type for: addr
"proto.h", line 254: warning: undefined or missing type for: int
"proto.h", line 263: syntax error before or at: IP
"proto.h", line 263: warning: undefined or missing type for: IP
"proto.h", line 263: warning: undefined or missing type for: char
"proto.h", line 263: warning: undefined or missing type for: char
"proto.h", line 264: warning: function prototype parameters must have types
"proto.h", line 297: syntax error before or at: time_t
"proto.h", line 297: warning: undefined or missing type for: time_t
"proto.h", line 302: syntax error before or at: time_t
"proto.h", line 302: warning: undefined or missing type for: time_t
"eggdrop.h", line 273: identifier redeclared: IP
current : unsigned int
previous: int : "proto.h", line 244
"net.c", line 81: warning: identifier redeclared: my_atoul
current : function(pointer to char) returning unsigned int
previous: function(pointer to char) returning int : "proto.h", line 244
"net.c", line 121: warning: identifier redeclared: getmyip
current : function() returning unsigned int
previous: function() returning int : "proto.h", line 246
"net.c", line 295: function designator is not of function type
"net.c", line 297: cannot recover from previous errors
cc: acomp failed for net.c
*** Error code 2
make: Fatal error: Command failed for target `net.o'
Current working directory /home/k/l/klindste/eggdrop1.6.18/src
*** Error code 1
The following command caused the error:
cd src && make 'MAKE=make' 'CC=cc' 'LD=cc' 'STRIP=touch' 'RANLIB=ranlib' 'CFLGS=' 'TCLLIB=/opt/tcl/lib' 'TCLLIBFN=tcl.so' 'XREQS=/opt/tcl/lib/libtcl.so' 'XLIBS=-L/opt/tcl/lib -ltcl -lm -ldl -lnsl -lsocket' 'EGGEXEC=eggdrop' 'EGGBUILD=(standard build)' 'MODOBJS=' eggdrop
make: Fatal error: Command failed for target `modegg'
[8:45] koopa ~/eggdrop1.6.18 %
Post Reply