gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/getaddrinfo.c -o lib/getaddrinfo.o lib/getaddrinfo.c: In function `check_hostent_err': lib/getaddrinfo.c:59: `h_errno' undeclared (first use in this function) lib/getaddrinfo.c:59: (Each undeclared identifier is reported only once lib/getaddrinfo.c:59: for each function it appears in.) lib/getaddrinfo.c:62: warning: unreachable code at beginning of switch statement lib/getaddrinfo.c: In function `get_my_canon_name': lib/getaddrinfo.c:94: `HOST_NAME_MAX' undeclared (first use in this function) lib/getaddrinfo.c:94: size of array `name' has non-integer type lib/getaddrinfo.c: In function `get_canon_name_from_addr': lib/getaddrinfo.c:109: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type lib/getaddrinfo.c: At top level: lib/getaddrinfo.c:156: parse error before `uint32_t' lib/getaddrinfo.c: In function `getaddr_info_single_addr': lib/getaddrinfo.c:165: `service' undeclared (first use in this function) lib/getaddrinfo.c:168: `addr' undeclared (first use in this function) lib/getaddrinfo.c:170: `hints' undeclared (first use in this function) lib/getaddrinfo.c:192: `res' undeclared (first use in this function) lib/getaddrinfo.c: In function `gethostnameinfo': lib/getaddrinfo.c:404: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type lib/getaddrinfo.c: In function `pg_getnameinfo': lib/getaddrinfo.c:484: warning: comparison between signed and unsigned make: *** [lib/getaddrinfo.o] Error 1
The latest CVS version fixes all the errors I could discern from that failed compilation. Please add another comment if there are more problems.
The compile works, if you're picky about warnings, I do still get: gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/getaddrinfo.c -o lib/getaddrinfo.o lib/getaddrinfo.c: In function `get_canon_name_from_addr': lib/getaddrinfo.c:116: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type Thanks