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 1001 Omaha Circle, Palm Harbor, FL 34683 |
geographicsolutions.com The information contained in this message may be privileged, confidential communication in error, please notify us immediately by replying to the message
|
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users