PDA

View Full Version : configure --enable-static on mac os x 10.4 (tiger)


riegersteve
14-07-2005, 13:54
configure --enable-static ran fine
make returns this

tiger002:/usr/local/src/zabbix-1.1alpha10 root# make
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
sysinfo.c: In function 'MD5SUM':
sysinfo.c:588: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
sysinfo.c:590: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness
sysinfo.c: In function 'FREEMEM':
sysinfo.c:1983: warning: implicit declaration of function 'mach_host_self'
../../include/snprintf.c:169: warning: 'dopr' defined but not used
/usr/bin/ld: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make: *** [all] Error 1

peter_milburn
02-10-2005, 08:24
I have what I think is a similar issue with tiger 10.4.2

I am trying to just compile the angent

./configure --prefix=/usr/local/zabbix --enable-agent

sysinfo.c: In function 'VFS_FILE_MD5SUM':
sysinfo.c:654: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
sysinfo.c:656: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness
sysinfo.c: In function 'CHECK_DNS':
sysinfo.c:1952: error: 'PACKETSZ' undeclared (first use in this function)
sysinfo.c:1952: error: (Each undeclared identifier is reported only once
sysinfo.c:1952: error: for each function it appears in.)
make[4]: *** [sysinfo.o] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1



Pete M

edeus
04-10-2005, 01:14
Can anyone confirm that this is an actively supported feature?

I havent been able to have static in beta1 whereas alpha12 was OK (to the best of my knowledge). But I am on freebsd 5.4 (which kinda is the same as osx :))

chaosloth
04-10-2005, 05:28
Not sure if this is the same as what I came across when attempting to build on 10.3.9 But if it is ... check out the following post.

You need to modify sysinfo.c to use NS_PACKETSZ instead of PACKETSZ

http://www.zabbix.com/forum/showthread.php?t=1399

Hope it helps