Gentoo - Emerging IPTables - kernel identification error
Can anyone help me get past this?
bongo root # emerge iptables
Calculating dependencies ...done!
>>> emerge (1 of 1) net-firewall/iptables-1.2.9 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/iptables-1.2.9.tar.bz2
--23:43:54-- http://gentoo.oregonstate.edu/distfiles/iptables-1.2.9.tar.bz2
=> `/usr/portage/distfiles/iptables-1.2.9.tar.bz2'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 186,808 [application/x-tar]
100%[================================================>] 186,808 1.12M/s
23:43:55 (1.12 MB/s) - `/usr/portage/distfiles/iptables-1.2.9.tar.bz2' saved [186808/186808]
>>> md5 src_uri ;-) iptables-1.2.9.tar.bz2
>>> Unpacking source...
>>> Unpacking iptables-1.2.9.tar.bz2 to /var/tmp/portage/iptables-1.2.9/work
* Applying various patches (bugfixes/updates)...
* 01_all_grsecurity.patch.bz2... [ ok ]
* 02_all_imq.patch.bz2... [ ok ]
* 04_all_install_ipv6_apps.patch.bz2... [ ok ]
* 05_all_install_all_dev_files.patch.bz2... [ ok ]
* 06_all_l7.patch.bz2... [ ok ]
* Done with patching
>>> Source unpacked.
*
* Could not determine your kernel version.
* Make sure that you have /usr/src/linux symlink.
* And that said kernel has been configured.
* You can also simply run the following command
* in the kernel referenced by /usr/src/linux:
* make include/linux/version.h
*
!!! ERROR: net-firewall/iptables-1.2.9 failed.
!!! Function check_KV, Line 256, Exitcode 0
!!! (no error message)
2 Replies
"One work-around is to comment out the check_KV function in the iptables build."
I believe this has already been logged as a bug with the Gentoo folks. /proc/version would be a lot easier, but since it's Gentoo I suspect they figure the kernel sources will always be there…
-Chris