Subject: c-ares 1.5.2 build failure under Mac OS X

c-ares 1.5.2 build failure under Mac OS X

From: Marius Schamschula <mschamschula_at_gmail.com>
Date: Fri, 30 May 2008 08:07:28 -0500

Hi all,

I tried building c-ares 1.5.2 under Mac OS X (all versions
10.3.9-10.5.3 - PPC/Intel) and got the same error:

gcc -g -O2 -o ahost ahost.o ares_getopt.o ./.libs/libcares.a
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT adig.o -MD -MP -MF
".deps/adig.Tpo" -c -o adig.o adig.c; \
then mv -f ".deps/adig.Tpo" ".deps/adig.Po"; else rm -f ".deps/
adig.Tpo"; exit 1; fi
adig.c:75: error: 'C_IN' undeclared here (not in a function)
adig.c:76: error: 'C_CHAOS' undeclared here (not in a function)
adig.c:77: error: 'C_HS' undeclared here (not in a function)
adig.c:78: error: 'C_ANY' undeclared here (not in a function)
adig.c:83: error: 'T_A' undeclared here (not in a function)
adig.c:84: error: 'T_NS' undeclared here (not in a function)
adig.c:85: error: 'T_MD' undeclared here (not in a function)
adig.c:86: error: 'T_MF' undeclared here (not in a function)
adig.c:87: error: 'T_CNAME' undeclared here (not in a function)
adig.c:88: error: 'T_SOA' undeclared here (not in a function)
adig.c:89: error: 'T_MB' undeclared here (not in a function)
adig.c:90: error: 'T_MG' undeclared here (not in a function)
adig.c:91: error: 'T_MR' undeclared here (not in a function)
adig.c:92: error: 'T_NULL' undeclared here (not in a function)
adig.c:93: error: 'T_WKS' undeclared here (not in a function)
adig.c:94: error: 'T_PTR' undeclared here (not in a function)
adig.c:95: error: 'T_HINFO' undeclared here (not in a function)
adig.c:96: error: 'T_MINFO' undeclared here (not in a function)
adig.c:97: error: 'T_MX' undeclared here (not in a function)
adig.c:98: error: 'T_TXT' undeclared here (not in a function)
adig.c:99: error: 'T_RP' undeclared here (not in a function)
adig.c:100: error: 'T_AFSDB' undeclared here (not in a function)
adig.c:101: error: 'T_X25' undeclared here (not in a function)
adig.c:102: error: 'T_ISDN' undeclared here (not in a function)
adig.c:103: error: 'T_RT' undeclared here (not in a function)
adig.c:104: error: 'T_NSAP' undeclared here (not in a function)
adig.c:105: error: 'T_NSAP_PTR' undeclared here (not in a function)
adig.c:106: error: 'T_SIG' undeclared here (not in a function)
adig.c:107: error: 'T_KEY' undeclared here (not in a function)
adig.c:108: error: 'T_PX' undeclared here (not in a function)
adig.c:109: error: 'T_GPOS' undeclared here (not in a function)
adig.c:110: error: 'T_AAAA' undeclared here (not in a function)
adig.c:111: error: 'T_LOC' undeclared here (not in a function)
adig.c:113: error: 'T_AXFR' undeclared here (not in a function)
adig.c:114: error: 'T_MAILB' undeclared here (not in a function)
adig.c:115: error: 'T_MAILA' undeclared here (not in a function)
adig.c:116: error: 'T_NAPTR' undeclared here (not in a function)
adig.c:117: error: 'T_ANY' undeclared here (not in a function)
adig.c: In function 'callback':
adig.c:327: error: 'HFIXEDSZ' undeclared (first use in this function)
adig.c:327: error: (Each undeclared identifier is reported only once
adig.c:327: error: for each function it appears in.)
adig.c:327: warning: comparison between pointer and integer
adig.c:357: error: invalid operands to binary +
adig.c: In function 'display_question':
adig.c:410: error: 'QFIXEDSZ' undeclared (first use in this function)
adig.c:410: error: invalid operands to binary +
adig.c:410: warning: comparison of distinct pointer types lacks a cast
adig.c:425: warning: comparison between pointer and integer
adig.c: In function 'display_rr':
adig.c:450: error: 'RRFIXEDSZ' undeclared (first use in this function)
adig.c:450: error: invalid operands to binary +
adig.c:450: warning: comparison of distinct pointer types lacks a cast
adig.c:471: warning: comparison between pointer and integer
adig.c:479: warning: case label value exceeds maximum value for type
adig.c:480: warning: case label value exceeds maximum value for type
adig.c:481: warning: case label value exceeds maximum value for type
adig.c:482: warning: case label value exceeds maximum value for type
adig.c:483: warning: case label value exceeds maximum value for type
adig.c:484: warning: case label value exceeds maximum value for type
adig.c:485: warning: case label value exceeds maximum value for type
adig.c:486: warning: case label value exceeds maximum value for type
adig.c:495: warning: case label value exceeds maximum value for type
adig.c:509: warning: case label value exceeds maximum value for type
adig.c:525: warning: case label value exceeds maximum value for type
adig.c:539: warning: case label value exceeds maximum value for type
adig.c:564: warning: case label value exceeds maximum value for type
adig.c:578: warning: case label value exceeds maximum value for type
adig.c:585: warning: case label value exceeds maximum value for type
adig.c:592: warning: case label value exceeds maximum value for type
adig.c:612: warning: case label value exceeds maximum value for type
make[1]: *** [adig.o] Error 1
make: *** [all] Error 2

The last version I had built was 1.4.0, so I can't tell when the
problem first came in.

Any ideas?

Marius

--
Marius Schamschula
Webmaster
The Huntsville Macintosh Users Group
www.hmug.org
webmaster at hmug dot org
marius at schamschula dot com
Received on 2008-05-30