Ad Widget

Collapse

1.4.3 and 1.5 (4931) will not build

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bimonitor
    Junior Member
    • Oct 2007
    • 13

    #1

    1.4.3 and 1.5 (4931) will not build

    This is a recurring theme. Both v1.4.3 and 1.5 (4870 & 4931) on OSX 10.4.10
    -----
    operations.c: In function 'add_discovered_host':
    operations.c:464: error: 'MAXDNAME' undeclared (first use in this function)
    operations.c:464: error: (Each undeclared identifier is reported only once
    operations.c:464: error: for each function it appears in.)
    make[3]: *** [zabbix_server-operations.o] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    -----
    I could declare MAXDNAME as a char, but that could just cause more problems. Any suggestions?
  • bimonitor
    Junior Member
    • Oct 2007
    • 13

    #2
    still will not build

    I get this when I disable the guts of auto_discover
    -----
    /usr/bin/ld: Undefined symbols:
    _res_9_init
    _res_9_query
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    -----

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Please replace it with MAX_STRING_LEN for now. It will be fixed.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • bimonitor
        Junior Member
        • Oct 2007
        • 13

        #4
        still no build (4973)

        I am sure this is a common problem since I get it with every developer build. When I do the make, I get:
        -----
        /usr/bin/ld: Undefined symbols:
        _res_9_init
        _res_9_query
        collect2: ld returned 1 exit status
        make[3]: *** [zabbix_server] Error 1
        make[2]: *** [all-recursive] Error 1
        make[1]: *** [all-recursive] Error 1
        make: *** [all-recursive] Error 1
        -----
        This is after a straight "./configre --enable-server --with-mysql".

        Comment

        • rabbitt
          Junior Member
          • Jul 2008
          • 5

          #5
          solution

          I had the same problems building on 10.5.1, and fixed them as follows:

          in /zabbix-1.4.5/include/ :
          in common.h add the following line
          #define MAXDNAME 2048
          after #define ZABBIX_COMMON_H

          in sysinc.h
          replace
          #include <resolv.h>
          with
          #include <resolv8_compat.h>

          YMMV, but this worked for me.

          Comment

          • ryanknapper
            Junior Member
            • Mar 2005
            • 13

            #6
            Originally posted by rabbitt
            I had the same problems building on 10.5.1, and fixed them as follows:
            <hug>

            That's all I have to say about that.

            Comment

            Working...