Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105286 - openswan-2.3.1 ebuild can not locate kernel sources
Summary: openswan-2.3.1 ebuild can not locate kernel sources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 11:32 UTC by Justus Ranvier
Modified: 2005-11-14 19:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justus Ranvier 2005-09-08 11:32:56 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 11:39:42 UTC
You need a *configured* kernel. The error message is pretty misleading and needs
fixing in all openswan ebuilds.
Comment 2 Justus Ranvier 2005-09-08 11:52:41 UTC
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/.

Comment 3 Thomas Bullinger 2005-09-11 15:28:43 UTC
I fixed the problem with running a "genkernel bzImage" in a second window - that
creates the necessary "version.h" file.
Comment 4 Jay Pfeifer (RETIRED) gentoo-dev 2005-11-14 17:49:13 UTC
i'll update the message (on all openswan ebuilds) when i upload openswan-2.4.2
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2005-11-14 19:17:09 UTC
updated message in ebuilds for openswan 2.x.