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.

mysql.mod 0.6 and eggdrop1.6.18

Discussion of Eggdrop's code and module programming in C.
Post Reply
e
eviltone
Voice
Posts: 3
Joined: Fri Oct 27, 2006 3:40 pm

mysql.mod 0.6 and eggdrop1.6.18

Post by eviltone »

i cannot get the bot to compile with the mysql module. this is on to a shell account. output from bots .status for tcl etc

Code: Select all

OS: FreeBSD 4.11-RELEASE-p25
Tcl library: /usr/local/lib/tcl8.4
Tcl version: 8.4.7 (header version 8.4.7)
the output from make command

Code: Select all

T@th eggdrop1.6.18 $ make
This may take a while. Go get some runts.


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

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/lib -ltcl84 -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop

Successful compile: eggdrop

gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../..  -I../../../src/mod -DHAVE_CONFIG_H   `mysql_config --cflags` -DMAKING_MODS -c .././mysql.mod/mysql.c
In file included from ../mysql.mod/mysql_mod.h:32,
                 from .././mysql.mod/mysql.c:24:
../../../src/mod/module.h:190: warning: `list_delete' redefined
../mysql.mod/mysql_mod.h:31: warning: this is the location of the previous definition
In file included from .././mysql.mod/mysql.c:24:
../mysql.mod/mysql_mod.h:34: mysql.h: No such file or directory
.././mysql.mod/mysql.c:31: syntax error before `*'
.././mysql.mod/mysql.c:31: warning: type defaults to `int' in declaration of `dbc'
.././mysql.mod/mysql.c:31: warning: data definition has no type or storage class
.././mysql.mod/mysql.c: In function `tcl_mysql_connect':
.././mysql.mod/mysql.c:152: warning: implicit declaration of function `mysql_init'
.././mysql.mod/mysql.c:152: warning: assignment makes pointer from integer without a cast
.././mysql.mod/mysql.c:166: warning: implicit declaration of function `mysql_real_connect'
.././mysql.mod/mysql.c:171: warning: implicit declaration of function `mysql_error'
.././mysql.mod/mysql.c:171: warning: passing arg 2 of `Tcl_AppendToObj' makes pointer from integer without a cast
.././mysql.mod/mysql.c: In function `tcl_mysql_query':
.././mysql.mod/mysql.c:200: `MYSQL_RES' undeclared (first use in this function)
.././mysql.mod/mysql.c:200: (Each undeclared identifier is reported only once
.././mysql.mod/mysql.c:200: for each function it appears in.)
.././mysql.mod/mysql.c:200: `result' undeclared (first use in this function)
.././mysql.mod/mysql.c:200: warning: statement with no effect
.././mysql.mod/mysql.c:201: syntax error before `unsigned'
.././mysql.mod/mysql.c:209: warning: implicit declaration of function `mysql_query'
.././mysql.mod/mysql.c:212: warning: passing arg 2 of `Tcl_AppendToObj' makes pointer from integer without a cast
.././mysql.mod/mysql.c:218: warning: implicit declaration of function `mysql_store_result'
.././mysql.mod/mysql.c:220: `fields' undeclared (first use in this function)
.././mysql.mod/mysql.c:220: warning: implicit declaration of function `mysql_num_fields'
.././mysql.mod/mysql.c:224: `row' undeclared (first use in this function)
.././mysql.mod/mysql.c:224: warning: implicit declaration of function `mysql_fetch_row'
.././mysql.mod/mysql.c:227: `x' undeclared (first use in this function)
.././mysql.mod/mysql.c:233: warning: implicit declaration of function `mysql_free_result'
.././mysql.mod/mysql.c: In function `tcl_mysql_escape':
.././mysql.mod/mysql.c:267: warning: implicit declaration of function `mysql_real_escape_string'
.././mysql.mod/mysql.c:268: warning: implicit declaration of function `mysql_escape_string'
.././mysql.mod/mysql.c: In function `tcl_mysql_errno':
.././mysql.mod/mysql.c:283: warning: implicit declaration of function `mysql_errno'
.././mysql.mod/mysql.c: In function `tcl_mysql_ping':
.././mysql.mod/mysql.c:295: warning: implicit declaration of function `mysql_ping'
.././mysql.mod/mysql.c: In function `tcl_mysql_connectioninfo':
.././mysql.mod/mysql.c:306: syntax error before `*'
.././mysql.mod/mysql.c:308: `objs' undeclared (first use in this function)
.././mysql.mod/mysql.c:316: `count' undeclared (first use in this function)
.././mysql.mod/mysql.c: In function `tcl_mysql_insert_id':
.././mysql.mod/mysql.c:332: warning: implicit declaration of function `mysql_insert_id'
.././mysql.mod/mysql.c: In function `tcl_mysql_affected_rows':
.././mysql.mod/mysql.c:354: warning: implicit declaration of function `mysql_affected_rows'
.././mysql.mod/mysql.c: In function `closedb':
.././mysql.mod/mysql.c:362: warning: implicit declaration of function `mysql_close'
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18/src/mod/mysql.mod.
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18/src/mod.
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18.
thanks in advance -eT
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

../mysql.mod/mysql_mod.h:34: mysql.h: No such file or directory
e
eviltone
Voice
Posts: 3
Joined: Fri Oct 27, 2006 3:40 pm

Post by eviltone »

set the full path to mysql.h in mysql_mod.h, now i get this

Code: Select all

Successful compile: eggdrop

gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../..  -I../../../src/mod -DHAVE_CONFIG_H   `mysql_config --cflags` -DMAKING_MODS -c .././mysql.mod/mysql.c
In file included from ../mysql.mod/mysql_mod.h:32,
                 from .././mysql.mod/mysql.c:24:
../../../src/mod/module.h:190: warning: `list_delete' redefined
../mysql.mod/mysql_mod.h:31: warning: this is the location of the previous definition
.././mysql.mod/mysql.c: In function `tcl_mysql_connectioninfo':
.././mysql.mod/mysql.c:306: syntax error before `*'
.././mysql.mod/mysql.c:308: `objs' undeclared (first use in this function)
.././mysql.mod/mysql.c:308: (Each undeclared identifier is reported only once
.././mysql.mod/mysql.c:308: for each function it appears in.)
.././mysql.mod/mysql.c:316: `count' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18/src/mod/mysql.mod.
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18/src/mod.
*** Error code 1

Stop in /usr/home/T/eggdrop1.6.18.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

By any chance does that shell account actually have MySQL installed?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

There's still a header file not being found, although the snip of output does not show it, it's probably occurring earlier in the compile.. Try doing

make > make.log 2>&1

And then looking through that make.log for the missing files/libs.
e
eviltone
Voice
Posts: 3
Joined: Fri Oct 27, 2006 3:40 pm

Post by eviltone »

moved to another server and it compiled fine, must be as above.
the forums on barkerjr's site are full of mysql.mod compile errors

http://barkerjr.net/phpBB2/index.php
Post Reply