PDA

View Full Version : make on mac os x


riegersteve
26-03-2005, 22:39
Making all in src/zabbix_agent
gcc -o ../../bin/zabbix_agent -static -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:169: warning: `dopr' defined but not used
ld: can't locate file for: -lcrt0.o
*** Error code 1

Stop in /usr/local/src/zabbix-1.1alpha7/src/zabbix_agent.
*** Error code 1

Stop in /usr/local/src/zabbix-1.1alpha7.

using make gnumake or bsdmake all the same error.
./configure -with-mysql=/usr/local/mysql -with-net-snmp --enable-static
without snmp, mysql, and static, still the same errors.


any ideas

Alexei
27-03-2005, 14:46
Try to compile without --enable-static. Also, I fixed a couple of OS/X compilation issues recently, so I'd wait till 1.1alpha8. The 1.1alpha8 agent will support memory[free] and memory[total] (good news for OS/X users).

riegersteve
28-03-2005, 19:48
thanx, will wait, but as i said even without the enable-static, i still got that error.


also once i get it up and running on the new mac os x (tiger) server i will make it publicly avaliable if that is ok with you.

Alexei
28-03-2005, 20:07
I'm pretty sure the error has nothing to do with ZABBIX. It is something related to missing (?) libc files or something like this. Goggle gives lots of results about this error.