build error: cast between incompatible function types from 'FARPROC'
While trying to reproduce the issue reported at #353 (closed) with a local docker build with autotools, it fails with
../../dbus/dbus-sysdeps-win.c: In function 'load_ex_ip_helper_procedures':
../../dbus/dbus-sysdeps-win.c:129:43: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(struct _MIB_TCPTABLE_OWNER_PID **, BOOL, void *, DWORD, DWORD)' {aka 'long unsigned int (*)(struct _MIB_TCPTABLE_OWNER_PID **, int, void *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type]
lpfnAllocateAndGetTcpExTableFromStack = (ProcAllocateAndGetTcpExtTableFromStack)GetProcAddress (hModule, "AllocateAndGetTcpExTableFromStack");
^
I wonder why this does not occur on gitlab CI, since it uses the same docker image and packages.
The build steps performed, which are the same as those performed on Gitlab CI, are:
sudo docker pull debian:buster-slim
sudo docker run -v $PWD:/mnt -it debian:buster-slim /bin/bash
cd mnt
ci_buildsys=autotools ci_distro=debian ci_docker= ci_in_docker=yes ci_host=x86_64-w64-mingw32 ci_local_packages=yes ci_suite=buster ci_variant=debug ./tools/ci-install.sh
ci_buildsys=autotools ci_distro=debian ci_docker= ci_host=x86_64-w64-mingw32 ci_local_packages=yes ci_parallel=2 ci_suite=buster ci_test=yes ci_test_fatal=yes ci_variant=debug ci_runtime=static ./tools/ci-build.sh