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

Problem building under Cygwin



I'm trying to build OpenLDAP 2.1.3 under Cygwin and I am having a
problem when liblutil is built. I get following error message:
/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
`/usr/local/src/openldap-2.1.3/libraries/liblutil'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/local/src/openldap-2.1.3/libraries'
make: *** [all-common] Error 1

I also get a lot of warnings about winsock2.h redefining macros that are
defined in other Cygwin headers.

I'm using the following configure command line: ./configure
--disable-ldbm --enable-ldap --enable-passwd --enable-shell

I have the latest versions of the Cygwin DLL installed and respective
programs and also have Berkeley DB 4, SASL 2 and OpenSSL installed.

Has anyone encountered this problem?

If so, what did you do to fix it?

Any help would be greatly appreciated.

Thanks,

Mark