| View previous topic :: View next topic |
| Author |
Message |
XceL Voice
Joined: 14 Jan 2004 Posts: 20
|
Posted: Wed Sep 14, 2005 10:20 pm Post subject: Help with compiling Eggy w/ MySQL.mod |
|
|
The shell provider claims that MySQL is installed on the machine, but when I tryi to compile, I get the following errors. any help appreciated, thanks.
| Code: |
[xcel@******** (~/eggdrop1.6.17)]$ gmake
gmake[1]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src'
This may take a while. Go get some runts.
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/md5'
gmake[2]: Nothing to be done for `md5'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/md5'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/compat'
gmake[2]: Nothing to be done for `compat'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/compat'
---------- 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
gmake[1]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src'
gmake[1]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/assoc.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/assoc.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/blowfish.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/blowfish.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/channels.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/channels.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/compress.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/compress.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/console.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/console.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/ctcp.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/ctcp.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/dns.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/dns.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/filesys.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/filesys.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/irc.mod'
gmake[2]: Nothing to be done for `modules'.
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/irc.mod'
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/mysql.mod'
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:1: warning: "list_delete" redefined
In file included from .././mysql.mod/mysql.c:24:
.././mysql.mod/mysql_mod.h:31:1: warning: this is the location of the previous definition
.././mysql.mod/mysql_mod.h:34:25: mysql/mysql.h: No such file or directory
.././mysql.mod/mysql.c:31: error: syntax error before '*' token
.././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: error: `MYSQL_RES' undeclared (first use in this function)
.././mysql.mod/mysql.c:200: error: (Each undeclared identifier is reported only once
.././mysql.mod/mysql.c:200: error: for each function it appears in.)
.././mysql.mod/mysql.c:200: error: `result' undeclared (first use in this function)
.././mysql.mod/mysql.c:202: error: syntax error before "row"
.././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: warning: implicit declaration of function `mysql_num_fields'
.././mysql.mod/mysql.c:224: error: `row' undeclared (first use in this function)
.././mysql.mod/mysql.c:224: warning: implicit declaration of function `mysql_fetch_row'
.././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_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'
gmake[2]: *** [../mysql.o] Error 1
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/mysql.mod'
gmake[1]: *** [mysql.mod_so] Error 2
gmake[1]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod'
gmake: *** [modules] Error 2
|
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Sep 14, 2005 10:36 pm Post subject: Re: Help with compiling Eggy w/ MySQL.mod |
|
|
| XceL wrote: | | The shell provider claims that MySQL is installed on the machine |
no it's not (at least not where mysql.mod is looking for it)
| Quote: |
.././mysql.mod/mysql_mod.h:34:25: mysql/mysql.h: No such file or directory |
see? |
|
| Back to top |
|
 |
XceL Voice
Joined: 14 Jan 2004 Posts: 20
|
Posted: Wed Sep 14, 2005 11:00 pm Post subject: |
|
|
Okay, well I changed the source of the include header, now I get this.
| Code: |
gmake[2]: Entering directory `/usr/home/xcel/eggdrop1.6.17/src/mod/mysql.mod'
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:1: warning: "list_delete" redefined
In file included from .././mysql.mod/mysql.c:24:
.././mysql.mod/mysql_mod.h:31:1: warning: this is the location of the previous definition
mv mysql.o ../
ld -Bshareable -x -o ../../../mysql.so ../mysql.o `mysql_config --libs`
ld: cannot find -lmysqlclient
gmake[2]: *** [../../../mysql.so] Error 1
gmake[2]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod/mysql.mod'
gmake[1]: *** [mysql.mod_so] Error 2
gmake[1]: Leaving directory `/usr/home/xcel/eggdrop1.6.17/src/mod'
gmake: *** [modules] Error 2
|
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Sep 14, 2005 11:18 pm Post subject: |
|
|
| your system lacks mySQL client libraries (or its mySQL installation is screwed); complain to your lame admin or install those yourself |
|
| Back to top |
|
 |
XceL Voice
Joined: 14 Jan 2004 Posts: 20
|
Posted: Wed Sep 14, 2005 11:35 pm Post subject: |
|
|
I got around it now but, i need help, it says it cant connect to my database, tell me if this code in the tcl looks right please.
| Code: |
loadmodule mysql
mysql_connect XceL mysql61.secureserver.net user pass
|
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 15, 2005 2:04 am Post subject: |
|
|
| post a log |
|
| Back to top |
|
 |
XceL Voice
Joined: 14 Jan 2004 Posts: 20
|
Posted: Thu Sep 15, 2005 2:59 am Post subject: |
|
|
I got it all figured out now. Thanks.  |
|
| Back to top |
|
 |
RyanH Voice
Joined: 06 Dec 2005 Posts: 4
|
Posted: Tue Dec 06, 2005 7:30 pm Post subject: |
|
|
| Mind stating how you got around it? I am receiving the same errors that you received the second time around. |
|
| Back to top |
|
 |
RyanH Voice
Joined: 06 Dec 2005 Posts: 4
|
Posted: Tue Dec 06, 2005 7:30 pm Post subject: |
|
|
| My apologies, my error is completely different. Sorry. |
|
| Back to top |
|
 |
|