Summary: | app-crypt/bestcrypt fails to compile against >= linux-2.6.19 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brandon Low <lostlogic> |
Component: | Current packages | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 156669 | ||
Attachments: |
bestcrypt-1.6_p10-r1.ebuild.diff
bestcrypt-1.6_p10-kernel-version.patch bestcrypt-1.6_p10-r1.ebuild.diff |
Description
Brandon Low
2007-01-17 12:15:40 UTC
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? 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! |