[squid-users] Problem with running squid 3.5 on windows 7

Amos Jeffries squid3 at treenet.co.nz
Sun Dec 21 14:57:19 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/12/2014 3:43 a.m., Eldar Akchurin wrote:
> Hi Amos,
> 
> I'm continuing trying to make it run on 64 bit windows. I bumped
> into the following compilation error:
> 
> ipc_win32.cc:720:38: error: call of overloaded ‘write(int&, char*&,
> ssize_t&)’ is ambiguous
> 
> x = write(c2p[1], buf1, x);
> 
> ^
> 
> ipc_win32.cc:720:38: note: candidates are:
> 
> In file included from
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/direct.h:10:0,
> 
> from ../compat/os/mswindows.h:38,
> 
> from ../compat/compat.h:73,
> 
> from ../include/squid.h:43,
> 
> from ipc_win32.cc:11:
> 
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:329:15: note:
> int write(int, const void*, unsigned int)
> 
> int __cdecl write(int _Filehandle,const void *_Buf,unsigned int
> _MaxCharCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
> 
> ^
> 
> In file included from ../compat/compat.h:73:0,
> 
> from ../include/squid.h:43,
> 
> from ipc_win32.cc:11:
> 
> ../compat/os/mswindows.h:486:1: note: int write(int, const void*,
> size_t)
> 
> write(int fd, const void * buf, size_t siz)
> 
> ^
> 
> Makefile:7011: recipe for target 'ipc_win32.o' failed
> 
> 
> I suppose I need to use the second one, right (the first one seems
> deprecated)? As soon as I make it run, I will send you a patch.

Yes it is supposed to use the one defined in compat/os/mswindows.h
which in turn does the parameter conversions to call whatever the
Windows API call is.

You may need to make the read/write replacements be Scoped in Squid::
with a #define to do the mapping. Like the other I/O functions just below.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUlt/PAAoJELJo5wb/XPRjYkcIAI2H11HhVSmyUu81MB5ZVbNb
u3b1LHwF7sOaO7ayIWhtm4sh8/fwJ4Axyt2TVtDZrn4dyezuwaAPjIvL6Di56TZq
KWJpX/9KWtIu0LYNxfhBFoA+nOD3mHnqrA9D6ZH+C55nCWqVnEasKgr8JcclI3v8
HhvznNyLp/pjL++T68qjCAXgq2Vl5drhDUmvuqyzTfcTXjuy5nvD4wr9016MEob/
nBQndVVEhlmaNWPgr6EaSfVFuZuLg6noxgyUudFSlJYMn/TnWf/KMIoMNlysYF7y
uwQhYUr3k+D5rIgxSbJwHtdyBczvdVBSBghiZcwLoesI1BaaRmV7iscVZ6Zfqx8=
=Tmbu
-----END PGP SIGNATURE-----


More information about the squid-users mailing list