As of linux-2.6.19 the config.h header file appears to have been officially removed in favor of autoconf.h. Bestcrypt compiles fine with a simple sed: sed -ie 's:linux/config.h:linux/autoconf.h' mod/mkver.c but I'm not sure if this breaks with older kernel versions. perhaps a function needs to be added to kernel-mod.eclass which will take a list of files to fix and change from linux/config.h <-> linux/autoconf.h correctly based on kernel version?
Which version do you use? I tested bestcrypt-1.6_p10 and it compiles fine.
am trying to merge 1.6_p10 what kernel version are you running and have linked in /usr/src/linux?
http://www.linuxquestions.org/questions/showthread.php?t=506363
I use 2.6.19... Very strange!
are you using vanilla or another kernel patchset? Perhaps the patch un-removes the header?
I will take a look at this over the week-end.
The correct solution is along the lines of: #include <linux/version.h> #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) #include <linux/config.h> #endif No include is needed on recent kernels. Changing to autoconf.h will probably break in the near future.
Daniel, What about genkernel --kernel-config? It should be fixed too, right?
Oh! I messed up the config.h and .config. I still don't understand how it works for me... Will check what went wrong.
Created attachment 107363 [details, diff] bestcrypt-1.6_p10-r1.ebuild.diff Well... My configuration was the correct one... mkver should not be compiled under 2.6... Strange enough there was an explicit attempt to compile it. Another problem is that the Makefile determine the kernel version by uname... And not the one it compiles... And added no-strict-aliasing (reported to upstream). Since I don't have a working configuration, can you please check if the attached ebuild works for you?
Created attachment 107365 [details, diff] bestcrypt-1.6_p10-kernel-version.patch
Created attachment 107367 [details] bestcrypt-1.6_p10-r1.ebuild.diff Even cleaner.
works fine for me.
Thanks!