Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-30-2002, 10:37 PM   #1
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
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.

Old 07-30-2002, 11:50 PM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Did you compile new kernel?
Old 07-31-2002, 08:29 AM   #3
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
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.
Old 07-31-2002, 09:47 AM   #4
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
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??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
FC 2 - Any Patches for agpgart And KDSKBENT Error Messages sandgroper Fedora 5 07-27-2004 09:06 PM
pending rstmn957 Red Hat 1 09-11-2003 12:36 AM
make pending patches KERNEL_DIR cottonmouth Linux - Software 2 11-20-2002 08:48 AM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration