Hello,
I am trying to compile zabbix 1.4 on hp-ux 11i with gcc 4.2.0
net-snmp is installed and working
mysql is installed and working
First, I had to replace all references to sysinfo.h for unistd.h in the configure script or it would complain and fail compiling zbxcrypto
Configure used : ./configure --prefix=/opt/zabbix --enable-server --with-net-snmp --with-mysql
Once modified for unistd.h, the configure script stoped complaining and all modules compiled up to zbxdb
When I run the make install, it starts compiling then fails at "Making install in zbxdb" with the following ouput :
I'm pretty sure it has something to do with the headers but I really don't know what I could try to fix it.
Any C / HP-UX guru who could give me some lead ?
Regards
snerge
I am trying to compile zabbix 1.4 on hp-ux 11i with gcc 4.2.0
net-snmp is installed and working
mysql is installed and working
First, I had to replace all references to sysinfo.h for unistd.h in the configure script or it would complain and fail compiling zbxcrypto
Code:
checking sys/sysinfo.h presence... yes configure: WARNING: sys/sysinfo.h: present but cannot be compiled configure: WARNING: sys/sysinfo.h: check for missing prerequisite headers? configure: WARNING: sys/sysinfo.h: see the Autoconf documentation configure: WARNING: sys/sysinfo.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's result configure: WARNING: sys/sysinfo.h: in the future, the compiler will take precedence
Once modified for unistd.h, the configure script stoped complaining and all modules compiled up to zbxdb
When I run the make install, it starts compiling then fails at "Making install in zbxdb" with the following ouput :
Code:
db.c: In function 'zbx_db_vexecute': db.c:337: error: 'suseconds_t' undeclared (first use in this function) db.c:337: error: (Each undeclared identifier is reported only once db.c:337: error: for each function it appears in.) db.c:337: error: expected ';' before 'msec' db.c:348: error: 'msec' undeclared (first use in this function) db.c: In function 'zbx_db_vselect': db.c:587: error: 'suseconds_t' undeclared (first use in this function) db.c:587: error: expected ';' before 'msec' db.c:598: error: 'msec' undeclared (first use in this function) *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop.
Any C / HP-UX guru who could give me some lead ?
Regards
snerge
Comment