[Date Prev][Date Next] [Chronological] [Thread] [Top]

compiling under cygwin








I am trying to compile the latest release under cygwin on windows and am
getting some errors.
Does anyone know why the make is failing or what can be done to get it to
finish comiling?
The "make depend" command completed fine.

my cygwin uname: CYGWIN_NT-5.0 osca22874 1.5.15(0.127/4/2) 2005-04-18 12:20
i686 unknown unknown Cygwin

bestgecd@osca22874 /cygdrive/c/Download/openldap-2.2.26
$ make
Making all in /cygdrive/c/Download/openldap-2.2.26
  Entering subdirectory include
make[1]: Entering directory `/cygdrive/c/Download/openldap-2.2.26/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/Download/openldap-2.2.26/include'

  Entering subdirectory libraries
make[1]: Entering directory `/cygdrive/c/Download/openldap-2.2.26
/libraries'
Making all in /cygdrive/c/Download/openldap-2.2.26/libraries
  Entering subdirectory liblutil
make[2]: Entering directory `/cygdrive/c/Download/openldap-2.2.26
/libraries/liblutil'
rm -f version.c
../../build/mkversion -v "2.2.26" liblutil.a > version.c
cc -g -O2 -I../../include        -I../../include       -c -o base64.o
base64.c
In file included from ../../include/ac/socket.h:58,
                 from base64.c:46:
/usr/include/w32api/winsock2.h:95:2: warning: #warning "fd_set and
associated macros have been defined in sys/types.
  This may cause runtime problems with W32 sockets"
In file included from ../../include/ac/socket.h:58,
                 from base64.c:46:
/usr/include/w32api/winsock2.h:101: error: redefinition of `struct timeval'
/usr/include/w32api/winsock2.h:112: error: redefinition of `struct hostent'
/usr/include/w32api/winsock2.h:120: error: redefinition of `struct linger'
/usr/include/w32api/winsock2.h:147: error: redefinition of `struct netent'
/usr/include/w32api/winsock2.h:153: error: redefinition of `struct servent'
/usr/include/w32api/winsock2.h:159: error: redefinition of `struct
protoent'
/usr/include/w32api/winsock2.h:215: error: redefinition of `struct in_addr'
/usr/include/w32api/winsock2.h:246: error: redefinition of `struct
sockaddr_in'
/usr/include/w32api/winsock2.h:327: error: redefinition of `struct
sockaddr'
/usr/include/w32api/winsock2.h:515: error: conflicting types for `accept'
/usr/include/sys/socket.h:29: error: previous declaration of `accept'
/usr/include/w32api/winsock2.h:516: error: conflicting types for `bind'
/usr/include/sys/socket.h:30: error: previous declaration of `bind'
/usr/include/w32api/winsock2.h:518: error: conflicting types for `connect'
/usr/include/sys/socket.h:31: error: previous declaration of `connect'
/usr/include/w32api/winsock2.h:520: error: conflicting types for
`getpeername'
/usr/include/sys/socket.h:32: error: previous declaration of `getpeername'
/usr/include/w32api/winsock2.h:521: error: conflicting types for
`getsockname'
/usr/include/sys/socket.h:33: error: previous declaration of `getsockname'
/usr/include/w32api/winsock2.h:522: error: conflicting types for
`getsockopt'
/usr/include/sys/socket.h:44: error: previous declaration of `getsockopt'
/usr/include/w32api/winsock2.h:523: error: conflicting types for
`inet_addr'
/usr/include/arpa/inet.h:22: error: previous declaration of `inet_addr'
/usr/include/w32api/winsock2.h:524: error: conflicting types for
`inet_ntoa'
/usr/include/arpa/inet.h:28: error: previous declaration of `inet_ntoa'
/usr/include/w32api/winsock2.h:525: error: conflicting types for `listen'
/usr/include/sys/socket.h:34: error: previous declaration of `listen'
/usr/include/w32api/winsock2.h:526: error: conflicting types for `recv'
/usr/include/sys/socket.h:35: error: previous declaration of `recv'
/usr/include/w32api/winsock2.h:527: error: conflicting types for `recvfrom'
/usr/include/sys/socket.h:37: error: previous declaration of `recvfrom'
/usr/include/w32api/winsock2.h:528: error: conflicting types for `send'
/usr/include/sys/socket.h:39: error: previous declaration of `send'
/usr/include/w32api/winsock2.h:529: error: conflicting types for `sendto'
/usr/include/sys/socket.h:42: error: previous declaration of `sendto'
/usr/include/w32api/winsock2.h:530: error: conflicting types for
`setsockopt'
/usr/include/sys/socket.h:43: error: previous declaration of `setsockopt'
/usr/include/w32api/winsock2.h:531: error: conflicting types for `shutdown'
/usr/include/sys/socket.h:45: error: previous declaration of `shutdown'
/usr/include/w32api/winsock2.h:532: error: conflicting types for `socket'
/usr/include/sys/socket.h:46: error: previous declaration of `socket'
/usr/include/w32api/winsock2.h:533: error: conflicting types for
`gethostbyaddr'
/usr/include/netdb.h:139: error: previous declaration of `gethostbyaddr'
/usr/include/w32api/winsock2.h:534: error: conflicting types for
`gethostbyname'
/usr/include/netdb.h:140: error: previous declaration of `gethostbyname'
/usr/include/w32api/winsock2.h:535: error: conflicting types for
`getservbyport'
/usr/include/netdb.h:149: error: previous declaration of `getservbyport'
/usr/include/w32api/winsock2.h:536: error: conflicting types for
`getservbyname'
/usr/include/netdb.h:148: error: previous declaration of `getservbyname'
/usr/include/w32api/winsock2.h:537: error: conflicting types for
`getprotobynumber'
/usr/include/netdb.h:146: error: previous declaration of `getprotobynumber'
/usr/include/w32api/winsock2.h:538: error: conflicting types for
`getprotobyname'
/usr/include/netdb.h:145: error: previous declaration of `getprotobyname'
/usr/include/w32api/winsock2.h:607: error: parse error before '(' token
/usr/include/w32api/winsock2.h:607: error: parse error before '?' token
/usr/include/w32api/winsock2.h:608: error: parse error before '(' token
/usr/include/w32api/winsock2.h:608: error: parse error before '?' token
/usr/include/w32api/winsock2.h:609: error: parse error before '(' token
/usr/include/w32api/winsock2.h:609: error: parse error before '?' token
/usr/include/w32api/winsock2.h:610: error: parse error before '(' token
/usr/include/w32api/winsock2.h:610: error: parse error before '?' token
/usr/include/w32api/winsock2.h:611: error: conflicting types for `select'
/usr/include/sys/select.h:28: error: previous declaration of `select'
make[2]: *** [base64.o] Error 1
make[2]: Leaving directory `/cygdrive/c/Download/openldap-2.2.26
/libraries/liblutil'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/cygdrive/c/Download/openldap-2.2.26/libraries'
make: *** [all-common] Error 1

Thanks
cory