Kernel Recompile Problems
Hey,Im trying to add support for transparent proxying on my redhat 9 (2.4.20-31.9
) box but having some problems.
This is what i've done so far:
cd /usr/src/linux-2.4.20-31.9
vi Makefile (changed the release number info)
make mrproper
make xconfig
Chose the things I need for transparent proxy support:
= Under General Setup
- Networking support
- Sysctl support
= Under Networking Options
- Network packet filtering
- TCP/IP networking
= Under Networking Options -> IP: Netfilter Configuration
- Connection tracking
- IP tables support
- Full NAT
- REDIRECT target support
= Under File Systems
- /proc filesystem support
Saved.
make dep
make clean
make bzImage
make modules
(the tutorial I am using http://www.digitalhermit.com/linux/K...ild-HOWTO.html says this should take an hour or so, but it does it in around 5 seconds showing the following:
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-31.9'
make[1]: Circular /usr/src/linux-2.4.20-31.9/include/asm/smplock.h <- /usr/src/linux-2.4.20-31.9/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-31.9/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr/src/linux-2.4.20-31.9/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-31.9'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-31.9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-31.9/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-31.9/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-31.9/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-31.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-31.9/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-31.9/drivers'
make -C addon modules
make[2]: Entering directory `/usr/src/linux-2.4.20-31.9/drivers/addon'
make[2]: Nothing to be done for `modules'.
and continues like this.
I did try to continue with the tutorial but the system wouldnt boot the kernel. How do I make it work?
Any help would be greatly appreciated.