Making install in . make[1]: Entering directory `/root/Desktop/libdnsres-0.1a' /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -Wall -O0 -g -DRESOLVSORT -c -o res_comp.lo res_comp.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -I./compat -I/usr/local/include -Wall -O0 -g -DRESOLVSORT -c res_comp.c -fPIC -DPIC -o .libs/res_comp.o In file included from res_comp.c:69: /usr/local/include/event.h:302: error: syntax error before 'u_int8_t' /usr/local/include/event.h:305: error: syntax error before 'u_int32_t' /usr/local/include/event.h:307: error: syntax error before 'u_int8_t' /usr/local/include/event.h:310: error: syntax error before 'u_int8_t' /usr/local/include/event.h:313: error: syntax error before 'u_int8_t' /usr/local/include/event.h:318: error: syntax error before 'u_int8_t' /usr/local/include/event.h:320: error: syntax error before 'u_int8_t' /usr/local/include/event.h:321: error: syntax error before 'u_int32_t' /usr/local/include/event.h:322: error: syntax error before 'u_int32_t' /usr/local/include/event.h:325: error: syntax error before 'u_int8_t' /usr/local/include/event.h:328: error: syntax error before 'u_int8_t' /usr/local/include/event.h:331: error: syntax error before 'u_int8_t' /usr/local/include/event.h:334: error: syntax error before 'u_int8_t' In file included from res_comp.c:71: resolv.h:123:26: error: sys/bitypes.h: No such file or directory resolv.h:127:23: error: sys/cdefs.h: No such file or directory In file included from resolv.h:151, from res_comp.c:71: dnsres.h:377: error: syntax error before 'struct' dnsres.h:452: error: syntax error before 'struct' dnsres.h:482: error: syntax error before 'u_int32_t' dnsres.h:482: warning: no semicolon at end of struct or union dnsres.h:482: warning: no semicolon at end of struct or union dnsres.h:483: warning: type defaults to 'int' in declaration of 'sort_list' dnsres.h:483: warning: data definition has no type or storage class dnsres.h:504: error: syntax error before '}' token In file included from res_comp.c:71: resolv.h:279: error: syntax error before 'int' resolv.h:298: error: syntax error before 'unsigned' resolv.h:299: error: syntax error before 'unsigned' resolv.h:301: warning: parameter names (without types) in function declaration resolv.h:344: warning: '__bounded__' attribute directive ignored resolv.h:359: error: syntax error before 'char' resolv.h:367: error: syntax error before 'arc4random' resolv.h:367: warning: type defaults to 'int' in declaration of 'arc4random' resolv.h:367: warning: data definition has no type or storage class res_comp.c: In function '__dnsres_dn_expand': res_comp.c:97: error: 'MAXHOSTNAMELEN' undeclared (first use in this function) res_comp.c:97: error: (Each undeclared identifier is reported only once res_comp.c:97: error: for each function it appears in.) res_comp.c: At top level: res_comp.c:455: error: syntax error before '__dnsres_getshort' res_comp.c:456: warning: return type defaults to 'int' res_comp.c:456: error: conflicting types for '__dnsres_getshort' resolv.h:354: error: previous declaration of '__dnsres_getshort' was here res_comp.c: In function '__dnsres_getshort': res_comp.c:458: error: syntax error before 'u' res_comp.c:460: error: 'u' undeclared (first use in this function) res_comp.c:460: error: 'u_int16_t' undeclared (first use in this function) res_comp.c:460: error: syntax error before 't_cp' res_comp.c:460: error: syntax error before 't_cp' res_comp.c:460: warning: unused variable 't_cp' res_comp.c:462: warning: control reaches end of non-void function res_comp.c: At top level: res_comp.c:465: error: syntax error before '__dnsres_getlong' res_comp.c:466: warning: return type defaults to 'int' res_comp.c:466: error: conflicting types for '__dnsres_getlong' resolv.h:355: error: previous declaration of '__dnsres_getlong' was here res_comp.c: In function '__dnsres_getlong': res_comp.c:468: error: syntax error before 'u' res_comp.c:470: error: 'u' undeclared (first use in this function) res_comp.c:470: error: 'u_int32_t' undeclared (first use in this function) res_comp.c:470: error: syntax error before 't_cp' res_comp.c:470: error: syntax error before 't_cp' res_comp.c:470: error: syntax error before 't_cp' res_comp.c:470: error: syntax error before 't_cp' res_comp.c:470: warning: unused variable 't_cp' res_comp.c:472: warning: control reaches end of non-void function res_comp.c: At top level: res_comp.c:475: warning: type defaults to 'int' in declaration of 'u_int16_t' res_comp.c:475: error: syntax error before 's' res_comp.c: In function '__dnsres_putshort': res_comp.c:477: error: 'u_int16_t' undeclared (first use in this function) res_comp.c:477: error: syntax error before 't_s' res_comp.c:477: error: 'msgp' undeclared (first use in this function) res_comp.c:477: error: 't_s' undeclared (first use in this function) res_comp.c: In function '__dnsres_putlong': res_comp.c:482: warning: type defaults to 'int' in declaration of 'u_int32_t' res_comp.c:482: error: syntax error before 'l' res_comp.c:482: error: declaration for parameter 'u_int32_t' but no such parameter res_comp.c:485: error: syntax error before 't_l' res_comp.c:485: error: 't_l' undeclared (first use in this function) make[1]: *** [res_comp.lo] Error 1 make[1]: Leaving directory `/root/Desktop/libdnsres-0.1a' make: *** [install-recursive] Error 1