IP Filter 4.1.31 compile problem

clinton propst <[email protected]>
Newsgroups gmane.comp.security.firewalls.ipfilter
Message-ID <12984_1236382219_49B1B20A_12984_1305_1_670397.89552.qm@web50106.mail.re2.yahoo.com>
Hi,
I am getting the following error while trying to compile IP Filter 4.1.32 or
4.1.31.

#uname -a
SunOS tester 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-V245

# /usr/local/bin/gcc -v
Reading specs from
/usr2/local/bin/../lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix gcc version 3.4.6



# make solaris CC=gcc
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) if [ ! -f net/done ] ; then \
        (cd net; ln -s ../radix_ipf.h .; ); \
        touch net/done; \
fi
MAKE="make" MAKEFLAGS="" BPFILTER= \
        CC="gcc" 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/sparc-5.10; make build TOP=../.. "CC=gcc"  'CFLAGS=-I$(TOP)
-D_BSD_SOURCE  -DSOLARIS2=10  '  "IPFLOG=-DIPFILTER_LOG"
"LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS"
"SOLARIS2=-DSOLARIS2=10" "DEBUG=-g" "DCPU="  "LIBBPF=" "CPUDIR=sparc-5.10"
"IPFBPF="  'STATETOP_CFLAGS=' "BPFILTER="  'STATETOP_INC=' 'STATETOP_LIB='
"BITS=32" "OBJ=sparcv7" "LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN"
"COMPIPF="  'SYNC=' 'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP
-DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF='
"IPFLKM=-DIPFILTER_LKM" "SOLARIS2=-DSOLARIS2=10"; cd ..)
sed -e 's/^\([^#].*\)\([        ]\)radix_node/\1\2ipf_radix_node/g' \
    -e 's/^\([^#].*\)\([        ]\)radix_mask/\1\2ipf_radix_mask/g' \
    -e 's/struct radix/struct ipf_radix/g' \
    ../../radix_ipf.h > radix_ipf_local.h gcc -I. -g -I../.. -D_BSD_SOURCE
-DSOLARIS2=10 -c ../../lib/addicmp.c -o sparcv7/addicmp.o gcc -I. -g -I../..
-D_BSD_SOURCE  -DSOLARIS2=10 -c ../../lib/addipopt.c -o sparcv7/addipopt.o
gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10 -c ../../lib/alist_free.c -o
sparcv7/alist_free.o ...............
.......
......
gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10 -c ../../tools/ipftest.c -o
sparcv7/ipftest.o gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10
-DIPFILTER_LOG -DIPFILTER_LOOKUP  -DIPFILTER_SCAN -DIPFILTER_SYNC
-DIPFILTER_CKSUM -c ../../ip_fil.c -o sparcv7/ip_fil_u.o In file included
from ../../netinet/ip_compat.h:181,
                 from ../../ip_fil.c:115:
/usr/include/inet/ip_ire.h:186: error: syntax error before '*' token
/usr/include/inet/ip_ire.h:190: error: syntax error before '}' token
*** Error code 1
make: Fatal error: Command failed for target `sparcv7/ip_fil_u.o'
Current working directory
/usr2/local/dloads/ip_fil4.1.32rc1/SunOS5/sparc-5.10
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /usr2/local/dloads/ip_fil4.1.32rc1
*** Error code 1
make: Fatal error: Command failed for target `solaris'





I tried using the "ip_compat.h" from:
http://ipfilter.cvs.sourceforge.net/viewvc/*checkout*/ipfilter/ipfilter/ip_c
ompat.h?revision=1.2.2.24

Received the same error.  




Any help is greatly appreciated.

Thanks,
Clinton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.