coova / coova-chilli

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

OpenBSD 6.2 compilation error #404

Closed lgcosta closed 6 years ago

lgcosta commented 7 years ago

Hi, i have a error in make command, see history:

pkg_add git
pkg_add automake-1.15.1
pkg_add libtool
pkg_add gengetopt
mkdir build
cd build
git clone https://github.com/coova/coova-chilli.git 
cd coova-chilli/
AUTOMAKE_VERSION=1.15.1 AUTOCONF_VERSION=2.69p2 ./bootstrap
./configure --enable-miniportal --prefix=/usr/local
     .....
make
     .....
cc1: warnings being treated as errors
tun.c:727: warning: 'tun_decaps_cb' defined but not used
*** Error 1 in src (Makefile:938 'tun.lo')
*** Error 1 in src (Makefile:1004 'all-recursive')
*** Error 1 in . (Makefile:440 'all-recursive')
*** Error 1 in /root/build/coova-chilli (Makefile:343 'all')

Any fixed about this ?

uname:

# uname -a
OpenBSD obsd.lab 6.2 GENERIC#132 amd64
sevan commented 7 years ago

The compiler in base is set to error on unused functions. Remove the implementation of tun_decaps_cb()