LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make pending-patches w/ iptables-1.2.6a error (https://www.linuxquestions.org/questions/linux-newbie-8/make-pending-patches-w-iptables-1-2-6a-error-26873/)

mrtwice 07-30-2002 10:37 PM

make pending-patches w/ iptables-1.2.6a error
 
Slackware 8.0 2.2.19

I was reading the IP-masquerade-HOWTO and did the following:

downloaded kernel 2.4.18 and put /usr/src/

mv linux/ linux-2.2.19
tar xvfzp kernel-2.4-18....
mv linux/ linux-2.4.18/
ln -s linux linux-2.4.18/

downloaded iptables-1.2.6a to /usr/src/archive and unzipped

cd iptables-1.2.6a

this is what the howto said to do:

make pending-patches KERNEL_DIR=/usr/src/linux

but this is what I get after running the above command:

"Making dependencies: please wait...
Something wrong...deleting dependencies.
make: *** [/usr/src/linux/include/asm/socket.h] Error 1"

Now, the howto says you might get this error if you append a / to the end of the above command, like this "make pending.../src/linux/", but I made sure I did not do this.

Please give me some guidance here... Thank you.

Randy

neo77777 07-30-2002 11:50 PM

Did you compile new kernel?

mrtwice 07-31-2002 08:29 AM

Not yet, the howto said to apply the patches first. Here is an what it says:

Next, it is highly recommended that you apply any appropriate or optional patches to the kernel source code BEFORE you compile the kernel. As of 2.4.4, you can apply the IPTABLES patches to enable special protocol support for programs like IRC, FTP, etc.
Ultimately, IP Masq does not require any specific patching in order for the system to work for NAT-friendly network applications. Please refer to Section 2.6 for URLs and the IP Masquerade Resources for up-to-date information and patch URLs.

Applying the IPTABLES kernel patches

Download the iptables package from the Section 2.6 and put it into a directory, say /usr/src/archive/netfilter.
Next, go into this new netfilter directory and uncompress the iptables archive with the command:

tar xyvf iptables-1.2.x.tar.bz2

Now, go into the new iptables-1.2.x directory and run the command
make pending-patches KERNEL_DIR=/usr/src/kernel/linux
NOTE: this assumes that your 2.4.x kernel sources are in the
/usr/src/kernel/linux directory.
NOTE #2: If you append a "/" to the end of the command line, you
will get an error stating:
"make: *** [/usr/src/kernel/linux/include/asm/ socket.h] Error 1".
Remove the trailing "/" and try again.

it then gives the dialogue you should see, but I just get the error message.

mrtwice 07-31-2002 09:47 AM

I went ahead and did:

make menuconfig

on the kernel source and then just exited out of it saving configuration options. I then went back to my iptables directory and issued

make pending-patches KERNEL_DIR=<<location of kernel>>

and it worked!!

Anyone know why??


All times are GMT -5. The time now is 05:09 PM.