*** 08/07/06 – Update, the patch just allows Chillispot to build successfully, tun.c needs some more patching before chillispot will work. Sorry ***
I have made a patch which will enable Chillispot compile & run on OpenBSD, NetBSD & Mac OS X.
The patch has been tested working on the following versions of O/S’s
NetBSD 3.0-STABLE & -CURRENT
Mac OS X 10.4.7
though it should work on previous versions aswell.
To build Chillipot 1.0 first download & extract Chillispot.
Then copy the patch into the Chillispot directory & issue:
patch -p1 < chillispot -1.0.patch
You should get the following result:
patching file src/chilli.c
patching file src/dhcp.c
patching file src/redir.c
patching file src/syserr.c
patching file src/tun.c
For NetBSD & OpenBSD:
./configure with the relevant switches e.g.
./configure --sysconfdir=/etc --localstatedir=/var
then for OpenBSD: run
make install chilli_LDFLAGS=""
For Mac OS X:
make install chilli_LDFLAGS="-lcrypto -lresolv"
If compiling fails with the following error:
redir.c: In function 'redir_accept':
redir.c:1400: error: nested functions are not supported on MacOSX
redir.c:1406: error: nested functions are not supported on MacOSX
make: *** [redir.o] Error 1
make: *** [all-recursive] Error 1
make: *** [all] Error 2
then you’re using GCC 4.0.1, use
gcc_select to switch to GCC 3.3 by running
gcc_select 3.3 then rerunning make. When you’re done you can switch back to GCC 4 by running
gcc_select 4.0 surprise surprise!!!