Bug 5064 - compile error - SCO 5.0.6a
Summary: compile error - SCO 5.0.6a
Status: CLOSED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.0
Hardware: x86 Other
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-07 20:32 UTC by Aaron Pelton
Modified: 2008-07-26 10:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Pelton 2007-11-07 20:32:15 UTC
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
Comment 1 Wayne Davison 2007-11-08 09:13:17 UTC
The latest CVS version fixes all the errors I could discern from that failed compilation.  Please add another comment if there are more problems.
Comment 2 Aaron Pelton 2007-11-08 09:54:43 UTC
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