Problems compiling OpenLDAP (2.1.8), Cygwin 1.3.12
Erich Oliphant
ericho@vantixweb.com
Sun Oct 27 06:31:00 GMT 2002
Hi,
I've been over the other posts regarding issues w/ openldap & cygwin but did
not see this particular one. Duing the build (and the make depend) I get
lots of warnings about symbol conflicts betwenn unix/cygwin headers and
winsock.h. For example:
--
$ make
Making all in /cygdrive/c/download/openldap-2.1.8
Entering subdirectory include
make[1]: Entering directory `/cygdrive/c/download/openldap-2.1.8/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/download/openldap-2.1.8/include'
Entering subdirectory libraries
make[1]: Entering directory `/cygdrive/c/download/openldap-2.1.8/libraries'
Making all in /cygdrive/c/download/openldap-2.1.8/libraries
Entering subdirectory liblutil
make[2]: Entering directory
`/cygdrive/c/download/openldap-2.1.8/libraries/liblutil'
gcc -g -O2 -I../../include -I../../include -c -o base64.o
base64.c
In file included from ../../include/ac/socket.h:55,
from base64.c:60:
/usr/include/w32api/winsock2.h:96: warning: #warning "fd_set and associated
macros have been defined in sys/types. This may cause runtime problems
withW32 sockets"
/usr/include/w32api/winsock2.h:119: warning: `timercmp' redefined
/usr/include/sys/time.h:51: warning: this is the location of the previous
definition
/usr/include/w32api/winsock2.h:120: warning: `timerclear' redefined
/usr/include/sys/time.h:47: warning: this is the location of the previous
definition
--
and that goes on for a while. The build fails on the first file:
--
/usr/include/w32api/winsock2.h:512: parse error before `('
/usr/include/w32api/winsock2.h:512: parse error before `?'
/usr/include/w32api/winsock2.h:513: parse error before `('
/usr/include/w32api/winsock2.h:513: parse error before `?'
/usr/include/w32api/winsock2.h:514: parse error before `('
/usr/include/w32api/winsock2.h:514: parse error before `?'
/usr/include/w32api/winsock2.h:515: parse error before `('
/usr/include/w32api/winsock2.h:515: parse error before `?'
/usr/include/w32api/winsock2.h:516: conflicting types for `select'
/usr/include/sys/select.h:29: previous declaration of `select'
make[2]: *** [base64.o] Error 1
make[2]: Leaving directory
`/cygdrive/c/download/openldap-2.1.8/libraries/libil'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/cygdrive/c/download/openldap-2.1.8/libraries'
make: *** [all-common] Error 1
--
Any ideas would be appreciated.
Thanks in advance.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list