Ad Widget

Collapse

zabbix on mac

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riegersteve
    Member
    • Oct 2004
    • 68

    #1

    zabbix on mac

    Hi all, i have zabbix runing on all unix (linux too) platforms, now am trying to get it going on mac os x, i get the following error, any pointers would be appreciated


    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 -Wall
    sysinfo.c: In function `KERNEL_MAXFILES':
    sysinfo.c:1644: warning: passing arg 4 of `sysctl' from incompatible pointer type
    sysinfo.c: In function `KERNEL_MAXPROC':
    sysinfo.c:1666: warning: passing arg 4 of `sysctl' from incompatible pointer type
    sysinfo.c: In function `UPTIME':
    sysinfo.c:1702: warning: passing arg 4 of `sysctl' from incompatible pointer type
    ld: can't locate file for: -lcrt0.o
    make[1]: *** [all] Error 1
    make: *** [all] Error 1


    uptime lives in /usr/bin/uptime etc....
  • michu
    Junior Member
    • Nov 2004
    • 20

    #2
    >ld: can't locate file for: -lcrt0.o

    you miss the crt0.o lib file...

    perhaps this helps:

    >The error went away when I reverted to binutils-2.5.2-3 from
    >binutils-2.5.2l.20-2.

    cheers michu

    Comment

    Working...