Re: [squid-users] build error.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 07 Nov 2002 23:39:44 +0100

You should not mix cygwin and visual studio in the same build process.
Use either of the two environments.

Guido has Visual Studio project definitions for Squid in the NT branch
of Squid. See http://devel.squid-cache.org/

If you build using the cygwin build environment then follow the normal
build procedure as for UNIX. This will build Squid with GNU CC unles you
tell configure to use another compiler command (CC environment
variable).

Regards
Henrik Nordström

Huy Nguyen wrote:
>
> Hi folks,
> If I build under the Visual studio 6.0. I got these errors. Any hint?
> Thanks,
> Huy
>
> c:\cygwin\usr\include\sys\time.h(16) : error C2011: 'timeval' : 'struct'
> type redefinition
> c:\cygwin\home\huy\squid\include\util.h(141) : warning C4028: formal
> parameter 2 different from declaration
> base64.c
> c:\cygwin\usr\include\sys\time.h(16) : error C2011: 'timeval' : 'struct'
> type redefinition
> c:\cygwin\home\huy\squid\include\util.h(141) : warning C4028: formal
> parameter 2 different from declaration
> c:\cygwin\home\huy\squid\lib\base64.c(61) : warning C4244: '=' : conversion
> from 'long ' to 'char ', possible loss of data
> getfullhostname.c
> c:\cygwin\usr\include\cygwin\socket.h(18) : error C2011: 'sockaddr' :
> 'struct' type redefinition
> c:\cygwin\usr\include\asm\socket.h(21) : warning C4005: '_IO' : macro
> redefinition
> c:\program files\microsoft sdk\include\winsock2.h(186) : see
> previous definition of '_IO'
> c:\cygwin\usr\include\asm\socket.h(22) : warning C4005: '_IOR' : macro
> redefinition
> c:\program files\microsoft sdk\include\winsock2.h(188) : see
> previous definition of '_IOR'
> c:\cygwin\usr\include\asm\socket.h(23) : warning C4005: '_IOW' : macro
> redefinition
> c:\program files\microsoft sdk\include\winsock2.h(190) : see
> previous definition of '_IOW'
> c:\cygwin\usr\include\asm\socket.h(27) : warning C4005: 'FIONBIO' : macro
> redefinition
> c:\program files\microsoft sdk\include\winsock2.h(193) : see
> previous definition of 'FIONBIO'
> c:\cygwin\usr\include\asm\socket.h(56) : warning C4005: 'SO_DONTLINGER' :
> macro redefinition
> c:\program files\microsoft sdk\include\winsock2.h(467) : see
> previous definition of 'SO_DONTLINGER'
> c:\cygwin\usr\include\cygwin\socket.h(28) : error C2011: 'linger' : 'struct'
> type redefinition
> c:\cygwin\usr\include\cygwin\socket.h(109) : warning C4005: 'SOMAXCONN' :
> macro redefinition
> c:\program files\microsoft sdk\include\winsock2.h(650) : see
> previous definition of 'SOMAXCONN'
> c:\cygwin\usr\include\sys\time.h(16) : error C2011: 'timeval' : 'struct'
> type redefinition
Received on Thu Nov 07 2002 - 15:38:13 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:13 MST