Code: Select all
In file included from ../mysql.mod/mysql/mysql.h:62,
from ../mysql.mod/mysql.c:26:
../mysql.mod/mysql/my_list.h:32: error: parse error before "int"
make[2]: *** [../mysql.o] Error 1
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/mysql.mod'
make[1]: *** [mysql.mod_so] Error 2
make[1]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod'
make: *** [modules] Error 2
Code: Select all
vs245184:/usr/src/eggdrop1.6.16# make modules
make[1]: Entering directory `/usr/src/eggdrop1.6.16/src/mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/assoc.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/assoc.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/blowfish.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/blowfish.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/channels.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/channels.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/compress.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/compress.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/console.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/console.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/ctcp.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/ctcp.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/dns.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/dns.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/filesys.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/filesys.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/irc.mod'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/irc.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/mysql.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -I/usr/src/mysql/include -DMAKING_MODS -c .././mysql.mod/mysql.c
mv mysql.o ../
gcc -pipe -shared -nostartfiles -L/usr/src/mysql/lib/mysql -lmysqlclient -o ../. ./../mysql.so ../mysql.o
touch ../../../mysql.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/mysql.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/notes.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././notes.mod/notes.c
mv notes.o ../
gcc -pipe -shared -nostartfiles -o ../../../notes.so ../notes.o -L/usr/lib -ltcl 8.4 -lm -lpthread -ldl -lnsl
touch ../../../notes.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/notes.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/seen.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././seen.mod/seen.c
mv seen.o ../
gcc -pipe -shared -nostartfiles -o ../../../seen.so ../seen.o
touch ../../../seen.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/seen.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/server.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././server.mod/server.c
../server.mod/server.c: In function `next_server':
../server.mod/server.c:1047: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
../server.mod/server.c: At top level:
../server.mod/server.c:1341: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
../server.mod/server.c:1349: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
mv server.o ../
gcc -pipe -shared -nostartfiles -o ../../../server.so ../server.o -L/usr/lib -lt cl8.4 -lm -lpthread -ldl -lnsl
touch ../../../server.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/server.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/share.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././share.mod/share.c
mv share.o ../
gcc -pipe -shared -nostartfiles -o ../../../share.so ../share.o
touch ../../../share.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/share.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/transfer.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././transfer.mod/transfer.c
mv transfer.o ../
gcc -pipe -shared -nostartfiles -o ../../../transfer.so ../transfer.o -L/usr/lib -ltcl8.4 -lm -lpthread -ldl -lnsl
touch ../../../transfer.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/transfer.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/uptime.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././uptime.mod/uptime.c
mv uptime.o ../
gcc -pipe -shared -nostartfiles -o ../../../uptime.so ../uptime.o
touch ../../../uptime.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/uptime.mod'
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/wire.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././wire.mod/wire.c
mv wire.o ../
gcc -pipe -shared -nostartfiles -o ../../../wire.so ../wire.o
touch ../../../wire.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/wire.mod'
All modules compiled.
make[1]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod'
Test run of ./eggdrop -v:
/bin/sh: line 1: ./eggdrop: No such file or directory
make: *** [modules] Error 127
Code: Select all
[00:11] * Last context: mysql:mysql.c/119 []
[00:11] * Please REPORT this BUG!
[00:11] * Check doc/BUG-REPORT on how to do so.
[00:11] * Wrote DEBUG
[00:11] * SEGMENT VIOLATION -- CRASHING!
Code: Select all
...
Test run of ./eggdrop -v:
/bin/sh: line 1: ./eggdrop: No such file or directory
make: *** [modules] Error 127
Code: Select all
make[2]: Entering directory `/usr/src/eggdrop1.6.16/src/mod/server.mod'
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE _CONFIG_H -DMAKING_MODS -c .././server.mod/server.c
../server.mod/server.c: In function `next_server':
../server.mod/server.c:1047: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
../server.mod/server.c: At top level:
../server.mod/server.c:1341: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
../server.mod/server.c:1349: warning: dereferencing type-punned pointer will bre ak strict-aliasing rules
mv server.o ../
gcc -pipe -shared -nostartfiles -o ../../../server.so ../server.o -L/usr/lib -lt cl8.4 -lm -lpthread -ldl -lnsl
touch ../../../server.so
make[2]: Leaving directory `/usr/src/eggdrop1.6.16/src/mod/server.mod'
Code: Select all
[00:11] * Last context: mysql:mysql.c/119 []
[00:11] * Please REPORT this BUG!
[00:11] * Check doc/BUG-REPORT on how to do so.
[00:11] * Wrote DEBUG
[00:11] * SEGMENT VIOLATION -- CRASHING!
Code: Select all
proc allow_in_channel {current_channel} {
global scriptname db_handle
set sql_cmd "SELECT $scriptname FROM 'allow_in_channels'"
set result [mysqlquery $db_handle $sql_cmd]
while {[set row [mysqlnext $result]] != ""} {
#set allow_in_channel_id [lindex $row 0]
set allow_in_channel_script [lindex $row 1]
set allow_in_channel_channel [lindex $row 2]
if {$allow_in_channel_script == $scriptname} {
if {$allow_in_channel_channel == $current_channel} {
return $allow_in_channel_channel
}
}
}
}
Code: Select all
bind pub - !testin testin
proc testin {nick uhost hand chan arg} {
global scriptname
if {([allow_in_channel $chan] == $chan)} {
putchan $chan "Hallo"
}
}
Code: Select all
[16:26] Tcl error [testin]: mysqlquery/db server: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM 'allow_in_channels'' at line 1
Code: Select all
set sql_cmd "SELECT $scriptname FROM allow_in_channels"
Code: Select all
[18:37] Tcl error [testin]: mysqlquery/db server: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM allow_in_channels' at line 1