I get the following when compiling Kerberos 1.2 under Cygwin/GCC
from hst_realm.c:69:
/usr/include/sys/fcntl.h:51: warning: `O_BINARY' redefined
../../../include/k5-int.h:164: warning: this is the location of the previous
def
inition
gcc -DSTDC_HEADERS=1 -DHAVE_STDARG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PATHS_H=1 -D
HAVE
_REGEX_H=1 -DHAVE_FCNTL_H=1 -DHAVE_MEMORY_H=1 -DHAVE_FCHMOD=1 -DHAVE_CHMOD=1
-DH
AVE_STRFTIME=1 -DHAVE_GETEUID=1 -DHAVE_SETENV=1 -DHAVE_UNSETENV=1 -DHAVE_GET
ENV=
1 -DHAVE_SETSID=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRDUP=1 -DHAVE
_STR
CASECMP=1 -DHAVE_STRERROR=1 -DHAVE_MEMMOVE=1 -DHAVE_GETUID=1 -DHAVE_SSCANF=1
-DH
AVE_SYSLOG=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 -DGETPEERNAME_ARG2_TYPE=struc
t\ s
ockaddr\ -DGETPEERNAME_ARG3_TYPE=int\ -DGETSOCKNAME_ARG2_TYPE=struct\
sockaddr
\ -DGETSOCKNAME_ARG3_TYPE=int\ -I../../../include -I./../../../include -
I../
../../include/krb5 -I./../../../include/krb5 -Wall -Wmissing-prototypes -Wc
ast-
qual -Wcast-align -Wconversion -Wshadow -Wno-comment -pedantic -c
init_os_ctx.c
In file included from /usr/include/fcntl.h:14,
from /usr/include/sys/file.h:18,
from ../../../include/k5-int.h:448,
from init_os_ctx.c:30:
/usr/include/sys/fcntl.h:51: warning: `O_BINARY' redefined
../../../include/k5-int.h:164: warning: this is the location of the previous
def
inition
init_os_ctx.c: In function `krb5_os_init_context':
init_os_ctx.c:474: `FIONBIO' undeclared (first use in this function)
init_os_ctx.c:474: (Each undeclared identifier is reported only once
init_os_ctx.c:474: for each function it appears in.)
make[3]: *** [init_os_ctx.o] Error 1
make[3]: Leaving directory `/krb5-current/src/lib/krb5/os'
make[2]: *** [all-recurse] Error 1
make[2]: Leaving directory `/krb5-current/src/lib/krb5'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/krb5-current/src/lib'
make: *** [all-recurse] Error 1
Is there a tweak I can apply to the code to make this compile successfully?
Colin