PDA

View Full Version : Compile errors with alpha on FBSD 4.11


racoon
07-06-2005, 16:06
Hi,

i just tried to compile the current 1.1alpha10 with the following errors:

gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall
../../include/snprintf.c: In function `dopr':
../../include/snprintf.c:182: warning: implicit declaration of function `__va_copy'
../../include/snprintf.c:180: warning: `args' might be used uninitialized in this function
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
/tmp/cc6N0Iea.o: In function `dopr':
/usr/local/www/zabbix-1.1alpha10/src/zabbix_agent/../../include/snprintf.c:184: undefined reference to `__va_copy'
*** Error code 1

This happens since i first tried an alpha version with 1.1alpha7. The system is a FreeBSD 4.11-RELEASE-p9, which provides gcc-2.95.4 and GNU make 3.80.
The configure script went fine.


Any hints on that?

Regards,
Frank

welshpjw
07-06-2005, 16:12
check out the suggestion for Solaris/HPUX at:

http://www.zabbix.com/forum/showthread.php?p=2818#post2818

Post back if that works, please.

racoon
07-06-2005, 16:42
Sorry, doesn't seem to work - added

LIBS = -I/usr/local/include -L/usr/local/lib -llber

to src/zabbix_agent/Makefile and src/zabbix_server/Makefile but with no change in error.

Alexei
07-06-2005, 16:52
Please, try to get and compile the latest snprintf.c from CVS.

welshpjw
07-06-2005, 16:54
Sorry, doesn't seem to work - added

LIBS = -I/usr/local/include -L/usr/local/lib -llber

to src/zabbix_agent/Makefile and src/zabbix_server/Makefile but with no change in error.

I was thinking more about the section that eliminates lines in the snprintf.c

racoon
07-06-2005, 17:11
welshpjw: Sorry, seems i missed the point - sorry :-)
Alexei: the patched snprintf.c seems to work here.

Thx, now i'm gonna try if it's running here, too :)


Frank