Hi,
I tried to build rpm files from your stable release of Zabbix 1.1.
The zabbix.spec file is not good enough to do that without modifications.
Could you care about the fact that a release should contain all stable files to build it from scratch ?
It is not the first time I have to do some work to enable a zabbix compilation for a stable release.
Right now, even if I have successfully modified your zabbix.spec, I have some difficulties to build the Zabbix 1.1 release under CentOS.
FYI : CentOS is the free version of RedHat Enterprise Linux series. I am using CentOS 3.7 (after upgrade) that should match a RHEL3.7 OS.
The error I have is the following one :
make[4]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server/trapper'
make[3]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server/trapper'
make[3]: Entering directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
gcc -g -O2 -lresolv -o zabbix_server -L/usr/lib/mysql -L/usr/lib ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxsms/libzbxsms.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a /usr/lib/libresolv.a -lmysqlclient -lm -lz -lnetsnmp -lcrypto
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.93994 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93994 (%build)
Could you help me ? I really need the Zabbix 1.1 release to implement monitoring in my enterprise.
I followed this post to correct the few first bugs :
Thank you a lot.
I tried to build rpm files from your stable release of Zabbix 1.1.
The zabbix.spec file is not good enough to do that without modifications.
Could you care about the fact that a release should contain all stable files to build it from scratch ?
It is not the first time I have to do some work to enable a zabbix compilation for a stable release.
Right now, even if I have successfully modified your zabbix.spec, I have some difficulties to build the Zabbix 1.1 release under CentOS.
FYI : CentOS is the free version of RedHat Enterprise Linux series. I am using CentOS 3.7 (after upgrade) that should match a RHEL3.7 OS.
The error I have is the following one :
make[4]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server/trapper'
make[3]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server/trapper'
make[3]: Entering directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
gcc -g -O2 -lresolv -o zabbix_server -L/usr/lib/mysql -L/usr/lib ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxsms/libzbxsms.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a /usr/lib/libresolv.a -lmysqlclient -lm -lz -lnetsnmp -lcrypto
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/zabbix-1.1/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.93994 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93994 (%build)
Could you help me ? I really need the Zabbix 1.1 release to implement monitoring in my enterprise.
I followed this post to correct the few first bugs :
Thank you a lot.
Comment