Ad Widget

Collapse

configure --enable-static on mac os x 10.4 (tiger)

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

    #1

    configure --enable-static on mac os x 10.4 (tiger)

    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
    Junior Member
    • Sep 2005
    • 25

    #2
    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

    Comment

    • edeus
      Senior Member
      • Aug 2005
      • 120

      #3
      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 )

      Comment

      • chaosloth
        Junior Member
        • Aug 2005
        • 6

        #4
        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



        Hope it helps

        Comment

        Working...