building iptables with linux-2.4.20 fails due to headers in wrongplaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have iptables-1.2.8.

Doing a "make" (with BSD make and with GNU make) returns problems like:

$ time make BINDIR=/usr/bin LIBDIR=/usr/lib  MANDIR=/usr/man
KERNEL_DIR=/tmp/pkgsrc/misc/linux-kernel/work.k3/linux-2.4.20/
Making dependencies: please wait...
Something wrong... deleting dependencies.
make: ***
[/tmp/pkgsrc/misc/linux-kernel/work.k3/linux-2.4.20/include/net/if.h]
Error 1

real    0m9.562s
user    0m7.720s
sys     0m2.360s


So I manually copied include/linux/if.h to include/net/if.h (in my
kernel source) and then:

Making dependencies: please wait...
Something wrong... deleting dependencies.
make: ***
[/tmp/pkgsrc/misc/linux-kernel/work.k3/linux-2.4.20/include/net/ethernet.h]
Error 1
*** Error code 2

I do have that ethernet.h file at include/asm-cris/ethernet.h (my system
is i386).

I pointed the KERNEL_DIR to the linux-2.4.20 directory.

I did this with a fresh unextract of kernel sources and also did with
kernel sources after a build. The INSTALL document and FAQ doesn't have
any hints about this.

Any ideas?

(By the way, iptables-1.2.8 completely built on a different machine when
KERNEL_DIR was /usr/src/linux and that linux was very old 2.2.14. Maybe
it should check to make sure kernel source is new enough.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux