Ok I did a cvs update and then the compilation got a little further,
but dies on ip_fil_solaris.c, where function net_routeto has only two
arguments and it needs three:
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -DLOGFAC=LOG_LOCAL0
-c ../../tools/ipmon.c -o sparcv7/ipmon.o
(cd ../../tools; make DEST=../SunOS5/sparc-5.10 ../SunOS5/sparc-5.10/ipmon_y.c)
yacc -v -d ipmon_y.y
sed -e 's/yy/ipmon_yy/g' -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \
y.tab.c > ../SunOS5/sparc-5.10/ipmon_y.c
sed -e 's/yy/ipmon_yy/g' y.tab.h > ../SunOS5/sparc-5.10/ipmon_y.h
/bin/rm -f y.tab.c y.tab.h
mv ipmon_y.c y.tab.c
sed -e 's/extern [a-z]* .*();//' \
-e 's/^\(static [a-z]* .*\)();/\1(void);/' y.tab.c > ipmon_y.c
/bin/rm -f y.tab.c
(cd ../../tools; make DEST=../SunOS5/sparc-5.10 ../SunOS5/sparc-5.10/ipmon_l.h)
sed -e 's/yy/ipmon_yy/g' lexer.h > ../SunOS5/sparc-5.10/ipmon_l.h
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -c ipmon_y.c -o spa
rcv7/ipmon_y.o
(cd ../../tools; make DEST=../SunOS5/sparc-5.10 ../SunOS5/sparc-5.10/ipmon_l.c)
sed -e 's/yy/ipmon_yy/g' -e 's/y.tab.h/ipmon_y.h/' \
-e 's/lexer.h/ipmon_l.h/' lexer.c > ../SunOS5/sparc-5.10/ipmon_l.c
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -I. -I../../tools -
c ipmon_l.c -o sparcv7/ipmon_l.o
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -DLOGFAC=LOG_LOCAL0
sparcv7/ipmon.o sparcv7/ipmon_y.o sparcv7/ipmon_l.o -o sparcv7/ipmon -lsocket -
lnsl -lelf -Lsparcv7 -lipf -ll -ldl
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -c ../../tools/ipna
t.c -o sparcv7/ipnat.o
gcc -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 sparcv7/ipnat.o sparcv7/ip
nat_y.o sparcv7/ipnat_l.o -o sparcv7/ipnat -lsocket -lnsl -lelf -Lsparcv7 -lipf
-lkvm -ll
gcc -I../.. -DIPFILTER_LKM -I../../../pfil -D_KERNEL -DSUNDDI -DINSTANCES=1 -DS
OLARIS2=10 -DIPFILTER_LOG -DIPFILTER_SYNC -c ../../ip_fil_solaris.c -o sparcv
7/ip_fil.o
./../ip_fil_solaris.c: In function 'ipf_routeto':
./../ip_fil_solaris.c:1413: error: too few arguments to function 'net_routeto'
*** Error code 1
make: Fatal error: Command failed for target `sparcv7/ip_fil.o'
Current working directory /tmp/sum/ipfilter/SunOS5/sparc-5.10
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /tmp/sum/ipfilter
*** Error code 1
make: Fatal error: Command failed for target `solaris'
-- Sum
>
> Summum Bonum wrote:
> > Thanks Darren, I have checked out branch v5-1-RELEASE. But I get these
> > errors on compilation:
> >
> > gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -c
> > ./../tools/ipf.c -o sparcv7/ipf.o
> > gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -c
> > ./../tools/ipfcomp.c -o sparcv7/ipfcomp.o
> > (cd ../../tools; make "DEST=../SunOS5/sparc-5.10"
> > ./SunOS5/sparc-5.10/ipf_y.c)
> > yacc -v -d ipf_y.y
> >
> > conflicts: 8 shift/reduce, 14 reduce/reduce
> > sed -e 's/yy/ipf_yy/g' -e 's/y.tab.h/ipf_y.c/' \
> > -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \
> > y.tab.c > ../SunOS5/sparc-5.10/ipf_y.c
> > sed -e 's/yy/ipf_yy/g' -e 's/y.tab.h/ipf_y.h/' y.tab.h >
> > ./SunOS5/sparc-5.10/ipf_y.h
> > /bin/rm -f y.tab.c y.tab.h
> > (cd ../../tools; make "DEST=../SunOS5/sparc-5.10"
> > ./SunOS5/sparc-5.10/ipf_l.h)
> > sed -e 's/yy/ipf_yy/g' lexer.h > ../SunOS5/sparc-5.10/ipf_l.h
> > gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DUSE_INET6 -c ipf_y.c
> > -o sparcv7/ipf_y.o
> > ./tools/ipf_y.y: In function 'ipf_yyparse':
> > ./tools/ipf_y.y:1392: error: 'frentry_t' has no member named 'fr_rpc'
> > ./tools/ipf_y.y:1394: error: 'frentry_t' has no member named 'fr_rpc'
> > *** Error code 1
> > make: Fatal error: Command failed for target `sparcv7/ipf_y.o'
> > Current working directory /tmp/sum/ipfilter/SunOS5/sparc-5.10
> > *** Error code 1
> > make: Fatal error: Command failed for target `sunos5'
> > Current working directory /tmp/sum/ipfilter
> > *** Error code 1
> > make: Fatal error: Command failed for target `solaris
> >
>
> The fix for this has been integrated. Do a "cvs update" and continue.
>
> Darren
>