I just set up my kernel with the koutput option (config-kernel --output-dir /var/tmp/kernel-output) and began updating my extra kernel modules. The net-wireless/ndiswrapper-0.10 ebuild gives me this error: You don't seem to have sources for your kernel; install them in /usr/src, link //usr/src/linux to it and try again.
I show the same error with kernel 2.6.8-gentoo-r3. I looekd at the make file for ndiswrapper, and it seems to be looking for some kernel files in the wrong places (probably these files got moved) such as /usr/src/linux/includes/version.h I am using genkernel, it's possible this is the culprit. Running a 'make && make modules && make modules_install' to see if that helps
ok, I have confirmed - the issue is if you use genkernel. As a work around until there is a fix for this, build your kernel once by hand and ndiswrapper will build fine.
It's not just genkernel. By using the new config-kernel tool to specify an alternate build output, external kernel modules cannot find the objects they need to link to. Apparently genkernel now uses this tool. http://packages.gentoo.org/ebuilds/?config-kernel-0.3.3
Created attachment 40277 [details, diff] Fix for koutput enabled kernel It let build ndiswrapper if you're using koutput, it doesn't check anything, so a better fix is needed.
Created attachment 40278 [details, diff] A better (=working ;-) ) fix This fix should work better ;)
koutput is depreciated and no longer used maintained. This is because of the build system fixes that the kernel developers commited to the 2.6.6 kernel. As as result, it is no longer supported by Gentoo Mobile team. Below is the post to gentoo-dev mailing list by the creator of the koutput system. Hey all, Been busy with lots of other things, and dreading sending this anyway, but I wanted to clear things up Re: the koutput/kbuild stuff that I'd worked on to fix some problems previously related to 2.6 kernel build issues. Unfortunately, the fix that was 95% implemented, and had the beginnings of code in the tree got ham-strung by a combination of kernel stuff changing under my/our feet, and Real Life (tm) things coming in at just the wrong time. As a result, the kmod.eclass, and config-kernel have several problems, and are only 1/2 implemented anyway. Sooo, don't use kmod.eclass. Just don't. config-kernel i will be package.masking as well soon. I know there are a few ebuilds out there that currently use kmod.eclass for a few things. I'll be contacting those maintainers over the next few days to address things with them, and get them sorted out with how to get things working with 2.6.6 and newer kernels. If you get any bugs from people complaining about such and such ebuild not working with koutput, assing or CC me, and i'll deal with it. Thanks. Sorry for any confusion folks. -pete