[squid-users] Errors Compiling Squid Proxy on Windows using Cygwin

Russel McDonald russel_mcdonald at swbell.net
Fri Dec 14 19:52:07 UTC 2018


Hi,

 I’ve followed the small set of steps for building squidproxy using Cygwin on Windows 7 but am getting compile time errors.Specifically the below. Sorry for emailing this question if this has beenanswered. I searched past emails and the most recent hit on errors building onWindows was from 2010.

 

Cygwin version 2.11.2 from Nov 8/2018 and installed ALLfeatures including devel.

Downloaded squid source, tar –xvf  squid-3.5.11.tar.gz (I tried version 3.5.28 as well)

./configure --bindir=/bin/squid --sbindir=/usr/sbin/squid--sysconfdir=/etc/squid    --datadir=/usr/share/squid--libexecdir=/usr/lib/squid --disable-strict-error-checking   --with-logdir=/var/log/squid --with-swapdir=/var/cache/squid

And tried with --enable-win32-service as well.

 

Then make produces the error below. What am I doing incorrectly?

 ….

….

In file included from /usr/include/w32api/lm.h:18:0,

                from ext_lm_group_acl.cc:96:

/usr/include/w32api/lmserver.h:30:33: error:`SERVICE_STATUS_HANDLE' was not dec

lared in this scope

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe

rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);

                                ^~~~~~~~~~~~~~~~~~~~~

/usr/include/w32api/lmserver.h:30:33: note: suggestedalternative: `SERVICE_PAUS

ABLE'

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe

rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);

                                ^~~~~~~~~~~~~~~~~~~~~

                                SERVICE_PAUSABLE

/usr/include/w32api/lmserver.h:30:76: error: expectedprimary-expression before

`dwServiceBits'

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe

rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);

                                                                           ^~~~

~~~~~~~~~

/usr/include/w32api/lmserver.h:30:98: error: expectedprimary-expression before

`bSetBitsOn'

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe

rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);

 

                 ^~~~~~~~~~

/usr/include/w32api/lmserver.h:30:117: error: expectedprimary-expression before

`bUpdateImmediately'

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe

rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);

 

                                    ^~~~~~~~~~~~~~~~~~

/usr/include/w32api/lmserver.h:30:135: error: expressionlist treated as compoun

d expression in initializer [-fpermissive]

   WINBOOL WINAPISetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,DWORD dwSe
rviceBits,WINBOOL bSetBitsOn,WINBOOL bUpdateImmediately);
Thanks!
Russel McDonald
 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20181214/635f2dac/attachment-0001.html>


More information about the squid-users mailing list