Skip to contentSkip to conversation

Compiling new iptables after kernel patch (compilation errors)

DISCUSSION Luke Deryckx 1 participant 1 message Apr 2, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Absolutely sure. :)

It¹s actually /usr/src/linux-2.4.22 for me but I also have a sym link at /usr/src/linux

I checked many times, tried specifying on the command line, and even tried hard coding it into the Makefile.

I think I might try starting from scratch with a different kernel. I did this same process on another linux distro machine with kernel 2.4.25 and iptables 1.2.7a and it worked flawlessly.

From what I¹ve seen of the IP_PPTP_CONNTRACK patch on the other machine, it works very nicely by the way. It was nice to be able to VPN in with two sessions to the same office from behind the same NAT ­ a definite must for any publicly used NATed network.

Thanks for the help

Luke

Quoted 46 lines · Mark E. Donaldson

Are you using "make KERNEL_DIR=/usr/src/linux" ?

From: [email protected] [mailto:[email protected]] On Behalf Of Luke Deryckx
Sent: Wednesday, March 31, 2004 2:58 PM
To: [email protected]
Subject: Compiling new iptables after kernel patch (compilation errors)

I¹ve patched my kernel (2.4.22) using the ip_conntrack_pptp patch in the latest patch-o-matic which I downloaded from the netfilter.org website. Everything went very smoothly patching, building installing and booting my kernel. However when I try to compile (or re-compile) any version of iptables so that it will work with my new kernel the make fails almost immediately yielding the a few different errors.

If I attempt to compile a fresh version of iptables 1.2.6a which is what I had been runing on before I get:

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

make: *** No rule to make target `extensions/libipt_dscp.o', needed by

`extensions/libext.a'. Stop.

If I try any other version it seems (I¹ve tried 1.2.7a and 1.2.9) I get:

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

make: *** No rule to make target `extensions/libipt_dscp.o', needed by

`extensions/libext.a'. Stop.

Or

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

make: *** No rule to make target `extensions/libip6t_mark.c', needed by

`extensions/libip6t_mark.d'. Stop.

Depending on if I¹ve fooled around with the Make file at all (which I did to try to overcome these errors)

I¹m using a debian based linux called Pebble (www.nycwireless.org/pebble) with the 2.4.22 kernel (which I have recompiled and reinstalled).

I¹ve tried compiling with and without the NO_SHARED_LIBS value set in Makefile (changing this seems to change the error, but there is still and error) and I¹ve also made extra sure that I have the correct KERNEL_DIR set (/usr/src/linux-2.4.22 in my case).

Any advice would be most appreciated.

Thanks

Luke Deryckx