When trying to emerge openswan-2.3.1 immediately fails, even though the /usr/src/linux symlink does exist and points to the running kernel: Reproducible: Always Steps to Reproduce: 1. emerge openswan Actual Results: * Please verify that your /usr/src/linux symlink is pointing * to your current kernel sources, and that you have a running kernel !!! ERROR: net-misc/openswan-2.3.1 failed. !!! Function check_version_h, Line 32, Exitcode 0 !!! /usr/src/linux symlink not setup! !!! If you need support, post the topmost build error, NOT this status message.
You need a *configured* kernel. The error message is pretty misleading and needs fixing in all openswan ebuilds.
I found the problem: the ebuild assumes that you do not have a seperate kernel object directory. It is looking for version.h in /usr/src/linux/include/linux when instead it is located in (in my case) /var/tmp/kernel-output/2.6.13/include/linux/.
I fixed the problem with running a "genkernel bzImage" in a second window - that creates the necessary "version.h" file.
i'll update the message (on all openswan ebuilds) when i upload openswan-2.4.2
updated message in ebuilds for openswan 2.x.