Hello all, I am struggling to compile Squid 3.5 on windows 7 x64 using latest Cygwin. During configuration (./configure --disable-wccp --disable-wccpv2) The following error occurs: checking for ldap.h... (cached) yes checking winldap.h usability... no checking winldap.h presence... yes configure: WARNING: winldap.h: present but cannot be compiled configure: WARNING: winldap.h: check for missing prerequisite headers? configure: WARNING: winldap.h: see the Autoconf documentation configure: WARNING: winldap.h: section "Present But Cannot Be Compiled" configure: WARNING: winldap.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------------- ## configure: WARNING: ## Report this to http://bugs.squid-cache.org/ ## configure: WARNING: ## ------------------------------------------- ## checking for winldap.h... no checking w32api/windows.h usability... yes Similar with mswsock: checking mswsock.h usability... no checking mswsock.h presence... yes configure: WARNING: mswsock.h: present but cannot be compiled configure: WARNING: mswsock.h: check for missing prerequisite headers? configure: WARNING: mswsock.h: see the Autoconf documentation configure: WARNING: mswsock.h: section "Present But Cannot Be Compiled" configure: WARNING: mswsock.h: proceeding with the compiler's result configure: WARNING: ## ------------------------------------------- ## configure: WARNING: ## Report this to http://bugs.squid-cache.org/ ## configure: WARNING: ## ------------------------------------------- ## checking for mswsock.h... no If I run "make" after that it fails at start: Making all in compat make[1]: Entering directory '/usr/src/squid-3.5.0.1/compat' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c -o assert.lo assert.cc libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../lib -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -g -O2 -march=native -std=c++11 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -DDLL_EXPORT -DPIC -o .libs/assert.o In file included from /usr/include/w32api/winsock2.h:56:0, from /usr/include/w32api/ws2spi.h:13, from ../compat/os/mswindows.h:306, from ../compat/compat.h:73, from ../include/squid.h:43, from assert.cc:9: /usr/include/w32api/psdk_inc/_fd_types.h:100:2: error: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Werror=cpp] #warning "fd_set and associated macros have been defined in sys/types. \ ^ In file included from ../compat/compat.h:73:0, from ../include/squid.h:43, from assert.cc:9: ../compat/os/mswindows.h:417:0: error: "FOPEN" redefined [-Werror] #define FOPEN 0x01 /* file handle open */ ^ In file included from /usr/include/sys/fcntl.h:3:0, from /usr/include/fcntl.h:14, from ../compat/os/mswindows.h:41, from ../compat/compat.h:73, from ../include/squid.h:43, from assert.cc:9: /usr/include/sys/_default_fcntl.h:98:0: note: this is the location of the previous definition #define FOPEN _FOPEN ^ In file included from /usr/include/w32api/ws2spi.h:13:0, from ../compat/os/mswindows.h:306, from ../compat/compat.h:73, from ../include/squid.h:43, from assert.cc:9: /usr/include/w32api/winsock2.h:995:123: error: declaration of C function 'int select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, PTIMEVAL)' conflicts with WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout); ^ In file included from ../compat/types.h:41:0, from ../compat/compat.h:59, from ../include/squid.h:43, from assert.cc:9: /usr/include/sys/select.h:31:5: error: previous declaration 'int select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)' here int select __P ((int __n, fd_set *__readfds, fd_set *__writefds, ^ In file included from ../compat/compat.h:73:0, from ../include/squid.h:43, from assert.cc:9: Is this a known issue or am I doing something wrong? Please note the same commands compile Squid 3.3.8 (from Cygwin) without any problems. Thank you very much! Rafael Akchurin Diladele B.V. _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users