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);