Tuesday, January 14, 2014

crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory

Seeing the below error when building 2.6.32-279 kernel from Redhat?

crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory
crypto/signature/ksign-publickey.c: In function 'ksign_init':
crypto/signature/ksign-publickey.c:10: error: 'ksign_def_public_key' undeclared (first use in this function)
crypto/signature/ksign-publickey.c:10: error: (Each undeclared identifier is reported only once
crypto/signature/ksign-publickey.c:10: error: for each function it appears in.)
crypto/signature/ksign-publickey.c:11: error: 'ksign_def_public_key_size' undeclared (first use in this function)
make[2]: *** [crypto/signature/ksign-publickey.o] Error 1
make[1]: *** [crypto/signature] Error 2
make: *** [crypto] Error 2


Then try this:

make menuconfig

Select "Enable loadable module support"
Disable "Module signature verification (EXPERIMENTAL)"

Come back to main menu

Select "Cryptographic API"
Scroll down and Disable "In-kernel signature checker (EXPERIMENTAL)"

Save and Exit

Now build your kernel with the modified .config file

No comments:

Post a Comment