Hello all:
I am trying to roll RPMs for the 1.3.4 release as I have done for 1.3.2 and 1.3.3 to post here to the forums, but I am having a strange compile problem. Here is the configure line:
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
This works perfectly compiling from source for both 1.3.3 AND 1.3.4 on both Fedora Core 6 and CentOS 3.8. I have narrowed down the problem to the make line, rpmbuild fires the following standard make command (I am not sure I can change this):
make -j2 'CFLAGS= -pipe -m32 -march=i386 -mtune=pentium4'
This works fine for zabbix 1.3.3 and prior, but blows up for 1.3.4:
Interestingly enough, make -j2 works just fine on 1.3.4 (chop out the CFLAGS that rpmbuild uses) Any ideas? What could have changed in the source to cause this problem? As soon as I get this resolved I will release the RPMs for 1.3.4 for Fedora Core 6, CentOS 4.x and CentOS 3.x
/Christian
I am trying to roll RPMs for the 1.3.4 release as I have done for 1.3.2 and 1.3.3 to post here to the forums, but I am having a strange compile problem. Here is the configure line:
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
This works perfectly compiling from source for both 1.3.3 AND 1.3.4 on both Fedora Core 6 and CentOS 3.8. I have narrowed down the problem to the make line, rpmbuild fires the following standard make command (I am not sure I can change this):
make -j2 'CFLAGS= -pipe -m32 -march=i386 -mtune=pentium4'
This works fine for zabbix 1.3.3 and prior, but blows up for 1.3.4:
Code:
<...snip>
Making all in zbxdb
make[3]: Entering directory `/usr/src/redhat/BUILD/zabbix-1.3.4/src/libs/zbxdb'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -pipe -m32 -march=i386 -mtune=pentium4 -MT db.o -MD -MP -MF ".deps/db.Tpo" -c -o db.o db.c; \
then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:31:20: mysql.h: No such file or directory
../../../include/zbxdb.h:32:21: errmsg.h: No such file or directory
../../../include/zbxdb.h:33:27: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:118: error: syntax error before '*' token
../../../include/zbxdb.h:118: warning: data definition has no type or storage class
../../../include/zbxdb.h:119: error: syntax error before '*' token
../../../include/zbxdb.h:119: warning: data definition has no type or storage class
../../../include/zbxdb.h:120: error: syntax error before "zbx_db_fetch"
../../../include/zbxdb.h:120: error: syntax error before '*' token
../../../include/zbxdb.h:120: warning: data definition has no type or storage class
In file included from db.c:22:
../../../include/db.h:414: error: syntax error before '*' token
../../../include/db.h:414: warning: data definition has no type or storage class
../../../include/db.h:415: error: syntax error before '*' token
../../../include/db.h:415: warning: data definition has no type or storage class
../../../include/db.h:416: error: syntax error before "DBfetch"
../../../include/db.h:416: error: syntax error before '*' token
../../../include/db.h:416: warning: data definition has no type or storage class
../../../include/db.h:451: error: syntax error before "MYSQL_ROW"
db.c:34: error: syntax error before '*' token
db.c:34: warning: data definition has no type or storage class
db.c: In function `zbx_db_connect':
db.c:80: warning: assignment makes pointer from integer without a cast
db.c:112: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
db.c:112: error: (Each undeclared identifier is reported only once
db.c:112: error: for each function it appears in.)
db.c:113: error: `CR_CONNECTION_ERROR' undeclared (first use in this function)
db.c:114: error: `CR_SERVER_LOST' undeclared (first use in this function)
db.c:115: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function)
db.c:116: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function)
db.c: At top level:
db.c:198: error: syntax error before '*' token
db.c: In function `zbx_db_select':
db.c:201: error: `MYSQL_RES' undeclared (first use in this function)
db.c:201: error: `result' undeclared (first use in this function)
db.c: In function `zbx_db_vexecute':
db.c:363: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
db.c:364: error: `CR_CONNECTION_ERROR' undeclared (first use in this function)
db.c:365: error: `CR_SERVER_LOST' undeclared (first use in this function)
db.c:366: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function)
db.c:367: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function)
db.c: At top level:
db.c:495: error: syntax error before "zbx_db_fetch"
db.c:495: error: syntax error before '*' token
db.c: In function `zbx_db_fetch':
db.c:498: error: `result' undeclared (first use in this function)
db.c:498: warning: return makes integer from pointer without a cast
db.c:568: warning: return makes integer from pointer without a cast
db.c: At top level:
db.c:575: error: syntax error before '*' token
db.c: In function `zbx_db_vselect':
db.c:578: error: `MYSQL_RES' undeclared (first use in this function)
db.c:578: error: `result' undeclared (first use in this function)
db.c:611: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
db.c:612: error: `CR_CONNECTION_ERROR' undeclared (first use in this function)
db.c:613: error: `CR_SERVER_LOST' undeclared (first use in this function)
db.c:614: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function)
db.c:615: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function)
db.c:616: error: syntax error before ')' token
db.c:619: error: syntax error before ')' token
db.c: At top level:
db.c:765: error: syntax error before '*' token
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.3.4/src/libs/zbxdb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.3.4/src/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.3.4/src'
make: *** [all-recursive] Error 1
/Christian
I attached my spec file
Comment