It seems to need the 2.5 kernel sources. But it doesn't have a dependency for it. And it seems to search it also in the 2.4.22-gentoo-r2 sources where it also won't find it. Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" emerge -qD ipsec-tools 2. 3. Actual Results: checking for flex... (cached) flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking net/pfkeyv2.h usability... no checking net/pfkeyv2.h presence... no checking for net/pfkeyv2.h... no checking netinet/ipsec.h usability... no checking netinet/ipsec.h presence... no checking for netinet/ipsec.h... no checking for /lib/modules/2.4.22-gentoo-r2/build/include/linux/pfkeyv2.h... no checking for /usr/src/devel-2.5/devel/include/linux/pfkeyv2.h... no configure: error: Unable to find linux-2.5 kernel headers !!! ERROR: net-firewall/ipsec-tools-0.2.2 failed. !!! Function src_compile, Line 24, Exitcode 1 !!! (no error message)
It needs 2.6, not 2.5 sources; I've added a fatal warning to the ebuild now A dependency wouldn't work as there are many kernel trees which provide 2.6 sources, and it is up to the user to select one, not for Portage. Thanks.