Created attachment 431702 [details]
Description of problem:
rpm build fails when trying to build kernel from the source rpm.
Version-Release number of selected component (if applicable):
OS: RHEL 6.0 Beta 2.
SRC RPM: kernel-2.6.32-37.el6.src.rpm
When building kernel source rpm.
Steps to Reproduce:
1. Install the kernel source rpm on RHEL 6.0 Beta 2
#rpm -ivh kernel-2.6.32-37.el6.src.rpm
2. Start rpm build
#rpmbuild -ba kernel.spec 2>&1 | tee build.log
1. rpmbuild fails with following errors:
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: *** [crypto/signature/ksign-publickey.o] Error 1
make: *** [crypto/signature] Error 2
make: *** [crypto] Error 2
rpmbuild should succeed with rpms created in the RPMS directory
Attached is the full build log.
*** This bug has been marked as a duplicate of bug 613568 ***