[LU-3482] lustre kernel source rpm file missing Created: 18/Jun/13  Updated: 26/Jun/13  Resolved: 26/Jun/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ron Croonenberg Assignee: Keith Mannthey (Inactive)
Resolution: Not a Bug Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 8732

 Description   

seems like a header file from the lustre kernel is missing, see below:

CC crypto/signature/ksign-publickey.o
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



 Comments   
Comment by Keith Mannthey (Inactive) [ 18/Jun/13 ]

Can you confirm what Kernel and Lustre version you are using?

Comment by Ron Croonenberg [ 20/Jun/13 ]

That would be the 2.4 version and the kernel that "came with it"

Comment by Keith Mannthey (Inactive) [ 20/Jun/13 ]

I would agree the source rpm should be able to build. Are you using a buildrpm command with the src rpm or installing it and building it more directly?

If you need to get this working in the nearer term you can get the source code from the git b2_4 branch. https://wiki.hpdd.intel.com/display/PUB/Walk-thru-+Build+Lustre+MASTER+on+RHEL+6.3+from+Whamcloud+git would be rough guide for this process, you would need to checkout b2_4 GA commit rather than master.

Comment by Ron Croonenberg [ 20/Jun/13 ]

I extract the files from the rpm and try to build from there.

Comment by Ron Croonenberg [ 24/Jun/13 ]

kernel-2.6.32-358.6.2.el6_lustre.g230b174.src.rpm

Comment by Keith Mannthey (Inactive) [ 26/Jun/13 ]

So this is a know Redhat issue:

https://bugzilla.redhat.com/show_bug.cgi?id=613568
The last two entries:

 Ashish 2012-09-13 16:25:03 EDT

Following steps can be done to by pass this error :

run make menuconfig.
1) Select "Enable loadable module support", then "Module signature verification (EXPERIMENTAL)". Disable it.
2) Then go back to the main menu, select "Cryptographic API" then "In-kernel signature checker (EXPERIMENTAL)" and disable that one too.
Then go back again, save your config and make your kernel. At least, it will pass this phase successfully.

Comment 6 Jarod Wilson 2013-03-20 10:20:26 EDT

We don't support custom rebuilds. Changing signmodules to 0 constitutes a custom rebuild. Closing NOTABUG.

I was able to build from the src.rpm using:

rpm -i kernel-2.6.32-358.6.2.el6_lustre.g230b174.src.rpm 
rpmbuild -bb --target=`uname -m` --with baseonly <path_to>/rpmbuild/SPECS/kernel.spec
Comment by Keith Mannthey (Inactive) [ 26/Jun/13 ]

I hope you are able to make this info work for your workflow but I don't think there is much we can do about this issue.

Generated at Sat Feb 10 01:34:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.