Ad Widget

Collapse

Build error on Snow Leopard (Mac OS 10.6.1)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #1

    Build error on Snow Leopard (Mac OS 10.6.1)

    I'm trying to compile 1.7.1 on my OS X 10.6.1 Server (server, not running the client as a server).

    net.c: In function 'CHECK_DNS_QUERY':
    net.c:362: error: 'T_ANY' undeclared (first use in this function)
    net.c:362: error: (Each undeclared identifier is reported only once
    net.c:362: error: for each function it appears in.)
    net.c:383: error: expected specifier-qualifier-list before 'HEADER'
    net.c:441: error: 'answer_t' has no member named 'buffer'
    net.c:441: error: 'answer_t' has no member named 'buffer'
    net.c:441: warning: passing argument 4 of 'res_9_query' from incompatible pointer type
    net.c:441: warning: passing argument 5 of 'res_9_query' makes integer from pointer without a cast
    net.c:447: error: 'answer_t' has no member named 'buffer'
    net.c:447: warning: assignment from incompatible pointer type
    net.c:449: error: 'answer_t' has no member named 'h'
    net.c:449: error: request for member 'ancount' in something not a structure or union
    net.c:449: error: 'answer_t' has no member named 'h'
    net.c:449: error: request for member 'ancount' in something not a structure or union
    net.c:449: warning: cast from pointer to integer of different size
    net.c:449: error: 'answer_t' has no member named 'h'
    net.c:449: error: request for member 'ancount' in something not a structure or union
    net.c:449: warning: cast from pointer to integer of different size
    net.c:449: error: 'answer_t' has no member named 'h'
    net.c:449: error: request for member 'ancount' in something not a structure or union
    net.c:449: warning: passing argument 1 of '_OSSwapInt16' makes integer from pointer without a cast
    net.c:450: error: 'answer_t' has no member named 'h'
    net.c:450: error: request for member 'qdcount' in something not a structure or union
    net.c:450: error: 'answer_t' has no member named 'h'
    net.c:450: error: request for member 'qdcount' in something not a structure or union
    net.c:450: warning: cast from pointer to integer of different size
    net.c:450: error: 'answer_t' has no member named 'h'
    net.c:450: error: request for member 'qdcount' in something not a structure or union
    net.c:450: warning: cast from pointer to integer of different size
    net.c:450: error: 'answer_t' has no member named 'h'
    net.c:450: error: request for member 'qdcount' in something not a structure or union
    net.c:450: warning: passing argument 1 of '_OSSwapInt16' makes integer from pointer without a cast
    net.c:452: error: 'answer_t' has no member named 'buffer'
    net.c:452: error: 'HFIXEDSZ' undeclared (first use in this function)
    net.c:452: error: invalid operands to binary + (have 'struct resolv_querytype_t *' and 'struct resolv_querytype_t *')
    net.c:452: warning: assignment from incompatible pointer type
    net.c:457: error: 'QFIXEDSZ' undeclared (first use in this function)
    net.c:457: error: invalid operands to binary + (have 'unsigned char *' and 'struct resolv_querytype_t *')
    net.c:457: error: invalid use of non-lvalue array
    net.c:461: error: 'answer_t' has no member named 'buffer'
    net.c:461: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:475: error: 'C_HS' undeclared (first use in this function)
    net.c:476: error: 'INADDRSZ' undeclared (first use in this function)
    net.c:476: warning: passing argument 3 of 'bcopy' makes integer from pointer without a cast
    net.c:490: error: 'answer_t' has no member named 'buffer'
    net.c:490: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:500: error: 'answer_t' has no member named 'buffer'
    net.c:500: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:507: error: 'answer_t' has no member named 'buffer'
    net.c:507: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:511: error: 'answer_t' has no member named 'buffer'
    net.c:511: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:535: error: 'INT32SZ' undeclared (first use in this function)
    net.c:535: warning: comparison between pointer and integer
    net.c:540: warning: passing argument 3 of 'bcopy' makes integer from pointer without a cast
    net.c:541: error: invalid operands to binary + (have 'unsigned char *' and 'struct resolv_querytype_t *')
    net.c:541: error: invalid use of non-lvalue array
    net.c:592: error: 'answer_t' has no member named 'buffer'
    net.c:592: warning: passing argument 1 of 'get_name' from incompatible pointer type
    net.c:596: error: 'answer_t' has no member named 'buffer'
    net.c:596: warning: passing argument 1 of 'get_name' from incompatible pointer type
    make[4]: *** [net.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    mv -f .deps/system.Tpo .deps/system.Po
    mv -f .deps/common.Tpo .deps/common.Po
    mv -f .deps/http.Tpo .deps/http.Po
    mv -f .deps/file.Tpo .deps/file.Po
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1


    I've gone through the forums, old and new entries and can't find a solution. I know there were issues with the default resolv.h in 10.5 where you needed to use the resolv8_compat.h. The problem with 10.6 is that there is no resolv8_compat.h any more.

    Just a curiosity because we're looking at a potentially huge deployment and want to use an existing Mac OS X server as the host.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Registered as ZBX-1231. Thank you.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      This build error is still present in 1.7.2

      Comment

      Working...