PDA

View Full Version : Compile error


edeus
09-12-2005, 00:07
Hello,

I am trying to upgrade to beta3 but have his this wall (probably because I am using MySQL 5)

Making all in zbxdbhigh
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/local/include/mysql -g -O2 -MT action.o -MD -MP -MF ".deps/action.Tpo" -c -o action.o action.c; then mv -f ".deps/action.Tpo" ".deps/action.Po"; else rm -f ".deps/action.Tpo"; exit 1; fi
In file included from /usr/local/include/mysql/mysql.h:62,
from ../../../include/db.h:31,
from action.c:27:
/usr/local/include/mysql/my_list.h:27: warning: useless keyword or type name in empty declaration
/usr/local/include/mysql/my_list.h:27: error: two types specified in one empty declaration
*** Error code 1

Any ideas?

mysql 5.0.15, php 5.05, freebsd 6.0-stable.

raa
09-12-2005, 02:59
I am trying to upgrade to beta3 but have his this wall (probably because I am using MySQL 5)

I use mysql 4.0.24 and get the same errors on debian stable.

pdwalker
09-12-2005, 11:49
see here:

http://www.zabbix.com/forum/showpost.php?p=6126&postcount=5

rushowr
10-12-2005, 14:20
Hello again...

I'm trying to compile the latest beta for 1.1 and getting the same issue the original poster of this thread was...

I tried to rename LIST to ZBX_LIST, but I don't know where/what LIST text to change.... I don't want to do a replace all, and going one by one is taking HOURS (using slow machine for compiling/testing)....

The errors range from the original (keyword issue) to the new:
common/common.c:186: error: syntax error before '*' token
common/common.c: In function `free_list':
common/common.c:187: error: number of arguments doesn't match prototype
../../../include/common.h:325: error: prototype declaration
common/common.c: At top level:
common/common.c:191: error: syntax error before '*' token
common/common.c: In function `copy_list':
common/common.c:192: error: number of arguments doesn't match prototype
../../../include/common.h:324: error: prototype declaration

Can someone please just post a patch file? Or maybe update the CVS on sourceforge? I tried pulling the latest, but still no luck...

CentOS 4.2, MySQL 4.1.12

pdwalker
10-12-2005, 17:30
http://www.zabbix.com/forum/showthread.php?t=1761

6th post down lists the two files.

There are multiple instances of LIST in common.c that need to be replaced.

search for them by hand, they are easy to recognize.

if the compile fails, you missed an instance. the error message will tell you where you missed it.

- Paul

rushowr
10-12-2005, 21:19
Thanks mate. I'll go back over it now.

Sorry to have missed it, I'm usually a little better about that

pdwalker
12-12-2005, 12:04
definately fixed in 1.1b4.

edeus
12-12-2005, 22:54
Yes, working normally now.

thanks!