iptables compile error

Dan Nicholson dbn.lists at gmail.com
Mon Jan 7 07:16:47 PST 2008

On Jan 7, 2008 4:09 AM, S. Martinez <at2marty at gmail.com> wrote:
> I am having problems compiling iptables.
> First of all, I am using a new install of LFS 6.3 via the Live CD.  I am
> working on two different computers and having the same issue on both.  I
> did do the automated jhalfs build on both (for LFS), and have tried to
> retrace to see if there might be an issue with that (the install(s) went
> fine with the exception of the kernel which I did manually).
> The version of BLFS that I am using is 6.2.0.
> The problem that I am getting is as follows.  I entered the commands as
> stated in the book, and get the following two errors when compiling.
> Unable to resolve dependency on linux/netfilter_ipv4/ip_conntrack.h  Try
> 'make clean'
> Unable to resolve dependency on linux/netfilter_ipv4/ip_nat_rule.h  Try
> 'make clean'

Yeah, those headers got removed in the 2.6.22 series.

> My first thought was maybe there was a conflict because the
> KERN_DIR=/usr part of the command points to the sanitized headers in
> /usr rather than the kernel source headers from my running kernel, so I
> changed that parameter to KERNEL_DIR=/usr/src/linux- and still
> got the same error.

Try `make KERNEL_DIR=.' to use the headers shipped in the tarball. I
used that last time I built iptables and it seemed to come out


More information about the blfs-support mailing list