From: Vikas K. <ka...@co...> - 2004-03-12 20:01:57
|
This is happening probably becuase the file netfilter_ipv4.h header file has changed over kernl versions. If you notice in the make file below I include -I/lib/modules/`uname-r`/build/include/ the header files from the source of the currently running kernel. So make sure you are booted on the kernel version you want to compile for. If that does not work, make /usr/include/linux a symlink to /usr/include/linux-2.4.18/include/linux -vikas PS: Please subscribe to the mailing list on http://aslib.sourceforege.net and post the questions there, so that other people who know might answer. On Fri, 12 Mar 2004, Mukund Gopalan wrote: ->Hi, -> After loading 2.4.18 we got the following error when we tried to make ->route_check. -> ->BTW we have 2.4.18 along with 2.4.18-14, 2.4.18-3 and 2.4.20-8 in the ->system. Will the fact that there are multiple versions running, affect the ->working of the library? -> ->-Mukund -> -> ->gcc -O3 -Wall -DMODULE -D__KERNEL__ -DLINUX -I/lib/modules/`uname ->-r`/build/include/ -c module_main.c -o module_main.o ->module_main.c: In function `init_module': ->module_main.c:44: invalid use of undefined type `struct nf_hook_ops' ->module_main.c:45: invalid use of undefined type `struct nf_hook_ops' ->module_main.c:46: invalid use of undefined type `struct nf_hook_ops' ->module_main.c:47: invalid use of undefined type `struct nf_hook_ops' ->module_main.c:48: invalid use of undefined type `struct nf_hook_ops' ->module_main.c:51: warning: implicit declaration of function ->`nf_register_hook' ->module_main.c: In function `cleanup_module': ->module_main.c:110: warning: implicit declaration of function ->`nf_unregister_hook' ->module_main.c: At top level: ->module_main.c:24: storage size of `input_filter' isn't known ->module_main.c:25: storage size of `output_filter' isn't known ->make: *** [module_main.o] Error 1 -> -> -> -> -> -> -> -> -> -> -- |