How did it know? :)
# uname -a
Linux wap16.jumbuck.com 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux
Red Hat Enterprise Linux ES release 3 (Taroon)
# /sbin/insmod ipfilter
Using /lib/modules/2.4.21-4.ELsmp/kernel/net/ipv4/ipfilter.o
/lib/modules/2.4.21-4.ELsmp/kernel/net/ipv4/ipfilter.o: unresolved symbol ip_route_output
/lib/modules/2.4.21-4.ELsmp/kernel/net/ipv4/ipfilter.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.
I used this source tar ball. http://coombs.anu.edu.au/~avalon/ip_fil4.1nextl.tar.gz
and only changed this in Makefile, LINUXKERNEL=/usr/src/linux-2.4
With the latest release it fails to compile
http://coombs.anu.edu.au/~avalon/ip_fil4.1.2.tar.gz
# make linux
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
(cd Linux; make build LINUX=`uname -r | awk -F. ' { for(i=0;i<NF;i++){printf("%02d",$(i+1));}}'` TOP=.. "DEBUG=-g" "CC=cc" 'CFLAGS=-I$(TOP) -D_BSD_SOURCE ' "IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS" "SOLARIS2=" "DEBUG=-g" "DCPU=`uname -m`" "LIBBPF=" "CPUDIR=`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m`" "IPFBPF=" 'STATETOP_CFLAGS=' "BPFILTER=" 'STATETOP_INC=' 'STATETOP_LIB=' "BITS=" "OBJ=." "LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN" "COMPIPF=" 'SYNC=' 'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' "IPFLKM=-DIPFILTER_LKM" OBJ=`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m` LINUXKERNEL=/usr/src/linux-2.4; cd ..)
make[1]: Entering directory `/home/admin/ipfilter/ip_fil4.1.2/Linux'
cc -I. -ILinux-2.4.21-4.ELsmp-i686 -g -I.. -D_BSD_SOURCE -D_BSD_SOURCE=1 -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_LOG -c ../tools/ipf.c -o Linux-2.4.21-4.ELsmp-i686/ipf.o
In file included from ../netinet/ip_compat.h:1360,
from ../ipf.h:69,
from ../tools/ipf.c:15:
/usr/include/netinet/ip6.h:52: redefinition of `struct ip6_ext'
make[1]: *** [Linux-2.4.21-4.ELsmp-i686/ipf.o] Error 1
make[1]: Leaving directory `/home/admin/ipfilter/ip_fil4.1.2/Linux'
#
If any one can help me out that would be great.
Cheers, Michael
