make all-recursive
make[1]: Entering directory `/root/SRC/chillispot-1.0'
Making all in src
make[2]: Entering directory `/root/SRC/chillispot-1.0/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -fno-builtin -ansi -DSBINDIR='"/usr/local/sbin"' -g -O2 -MT tun.o -MD -MP -MF ".deps/tun.Tpo" -c -o tun.o tun.c; \
then mv -f ".deps/tun.Tpo" ".deps/tun.Po"; else rm -f ".deps/tun.Tpo"; exit 1; fi
In file included from /usr/include/linux/rtnetlink.h:5,
from tun.c:47:
/usr/include/linux/if_link.h:43: error: expected specifier-qualifier-list before '__u64'
In file included from /usr/include/linux/rtnetlink.h:7,
from tun.c:47:
/usr/include/linux/neighbour.h:92: error: expected specifier-qualifier-list before '__u64'
make[2]: *** [tun.o] Error 1
make[2]: Leaving directory `/root/SRC/chillispot-1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/SRC/chillispot-1.0'
make: *** [all] Error 2
then i just remove "-ansi" from src/Marefile
--- src/Makefile.old 2008-07-22 17:33:17.000000000 +0300
+++ src/Makefile 2008-07-22 17:33:39.000000000 +0300
@@ -171,7 +171,7 @@
target_alias =
# add -pg to enable gprof
-AM_CFLAGS = -D_GNU_SOURCE -fno-builtin -ansi -DSBINDIR='"$(sbindir)"'
+AM_CFLAGS = -D_GNU_SOURCE -fno-builtin -DSBINDIR='"$(sbindir)"'
chilli_SOURCES = chilli.c defs.h tun.c tun.h cmdline.c cmdline.h ippool.c ippool.h radius.h radius.c md5.c md5.h redir.h redir.c dhcp.c dhcp.h syserr.c syserr.h iphash.c iphash.h lookup.c lookup.h
chilli_LDFLAGS = -lcrypt
all: all-am