Mailing List Archive

pre27 compilation fails on Sol7 box
Something strange happens when I compile the pre27 SSH:

ocal/ssh//include -DETCDIR=\"/usr/local/ssh//etc\" \
-DSSH_PROGRAM=\"/usr/local/ssh//bin/ssh\" \
-DSSH_ASKPASS_DEFAULT=\"/usr/local/ssh//libexec/ssh/ssh-askpass\" \
-DHAVE_CONFIG_H -c atomicio.c
In file included from includes.h:106,
from atomicio.c:26:
fake-socket.h:30: parse error before u_int8_t'
fake-socket.h:30: warning: no semicolon at end of
struct or union
fake-socket.h:39: field sin6_addr' has incomplete type
*** Error code 1
make: Fatal error: Command failed for target atomicio.o'


This is indeed bizarre because the bit of code in question is:

------->8-----fake-socket.h--starting-at-line-28-------
#ifndef HAVE_STRUCT_IN6_ADDR
struct in6_addr {
u_int8_t s6_addr[16]; <------ line 30
};
#endif /* !HAVE_STRUCT_IN6_ADDR */

#ifndef HAVE_STRUCT_SOCKADDR_IN6
struct sockaddr_in6 {
unsigned short sin6_family;
u_int16_t sin6_port;
u_int32_t sin6_flowinfo;
struct in6_addr sin6_addr; <------- line 39
};
#endif /* !HAVE_STRUCT_SOCKADDR_IN6 */
---------8<-------------------------------------------

which would appear to have the requisite number of semicolons.
When I comment out line 30, everything compiles.

Any guesses? Can anyone say for certain that it's _not_ ssh's fault?

Thanks,

Andrew Stribblehill
Systems Programmer, IT Service, University of Durham, England