Is there a way to update ipfilter?
I tried to install from source but I get this:
-bash-4.0$ make solaris
mkdir -p net netinet
if [ ! -f netinet/done ] ; then \
(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .;); \
(cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \
touch netinet/done; \
fi
(cd netinet; ln -s ../ip_rules.h ip_rules.h)
ln: cannot create ip_rules.h: File exists
*** Error code 2 (ignored)
if [ ! -f net/done ] ; then \
(cd net; ln -s ../radix_ipf.h .; ); \
touch net/done; \
fi
MAKE="make" MAKEFLAGS="" BPFILTER= \
CC="gcc -Wstrict-prototypes -Wmissing-prototypes -Wunused
-Wuninitialized" DEBUG="-g" ./buildsunos
Testing compiler gcc for 64 bit object file generation.
found 32/64 bit compiler
build 32 bit binaries.
make ok
(cd SunOS5/i386-5.11; make build TOP=../.. "CC=gcc" 'CFLAGS=-I$(TOP)
-D_BSD_SOURCE -DSOLARIS2=11 -DUSE_INET6' "IPFLOG=-DIPFILTER_LOG"
"LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS"
"SOLARIS2=-DSOLARIS2=11" "DEBUG=-g" "DCPU=" "LIBBPF=" "CPUDIR=i386-5.11"
"IPFBPF=" 'STATETOP_CFLAGS=' "BPFILTER=" 'STATETOP_INC=' 'STATETOP_LIB='
"BITS=32" "OBJ=i86" "LOOKUP=" "COMPIPF=" "COMPATIPF=-DIPFILTER_COMPAT"
'SYNC=-DIPFILTER_SYNC' 'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP
-DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' "IPFLKM=-DIPFILTER_LKM"
"SOLARIS2=-DSOLARIS2=11" INSTANCE=-DINSTANCES=1; cd ..)
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=11 -DUSE_INET6 -c
../../lib/addicmp.c -o i86/addicmp.o
In file included from /usr/include/inet/ip.h:48,
from ../../netinet/ip_compat.h:203,
from ../../ipf.h:69,
from ../../lib/addicmp.c:11:
/usr/include/inet/ip_stack.h:440: error: syntax error before "mod_hash_t"
In file included from ../../netinet/ip_compat.h:203,
from ../../ipf.h:69,
from ../../lib/addicmp.c:11:
/usr/include/inet/ip.h:927: error: syntax error before "mod_hash_t"
/usr/include/inet/ip.h:929: error: syntax error before '}' token
*** Error code 1
make: Fatal error: Command failed for target `i86/addicmp.o'
Current working directory /export/home/hjf/ip_fil5.1.0/SunOS5/i386-5.11
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /export/home/hjf/ip_fil5.1.0
*** Error code 1
make: Fatal error: Command failed for target `solaris'
Any hints?
Thanks,
Hernan
--
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]