Hello,

I have searched the previous posts and I can only find a mention of this issue 
from back in 2018 where the solution was to use 3.5. I would like to use 4.12 
instead of older versions because of the security concerns.

The following is the errors the compiler gave me:

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

from ext_lm_group_acl.cc:96:
/usr/include/w32api/lmserver.h:29:33: error: 'SERVICE_STATUS_HANDLE' was not 
declared in this scope; did you mean 'SERVICE_PAUSABLE'?
   29 |   WINBOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE 
hServiceStatus,DWORD dwServiceBits,WINBOOL bSetBitsOn,WINBOOL 
bUpdateImmediately);
      |                                 ^~~~~~~~~~~~~~~~~~~~~
      |                                 SERVICE_PAUSABLE
/usr/include/w32api/lmserver.h:29:76: error: expected primary-expression before 
'dwServiceBits'
   29 |   WINBOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE 
hServiceStatus,DWORD dwServiceBits,WINBOOL bSetBitsOn,WINBOOL 
bUpdateImmediately);
      |                                                                         
   ^~~~~~~~~~~~~
/usr/include/w32api/lmserver.h:29:98: error: expected primary-expression before 
'bSetBitsOn'
   29 |   WINBOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE 
hServiceStatus,DWORD dwServiceBits,WINBOOL bSetBitsOn,WINBOOL 
bUpdateImmediately);
      |                                                                         
                         ^~~~~~~~~~
/usr/include/w32api/lmserver.h:29:117: error: expected primary-expression 
before 'bUpdateImmediately'
   29 |   WINBOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE 
hServiceStatus,DWORD dwServiceBits,WINBOOL bSetBitsOn,WINBOOL 
bUpdateImmediately);
      |                                                                         
                                            ^~~~~~~~~~~~~~~~~~
/usr/include/w32api/lmserver.h:29:135: error: expression list treated as 
compound expression in initializer [-fpermissive]
   29 |   WINBOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE 
hServiceStatus,DWORD dwServiceBits,WINBOOL bSetBitsOn,WINBOOL 
bUpdateImmediately);
      |                                                                         
                                                              ^
In file included from ../../../../compat/compat.h:105,
                 from ../../../../include/squid.h:43,
                 from ext_lm_group_acl.cc:78:
ext_lm_group_acl.cc: In function 'char* GetDomainName()':
ext_lm_group_acl.cc:173:19: error: format '%ld' expects argument of type 'long 
int', but argument 3 has type 'NTSTATUS' {aka 'int'} [-Werror=format=]
  173 |             debug("OpenPolicy Error: %ld\n", status);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~
      |                                              |
      |                                              NTSTATUS {aka int}
../../../../compat/debug.h:31:41: note: in definition of macro 'debug'
   31 |                          fprintf(stderr,X); \
      |                                         ^
ext_lm_group_acl.cc:173:40: note: format string is defined here
  173 |             debug("OpenPolicy Error: %ld\n", status);
      |                                      ~~^
      |                                        |
      |                                        long int
      |                                      %d
In file included from ../../../../compat/compat.h:105,
                 from ../../../../include/squid.h:43,
                 from ext_lm_group_acl.cc:78:
ext_lm_group_acl.cc:184:23: error: format '%ld' expects argument of type 'long 
int', but argument 3 has type 'NTSTATUS' {aka 'int'} [-Werror=format=]
  184 |                 debug("LsaQueryInformationPolicy Error: %ld\n", status);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~
      |                                                                 |
      |                                                                 
NTSTATUS {aka int}
../../../../compat/debug.h:31:41: note: in definition of macro 'debug'
   31 |                          fprintf(stderr,X); \
      |                                         ^
ext_lm_group_acl.cc:184:59: note: format string is defined here
  184 |                 debug("LsaQueryInformationPolicy Error: %ld\n", status);
      |                                                         ~~^
      |                                                           |
      |                                                           long int
      |                                                         %d
In file included from ../../../../compat/compat.h:105,
                 from ../../../../include/squid.h:43,
                 from ext_lm_group_acl.cc:78:
ext_lm_group_acl.cc:214:15: error: format '%ld' expects argument of type 'long 
int', but argument 3 has type 'DWORD' {aka 'unsigned int'} [-Werror=format=]
  214 |         debug("NetWkstaGetInfo Error: %ld\n", netret);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~
      |                                               |
      |                                               DWORD {aka unsigned int}
../../../../compat/debug.h:31:41: note: in definition of macro 'debug'
   31 |                          fprintf(stderr,X); \
      |                                         ^
ext_lm_group_acl.cc:214:41: note: format string is defined here
  214 |         debug("NetWkstaGetInfo Error: %ld\n", netret);
      |                                       ~~^
      |                                         |
      |                                         long int
      |                                       %d
In file included from ../../../../compat/compat.h:105,
                 from ../../../../include/squid.h:43,
                 from ext_lm_group_acl.cc:78:
ext_lm_group_acl.cc: In function 'int main(int, char**)':
ext_lm_group_acl.cc:572:15: error: format '%d' expects argument of type 'int', 
but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
  572 |         debug("Got '%s' from Squid (length: %d).\n", buf, strlen(buf));
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ~~~~~~~~~~~
      |                                                                 |
      |                                                                 size_t 
{aka long unsigned int}
../../../../compat/debug.h:31:41: note: in definition of macro 'debug'
   31 |                          fprintf(stderr,X); \
      |                                         ^
ext_lm_group_acl.cc:572:46: note: format string is defined here
  572 |         debug("Got '%s' from Squid (length: %d).\n", buf, strlen(buf));
      |                                             ~^
      |                                              |
      |                                              int
      |                                             %ld
cc1plus: all warnings being treated as errors
make[5]: *** [Makefile:840: ext_lm_group_acl.o] Error 1
make[5]: Leaving directory 
'/cygdrive/c/new/squid-4.14/src/acl/external/LM_group'
make[4]: *** [Makefile:532: install-recursive] Error 1
make[4]: Leaving directory '/cygdrive/c/new/squid-4.14/src/acl/external'
make[3]: *** [Makefile:1125: install-recursive] Error 1
make[3]: Leaving directory '/cygdrive/c/new/squid-4.14/src/acl'
make[2]: *** [Makefile:7129: install-recursive] Error 1
make[2]: Leaving directory '/cygdrive/c/new/squid-4.14/src'
make[1]: *** [Makefile:7657: install] Error 2
make[1]: Leaving directory '/cygdrive/c/new/squid-4.14/src'
make: *** [Makefile:588: install-recursive] Error 1



Brian Hall
Job Spider Team Lead
Geographic Solutions, Inc.
727.786.7955 phone | 727.786.5871 fax | 
bh...@geosolinc.com<mailto:bh...@geosolinc.com>
1001 Omaha Circle, Palm Harbor, FL 34683 | 
geographicsolutions.com<http://www.geographicsolutions.com/>
[2016 Email Signature]<http://www.geographicsolutions.com/>

The information contained in this message may be privileged, confidential
and protected from disclosure. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message to 
the
intended recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have received 
this
communication in error, please notify us immediately by replying to the message
and deleting it from your computer.

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to