Hi everyone, I got the following error when compiling coova-chilli on Openwrt/Lede 17.04.1:
make[6]: Entering directory '/home/openwrt/doc_version_install/openwrt/build_dir/target-x86_64_glibc-2.24/coova-chilli-1.3.0+20141128/src'
/bin/bash ../libtool --tag=CC --mode=compile x86_64-openwrt-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/doc_version_install/openwrt/staging_dir/target-x86_64_glibc-2.24/usr/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/target-x86_64_glibc-2.24/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/toolchain-x86_64_gcc-5.4.0_glibc-2.24/usr/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/toolchain-x86_64_gcc-5.4.0_glibc-2.24/include -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF='"/etc/chilli.conf"' -DDEFPIDFILE='"/var/run/chilli.pid"' -DDEFSTATEDIR='"/var/run"' -DSBINDIR='"/usr/sbin"' -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap /home/openwrt/doc_version_install/openwrt/build_dir/target-x86_64_glibc-2.24/coova-chilli-1.3.0+20141128:coova-chilli-1.3.0+20141128 -fpic -MT chilli.lo -MD -MP -MF .deps/chilli.Tpo -c -o chilli.lo chilli.c
OpenWrt-libtool: compile: x86_64-openwrt-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/doc_version_install/openwrt/staging_dir/target-x86_64_glibc-2.24/usr/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/target-x86_64_glibc-2.24/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/toolchain-x86_64_gcc-5.4.0_glibc-2.24/usr/include -I/home/openwrt/doc_version_install/openwrt/staging_dir/toolchain-x86_64_gcc-5.4.0_glibc-2.24/include -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF=\"/etc/chilli.conf\" -DDEFPIDFILE=\"/var/run/chilli.pid\" -DDEFSTATEDIR=\"/var/run\" -DSBINDIR=\"/usr/sbin\" -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap /home/openwrt/doc_version_install/openwrt/build_dir/target-x86_64_glibc-2.24/coova-chilli-1.3.0+20141128:coova-chilli-1.3.0+20141128 -fpic -MT chilli.lo -MD -MP -MF .deps/chilli.Tpo -c chilli.c -fPIC -DPIC -o .libs/chilli.o
chilli.c: In function 'acct_req':
chilli.c:1861:17: error: storage size of 'the_info' isn't known
struct sysinfo the_info;
^
chilli.c:1861:17: error: unused variable 'the_info' [-Werror=unused-variable]
cc1: all warnings being treated as errors
Makefile:900: recipe for target 'chilli.lo' failed
make[6]: *** [chilli.lo] Error 1
make[6]: Leaving directory '/home/openwrt/doc_version_install/openwrt/build_dir/target-x86_64_glibc-2.24/coova-chilli-1.3.0+20141128/src'
It seems like it couldn't find sysinfo struct, so the memory set for the variable 'the_info' can't be created. Does anyone have an idea to solve this situation?
Thanks.