Problems compiling netfilter modules from 2.6.21.5 kernel
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problems compiling netfilter modules from 2.6.21.5 kernel
I'm attempting to compile the netfilter modules for the 2.6.21.5 kernel so that I can utilize iptables on my system. It currently runs 2.6.21.5 just fine.
I went into 'make menuconfig' and selected just about everything under the netfilter menus to be compiled as modules (probably overkill), but when I go to compile the modules, using 'make modules', I get this output:
when building a 2.6.xx kernel such as the one you want to build you don't use make modules...
make menuconf (set your preferences)
make
make modules_install
no make modules are needed anymore as they are part of make which takes care of all of the following commands - make dep, make clean, make bzIamge and make modules
I tried your suggestion- and for the most-part it seemed to work. That is, there were no compile-time errors and the modules actually seem to be in the kernel module repository under /lib/modules/2.6.21.5/...
However, when I go to insert the module, I get this:
> modprobe ip_tables
FATAL: Error inserting ip_tables (/lib/modules/2.6.21.5/kernel/net/ipv4/netfilter/ip_tables.ko): Unknown symbol in module, or unknown parameter (see dmesg)
So I look at dmesg, and find:
ip_tables: Unknown symbol nf_register_sockopt
ip_tables: Unknown symbol nf_unregister_sockopt
you probably need to copy over System.map & .config and /usr/src/linux/arch/i386/boot/bzImage to /boot then update /etc/lilo.conf & run /sbin/lilo to reflect the new kernel...
in other words i suggest if you are going to rebuild kernel modules it will only work if you install the whole kernel...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.