Ad Widget

Collapse

Error compiling zabbix_agent on OS X 10.4.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tobiasbp
    Junior Member
    • Feb 2006
    • 7

    #1

    Error compiling zabbix_agent on OS X 10.4.3

    Hi...

    I'm trying to compile the zabbix-1.1beta6 release of the zabbix_agent on my OS X 10.4.3 system. I have installed the Apples Xcode development tools (Includes gcc).

    Edit:
    Also tried unsucessfully compiling on a 10.3.x system.

    In the zabbix-1.1beta6 directory I run the command:
    ./configure --enable-agent --enable-static

    This results in:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Configuration:

    Detected OS: darwin8.3.0
    Install path: /usr/local
    Compiler: gcc
    Compiler flags: -static -g -O2
    Linker flags:
    Compilation arch: osx

    Enable server: no
    With database: no

    Enable agent: yes

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Then i run:
    make

    This results in:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Making all in src
    Making all in libs
    Making all in zbxcommon
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxlog
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxcrypto
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxpid
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxnet
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxconf
    make[4]: Nothing to be done for `all-am'.
    Making all in zbxsysinfo
    Making all in osx
    make[5]: Nothing to be done for `all-am'.
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -static -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o `test -f 'common/common.c' || echo './'`common/common.c; \
    then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
    common/common.c: In function 'CHECK_DNS':
    common/common.c:1800: error: 'PACKETSZ' undeclared (first use in this function)
    common/common.c:1800: error: (Each undeclared identifier is reported only once
    common/common.c:1800: error: for each function it appears in.)
    make[4]: *** [common.o] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



    Any ideas?
    Last edited by tobiasbp; 23-02-2006, 14:10. Reason: Tried compiling on other system.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • tobiasbp
      Junior Member
      • Feb 2006
      • 7

      #3
      Thanks!

      Looks great! I'll give it a try tomorrow....

      Comment

      • tobiasbp
        Junior Member
        • Feb 2006
        • 7

        #4
        Could not get this to work...

        Hi...

        I could not get zabbix to compile on 10.4.x or 10.3.x after having followed the instructions in the post linked above.

        If someone has a compiled 1.1x zabbix_agent for OSX I would love to get a copy.

        Thanks

        Comment

        Working...