IPTables 1.3.0 on RaQ2
When I tried to compile iptables 1.3.0 on a MIPS based machine (Cobalt RaQ2), I get the following error.
# make BINDIR="/usr/bin" LIBDIR="/usr/lib" MANDIR="/usr/man" Making dependencies: please wait... Something wrong... deleting dependencies. make: *** [cpu-feature-overrides.h] Error 1
Any suggestions
Quoted 2 lines · Jim Gifford
When I tried to compile iptables 1.3.0 on a MIPS based machine (Cobalt RaQ2), I get the following error.
without some information on what distribution you are using, which kernel source version or kernel headers, ... you will certainly not receive any answer :(
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
Quoted 13 lines · Harald Welte
Quoted 3 lines · Jim Gifford
When I tried to compile iptables 1.3.0 on a MIPS based machine (Cobalt RaQ2), I get the following error.
without some information on what distribution you are using, which kernel source version or kernel headers, ... you will certainly not receive any answer :(
I'm using the straight kernel sources, with the patches from linux-mips.org for 2.6.9. I'm not using any distro, I built everything from the source codes. The particular MIPS processor I'm using doesn't have any cpu-feature-overrides.h file.
I solved the issue, it does happen with 1.3.1 also, the problem is the headers, even after fixed the headers it still bombed. Here is the message I posted on linux-mips list.
I found the culprit, but don't know what the proper fix is.
File - What to remove or comment out /usr/src/linux/include/asm/cpu-features.h - #include <cpu-feature-overrides.h> /usr/src/linux/include/asm/addrspace.h - #include <spaces.h>
But it still fails, because it looks at the headers in /usr/include and the ones is /usr/src/linux/include, which is what the problem is. Namely socket.h, it tries to include both versions.
What I noticed is some of the mips architectures includes have these files and some do not.
A workaround for those who use the linux-libc-headers to build iptables with the following commands, but I would still comment out those files to prevent other build issues later
make KERNEL_DIR=/usr
But I'm not sure of the stability and the functionality.
Signature · 3 lines
---- Jim Gifford [email protected]