Did a cvs update and compilation stops at solaris.c: gcc -I../.. -DIPFILTER_LKM -I../../../pfil -D_KERNEL -DSUNDDI -DINSTANCES=1 -DSOLARIS2=10 -DIPFILTER_LOG -DIPFILTER_SYNC -c ../../ip_fil_solaris.c -o sparcv7/ip_fil.o echo sparcv7/ip_fil.o sparcv7/ip_fil.o gcc -I../.. -DIPF_DEFAULT_PASS=FR_BLOCK -DIPFILTER_LKM -I../../../pfil -D_KERNEL -DSUNDDI -DINSTANCES=1 -DSOLARIS2=10 -DIPFILTER_LOG -DIPFILTER_SYNC -c ../../fil.c -o sparcv7/fil.o echo sparcv7/fil.o sparcv7/fil.o gcc -I../.. -DIPFILTER_LKM -I../../../pfil -D_KERNEL -DSUNDDI -DINSTANCES=1 -DSOLARIS2=10 -DIPFILTER_LOG -DIPFILTER_SYNC -c ../../solaris.c -o sparcv7/solaris.o ./../solaris.c: In function 'ipf_hk_v4_in': ./../solaris.c:804: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_hk_v4_out': ./../solaris.c:836: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_hk_v4_nic': ./../solaris.c:868: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_hk_v6_in': ./../solaris.c:903: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_hk_v6_out': ./../solaris.c:934: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_hk_v6_nic': ./../solaris.c:965: error: 'netstack_t' has no member named 'netstack_ipf' ./../solaris.c: In function 'ipf_stack_init': ./../solaris.c:1036: error: 'NS_IPF' undeclared (first use in this function) ./../solaris.c:1036: error: (Each undeclared identifier is reported only once ./../solaris.c:1036: error: for each function it appears in.) ./../solaris.c: In function 'ipf_stack_fini': ./../solaris.c:1044: error: 'NS_IPF' undeclared (first use in this function) ./../solaris.c: In function 'ipf_attach_hooks': ./../solaris.c:1052: warning: assignment makes pointer from integer without a cast ./../solaris.c:1053: warning: assignment makes pointer from integer without a cast ./../solaris.c:1055:59: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1055: error: 'HOOK_INIT' undeclared (first use in this function) ./../solaris.c:1060:62: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1065:64: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1070:59: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1075:62: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1080:64: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1162:69: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c: In function 'ipf_attach_loopback': ./../solaris.c:1162: error: 'HOOK_INIT' undeclared (first use in this function) ./../solaris.c:1167:72: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1172:69: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given ./../solaris.c:1177:72: error: macro "HOOK_INIT" requires 4 arguments, but only 3 given *** Error code 1 make: Fatal error: Command failed for target `sparcv7/solaris.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: > > 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' > > > > Another "cvs update" should fix this. > > Darren >
