Hello,
I am having some problems getting Squid compiled under my Windows box.
Squid configures fine with ./configure --disable-wccp --disable-wccpv2
But make fails with the following output:
Making all in compat
make[1]: Entering directory `/home/Administrator/squid-3.1.7/compat'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I..
-I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Werror -D_REENTRANT -g -O2 -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../src
-I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror
-D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c
assert.cc -DDLL_EXPORT -DPIC -o .libs/assert.o
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/ws2tcpip.h:19,
from ../compat/os/mswin.h:233,
from ../compat/compat.h:58,
from ../include/config.h:58,
from assert.cc:34:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:103:2:
error: #warning "fd_set and associated macros have been defined in
sys/types. This may cause runtime problems with W32 sockets"
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/ws2tcpip.h:19,
from ../compat/os/mswin.h:233,
from ../compat/compat.h:58,
from ../include/config.h:58,
from assert.cc:34:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock2.h:632:
error: declaration of C function ‘int select(int, _types_fd_set*,
_types_fd_set*, _types_fd_set*, const timeval*)’ conflicts with
/usr/include/sys/select.h:31: error: previous declaration ‘int
select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here
In file included from ../compat/compat.h:58,
from ../include/config.h:58,
from assert.cc:34:
../compat/os/mswin.h: In function ‘int close(int)’:
../compat/os/mswin.h:370: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h:378: error: ‘_free_osfhnd’ was not declared in this
scope
../compat/os/mswin.h:379: error: ‘__pioinfo’ was not declared in this scope
../compat/os/mswin.h:382: error: ‘_close’ was not declared in this scope
../compat/os/mswin.h: In function ‘int read(int, void*, size_t)’:
../compat/os/mswin.h:407: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h:412: error: ‘_read’ was not declared in this scope
../compat/os/mswin.h: In function ‘int write(int, const void*, size_t)’:
../compat/os/mswin.h:420: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h:425: error: ‘_write’ was not declared in this scope
../compat/os/mswin.h: In function ‘int Squid::accept(int, sockaddr*,
size_t*)’:
../compat/os/mswin.h:443: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h:448: error: ‘_open_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::bind(int, sockaddr*, int)’:
../compat/os/mswin.h:454: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::connect(int, const
sockaddr*, int)’:
../compat/os/mswin.h:464: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::getsockname(int,
sockaddr*, size_t*)’:
../compat/os/mswin.h:504: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::getsockopt(int, int, int,
void*, int*)’:
../compat/os/mswin.h:526: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::ioctl(int, int, void*)’:
../compat/os/mswin.h:537: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::ioctlsocket(int, long int,
u_long*)’:
../compat/os/mswin.h:547: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::listen(int, int)’:
../compat/os/mswin.h:557: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::recv(int, void*, size_t,
int)’:
../compat/os/mswin.h:570: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::recvfrom(int, void*,
size_t, int, sockaddr*, size_t*)’:
../compat/os/mswin.h:581: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::send(int, const void*,
size_t, int)’:
../compat/os/mswin.h:604: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::sendto(int, const void*,
size_t, int, const sockaddr*, int)’:
../compat/os/mswin.h:615: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::setsockopt(SOCKET, int,
int, const char*, int)’:
../compat/os/mswin.h:627: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::shutdown(int, int)’:
../compat/os/mswin.h:640: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::socket(int, int, int)’:
../compat/os/mswin.h:656: error: ‘_open_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::WSAAsyncSelect(int,
HWND__*, unsigned int, long int)’:
../compat/os/mswin.h:663: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::WSADuplicateSocket(int,
DWORD, _WSAPROTOCOL_INFOA*)’:
../compat/os/mswin.h:677: error: ‘_get_osfhandle’ was not declared in
this scope
../compat/os/mswin.h: In function ‘int Squid::WSASocket(int, int, int,
_WSAPROTOCOL_INFOA*, GROUP, DWORD)’:
../compat/os/mswin.h:699: error: ‘_open_osfhandle’ was not declared in
this scope
make[1]: *** [assert.lo] Error 1
make[1]: Leaving directory `/home/Administrator/squid-3.1.7/compat'
make: *** [all-recursive] Error 1
I am not sure what could be the problem. Any ideas?
Best regards,
José Carlos Correia
Received on Tue Sep 07 2010 - 11:53:14 MDT
This archive was generated by hypermail 2.2.0 : Tue Sep 07 2010 - 12:00:02 MDT