egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mysql.mod 0.6 and eggdrop1.6.18

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
eviltone
Voice


Joined: 27 Oct 2006
Posts: 3

PostPosted: Fri Oct 27, 2006 3:52 pm    Post subject: mysql.mod 0.6 and eggdrop1.6.18 Reply with quote

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:
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:

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Oct 27, 2006 8:01 pm    Post subject: Reply with quote

../mysql.mod/mysql_mod.h:34: mysql.h: No such file or directory
Back to top
View user's profile Send private message
eviltone
Voice


Joined: 27 Oct 2006
Posts: 3

PostPosted: Sat Oct 28, 2006 9:06 am    Post subject: Reply with quote

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

Code:

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Oct 28, 2006 8:07 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Oct 28, 2006 8:25 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
eviltone
Voice


Joined: 27 Oct 2006
Posts: 3

PostPosted: Mon Oct 30, 2006 3:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber