coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
514 stars 257 forks source link

"storage size of ‘ctx’ isn’t known" error, on compilation, if the --enable-cluster option is used #519

Open ahmet-gokcen opened 4 years ago

ahmet-gokcen commented 4 years ago

Hello, if I use --enable-cluster param, on a ubuntu 18.04 environment, with following build options:

CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ --sysconfdir=/etc --localstatedir=/var --enable-largelimits \ --enable-proxyvsa --enable-miniportal --enable-chilliredir \ --enable-chilliproxy --enable-binstatusfile --enable-chilliscript \ --enable-chilliradsec --enable-layer3 --enable-eapol \ --enable-uamdomainfile --enable-redirdnsreq --enable-modules \ --enable-multiroute --enable-extadmvsa --with-openssl --with-poll --enable-cluster \ --enable-json --enable-libjson --enable-statusfile --enable-pppoe --enable-wpad --enable-ssdp

I receive compilation errors:

dhcp.c: In function ‘dhcp_sendCHILLI’: dhcp.c:112:18: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^~~ dhcp.c:112:18: error: unused variable ‘ctx’ [-Werror=unused-variable] dhcp.c: In function ‘dhcp_chillipkt’: dhcp.c:5099:18: error: storage size of ‘cctx’ isn’t known EVP_CIPHER_CTX cctx; ^~~~ dhcp.c:5099:18: error: unused variable ‘cctx’ [-Werror=unused-variable] dhcp.c: In function ‘dhcp_ignore’: dhcp.c:5209:23: error: format ‘%d’ expects argument of type ‘int’, but argument 19 has type ‘size_t {aka long unsigned int}’ [-Werror=format=] syslog(LOG_DEBUG, "%s(%d): ignore: src="MAC_FMT" " ^~~~~~ dhcp.c:5210:45: note: format string is defined here "dst="MAC_FMT" prot=%.4x %d len=%d", FUNCTION, LINE, ~^ %ld cc1: all warnings being treated as errors Makefile:938: recipe for target 'dhcp.lo' failed make[4]: [dhcp.lo] Error 1 make[4]: Leaving directory '/root/coova-chilli/src' Makefile:981: recipe for target 'all-recursive' failed make[3]: [all-recursive] Error 1 make[3]: Leaving directory '/root/coova-chilli/src' Makefile:417: recipe for target 'all-recursive' failed make[2]: [all-recursive] Error 1 make[2]: Leaving directory '/root/coova-chilli' Makefile:345: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/root/coova-chilli' debian/rules:51: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

with the latest(1.5 release) source.

But without "--enable-cluster", build is completed successfully as far as I can see.