All right, this is all my fault. Took me a few hours to figure out :(
crypto/signature/key.h is generated from public keys using gpg
which probably failed (because of lack of entropy or some other
reason I still need to figure out).
Now, you can extract key.h from the combined patch of an older version,
recreate it yourself (grep kernel.spec for gpg, it's pretty
straightforward),
or just use the attached patch.
I'll be doing a kernel release in a few days, will take a closer look
what's going on.
Sorry for the trouble.
On 04/01/2014 11:22 AM, Kir Kolyshkin wrote:
I will take a look, perhaps it's a problem generating the combined patch.
Edward,
Why don't use use official debian kernels (http://ftp.openvz.org/debian/)?
On 04/01/2014 10:52 AM, CoolCold wrote:
Confirming build failure of this kernel version on Debian Squeeze amd64
On Tue, Apr 1, 2014 at 7:54 PM, Edward Konetzko <konet...@gmail.com
<mailto:konet...@gmail.com>> wrote:
Trying to build the kernel from source for squeeze hosts and it
fails on
LD fs/dlm/built-in.o
LD fs/ecryptfs/built-in.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[3]: *** [crypto/signature/ksign-publickey.o] Error 1
make[2]: *** [crypto/signature] Error 2
make[1]: *** [crypto] Error 2
make[1]: *** Waiting for unfinished jobs....
CC fs/exportfs/expfs.o
As these files don't exist in the default 2.6.32 kernel they seem
to be
provided by the patch OVZ provides
patching file crypto/sha512_generic.c
patching file crypto/signature/dsa.c
patching file crypto/signature/ksign.c
patching file crypto/signature/ksign-keyring.c
patching file crypto/signature/ksign-parse.c
patching file crypto/signature/ksign-publickey.c
patching file crypto/signature/local.h
patching file crypto/signature/Makefile
patching file crypto/testmgr.c
Here are the links to the files used to build.
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.tar.bz2
http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab085.20/patches/patch-042stab085.20-combined.gz
http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab085.20/configs/config-2.6.32-042stab085.20.x86_64
Anyone have ideas?
Edward
diff -uprN linux-2.6.32/crypto/signature/key.h linux-2.6.32.ovz/crypto/signature/key.h
--- linux-2.6.32/crypto/signature/key.h 1969-12-31 16:00:00.000000000 -0800
+++ linux-2.6.32.ovz/crypto/signature/key.h 2014-04-01 16:25:55.104814735 -0700
@@ -0,0 +1,111 @@
+const char ksign_def_public_key[] __initdata=
+ "\x99\x01\xa2\x04\x53\x3b\x4a\xd6\x11\x04\x00\xb7\x40\xa0\xab\xdf"
+ "\x3d\x29\xb1\x39\xda\xfc\xc0\xc0\xde\xb1\x11\x6e\xac\x3a\xfb\xc6"
+ "\x9b\x99\xb5\xe9\x8d\x7a\xe1\x77\x74\x93\x11\xd8\x16\xb9\x4f\xe0"
+ "\xa5\xf3\x1d\x6c\x90\xa9\xc0\xbd\x12\xfd\x92\x88\x41\x93\x57\xa1"
+ "\x9a\xe6\x53\x4e\xa2\x98\x89\x20\x61\x4e\x16\x76\x22\xd1\x11\x0f"
+ "\xd3\xc8\xa2\xa0\x01\x07\xc0\xff\x89\xe0\xf3\x44\x82\x62\x59\x46"
+ "\x7e\xed\x6f\xe0\x3f\xa9\xa9\x95\xaa\xb1\xd9\x21\x20\x94\xd5\xde"
+ "\x2d\x9e\x63\x5c\xea\xe5\x09\x28\x28\x52\xe4\xc7\xba\x6e\x97\x91"
+ "\x86\x91\xd9\xed\xa2\x30\xc2\xf4\x02\x39\x6b\x00\xa0\xdf\x1a\x52"
+ "\xad\x24\x9e\x88\x40\x92\xbc\x55\x98\x9e\x03\x2d\x2c\x26\xc2\x0c"
+ "\x2d\x03\xff\x41\x52\x72\xea\x0a\x73\xf2\xac\x01\x87\x49\x65\xbe"
+ "\x20\x15\x5a\xf6\x9c\x55\x98\xba\x1e\xa0\x20\xd2\xd3\x8e\x0e\x42"
+ "\x3e\x33\xd7\x20\x68\x7f\x18\xb2\x5d\x8e\x28\xc2\x26\x31\x10\xa4"
+ "\x8f\xcc\x3f\x54\xdc\xbd\x42\x02\x66\xd3\xbf\xe2\x47\xba\x9d\x27"
+ "\x25\x64\xea\x22\x68\xe0\xa7\xc9\x3a\x9e\x78\xbc\x70\xcc\xd6\xfc"
+ "\x04\xa1\xf5\x7a\x1f\x37\xd6\x8e\xb5\x73\xe8\xd1\xdd\xf1\x3c\x82"
+ "\x64\x07\xa0\xc6\x6c\x03\x88\xd2\x4d\xe2\x04\x87\x08\x7f\x77\xd9"
+ "\x10\x8b\xb8\x71\xdd\x8e\xe1\x8e\x72\x01\x41\xea\xca\x85\x53\x9c"
+ "\x65\x6a\x90\x03\xfe\x36\xd0\xa0\x90\x1a\x92\x30\xf6\x67\x9e\x27"
+ "\x9f\xb8\x41\x74\x63\x19\x03\x5f\x12\x24\x09\x37\x60\x3f\x58\xee"
+ "\xaa\x90\x29\x18\x2c\xb4\xd4\x1e\xb1\x31\x6d\xad\xaa\xbd\x08\xed"
+ "\xaa\xaf\xc7\x1d\x56\xb0\xac\xb5\x07\x41\x94\x72\xb5\xaa\xc9\x68"
+ "\x21\x6b\x4b\x4a\x29\x32\x8d\x54\x91\x4d\xdc\x17\x5c\xbf\x47\x6d"
+ "\x37\xb9\x53\x62\x84\xd4\xba\x7d\x76\xda\x42\xce\x68\xe3\x91\xd6"
+ "\xe3\xec\xe6\xe0\x4c\x64\x7c\x6e\xac\xf6\x3a\xd1\xc7\x89\x72\xdc"
+ "\x4f\xd8\xe1\xc9\xec\x82\x66\xe7\xf2\x06\x3e\xe8\xee\x5b\x2c\x2d"
+ "\x33\xf9\x70\x1e\x8d\xb4\x25\x52\x65\x64\x20\x48\x61\x74\x2c\x20"
+ "\x49\x6e\x63\x2e\x20\x28\x4b\x65\x72\x6e\x65\x6c\x20\x4d\x6f\x64"
+ "\x75\x6c\x65\x20\x47\x50\x47\x20\x6b\x65\x79\x29\x88\x62\x04\x13"
+ "\x11\x02\x00\x22\x05\x02\x53\x3b\x4a\xd6\x02\x1b\x23\x06\x0b\x09"
+ "\x08\x07\x03\x02\x06\x15\x08\x02\x09\x0a\x0b\x04\x16\x02\x03\x01"
+ "\x02\x1e\x01\x02\x17\x80\x00\x0a\x09\x10\xf5\x3e\xf1\xf4\xe7\xd1"
+ "\xea\x44\x8c\x29\x00\xa0\x9b\x40\x2a\xe9\x96\x01\x3b\xbf\x75\xe2"
+ "\xfe\x2b\xfa\x05\xfe\xe2\xcf\xbb\xa0\x43\x00\x9f\x41\xc3\x32\xa6"
+ "\x43\xc4\x94\x2e\x08\xdd\xfa\xad\xe1\xee\x03\x2f\x0e\x7b\x47\x91"
+ "\x99\x01\xa2\x04\x4b\x9f\x60\x5c\x11\x04\x00\xe8\x9d\xf7\xee\xa1"
+ "\x42\x33\x6c\x33\xfa\x4e\x08\xca\x23\xd0\xd1\x60\x16\xb1\x6a\x7f"
+ "\x61\xad\xe1\xc7\x63\x81\xe3\xc8\xfc\xac\xe9\xa3\x38\x7e\x16\x3a"
+ "\x33\x7f\xfd\x04\x10\x76\xd8\x83\x77\x8d\x37\x53\x95\x61\x1d\xaf"
+ "\x3c\xc9\xc3\x30\xff\x69\x83\xb0\x70\xa9\x44\xfb\xee\xab\x8a\x04"
+ "\xdb\x2a\xfd\xee\xe2\x89\x2c\xab\x3a\xf9\x7a\x7b\x04\xd8\x4a\x14"
+ "\x1f\x78\x4c\xc2\xf9\xf3\xc8\xe2\x7a\x0f\xde\xef\x96\xe0\x61\xb1"
+ "\xbc\x4c\xec\x08\xf4\x5a\x94\x6f\x26\x31\xf1\xea\x73\x99\xae\x34"
+ "\xd9\xb1\x23\x20\x64\x53\x03\xf2\xeb\x68\x13\x00\xa0\x9d\xe8\xbb"
+ "\x78\x16\xfd\x70\xff\x87\x95\xf5\x8e\xe0\xcd\x6c\x74\x82\x09\x57"
+ "\x2d\x04\x00\x9e\x25\x32\x03\x39\x27\xd0\x12\x11\xb9\x3a\x13\x23"
+ "\x7d\xb4\xb0\x50\x8d\x23\xfd\xf4\x00\x98\x68\x93\xa9\xa1\x06\x0d"
+ "\x6e\x2f\x3b\xca\x42\xbd\xb7\xac\xcc\xea\x26\x7e\x8e\xc2\x73\xfc"
+ "\x44\xc4\xfc\xd0\xdb\x9a\xcc\xed\xe3\x97\x47\x24\xbd\x59\xc1\x39"
+ "\x6f\xac\x8b\xf4\xd8\xd3\xfb\x57\xfb\x65\x9e\x1a\x7d\x69\x19\x2a"
+ "\xcd\x77\x87\xdd\xb1\x49\x4b\x94\x76\x71\x4c\xc5\x5d\x35\xe8\x5c"
+ "\xc7\x4d\x99\xf8\x23\x19\x4f\x77\x3e\x63\xab\xee\x02\x32\xc5\x78"
+ "\x61\x0d\x14\x6d\x13\x7a\x69\x51\xf4\xd3\x1b\xd5\x34\x17\x11\x15"
+ "\xe8\x0d\xb0\x03\xfe\x30\xf1\x34\x14\x74\xbf\x53\xef\x20\xac\x6e"
+ "\xc4\x8e\x82\xc1\x3a\x1a\x55\x65\x6a\x97\x6a\x3b\x0f\x39\x00\x53"
+ "\x15\x29\xa0\xf0\xe2\xe1\xf8\x3a\x9a\xb7\x71\xce\x8b\x13\xa9\xc1"
+ "\xfb\xb7\xa1\x13\xb8\x4f\xac\xfd\x91\xd8\x57\xa0\x02\x85\x76\x88"
+ "\xf8\x37\xc9\x79\x7f\xe9\x69\xe5\x85\x01\x7f\xe1\x83\xf4\x0b\xcc"
+ "\xcf\xf8\xc5\x20\x4a\xb5\x05\x07\x54\xd0\x1f\x64\x15\x35\xe9\xb3"
+ "\xdc\xf4\xe7\x36\x44\xe0\xc0\x68\x9c\xa4\x02\xa3\x79\xe7\xe2\xb9"
+ "\x01\xa0\x98\x0d\xc2\xf5\x3b\x4a\x08\x4a\x8e\xb3\x1b\xe9\xa4\x9e"
+ "\x85\x33\x04\xd3\x98\xb4\x44\x52\x65\x64\x20\x48\x61\x74\x20\x45"
+ "\x6e\x74\x65\x72\x70\x72\x69\x73\x65\x20\x4c\x69\x6e\x75\x78\x20"
+ "\x44\x72\x69\x76\x65\x72\x20\x55\x70\x64\x61\x74\x65\x20\x50\x72"
+ "\x6f\x67\x72\x61\x6d\x20\x3c\x73\x65\x63\x61\x6c\x65\x72\x74\x40"
+ "\x72\x65\x64\x68\x61\x74\x2e\x63\x6f\x6d\x3e\x88\x60\x04\x13\x11"
+ "\x02\x00\x20\x05\x02\x4b\xe9\x39\x1c\x02\x1b\x03\x06\x0b\x09\x08"
+ "\x07\x03\x02\x04\x15\x02\x08\x03\x04\x16\x02\x03\x01\x02\x1e\x01"
+ "\x02\x17\x80\x00\x0a\x09\x10\xd4\xa2\x6c\x9c\xcd\x09\xbe\xda\xc6"
+ "\xa6\x00\x9e\x33\x63\x02\x64\x37\xe3\x19\x36\x54\xf4\xcb\x60\xb1"
+ "\xd8\xe9\x71\x35\x7a\xb8\xd1\x00\x9e\x3f\x4d\xca\xbf\xf6\x1f\x15"
+ "\x34\x4e\x04\x5d\x62\xcd\x5c\x8a\x11\x53\xe3\x01\x1a\x99\x01\xa2"
+ "\x04\x53\x02\x3f\x6b\x11\x04\x00\x85\x8a\x16\x20\x0b\x57\x90\x6a"
+ "\x7c\x4b\x34\xfc\x3b\xa0\x9d\x99\x68\xf6\xdc\x0d\xea\xee\xad\x52"
+ "\xc7\x8a\x12\x99\x53\x09\x87\x98\x1f\xd8\xd1\xac\x72\xc3\x42\x6b"
+ "\x3d\xec\xea\x5e\x15\x58\xdf\x98\x49\x2e\x9b\x33\xe3\xc4\xe7\xb1"
+ "\xbb\x1d\xca\x93\x40\xfb\xde\x83\xf1\xb4\xa1\x02\xcb\x24\xdc\x00"
+ "\xeb\x23\x34\x42\x58\xb3\xcf\x53\x6b\xc3\x97\xc1\x91\x01\x0c\xb0"
+ "\xf8\x6f\x7d\xa4\xf6\x72\xb7\xe4\x75\x9c\x16\xb5\x4b\x00\xc7\xaf"
+ "\xa5\x2b\x59\x77\xe3\xdc\x23\x7d\x39\x30\x77\x8c\x95\xd0\x55\x53"
+ "\x22\x44\x97\x7e\x20\xdf\x23\xdb\x00\xa0\xd0\x6b\x9f\x88\xc3\xc1"
+ "\x2e\x02\xba\xdb\x68\x68\x8f\x37\x51\x0b\x9f\x99\xbb\x8f\x03\xff"
+ "\x46\x63\x58\x91\xdb\xbe\x11\xa2\x44\x14\xfd\xf9\x68\x41\xad\x8e"
+ "\xa7\xf5\xdd\x5d\x73\xa1\x45\x40\x8b\xb9\x65\x11\xdf\x0e\x0e\x5d"
+ "\x1a\x95\xea\x94\x21\x65\x8b\x71\x11\x84\x84\x7b\xfb\xe9\xdf\x9f"
+ "\x79\x64\xd3\x4b\x47\x80\x9d\x50\x5a\xdc\xa8\xa7\x7f\xb0\xfd\xdc"
+ "\xb8\x08\xb2\x70\xfd\x6c\x87\xbc\x21\x43\x63\x13\xb8\x54\x2f\x23"
+ "\xdf\xe7\xc5\xe7\x0c\x8f\x36\x52\x37\xcc\xeb\xb4\x19\xad\xdf\xe2"
+ "\x3f\x54\xfb\x29\x9e\x11\x13\xb9\x54\xd4\x9b\x8a\x47\x3f\x3f\xe5"
+ "\x75\x50\xa3\xa7\xbb\x7a\x9a\x4c\x18\xfe\x3e\x6f\x61\x89\x06\x5a"
+ "\x03\xfe\x34\x5d\x3e\x08\xf1\x63\xe9\x0a\x8a\x0b\xfe\x30\xe4\x47"
+ "\x43\x9a\xbe\x4a\xb1\x59\xda\xcd\xed\x99\x64\x57\x95\xcb\xea\xe9"
+ "\xa2\x3c\x99\x37\x76\x6d\xc6\xfc\x2e\xa5\x33\x6b\x6a\x54\x28\xa2"
+ "\xb9\x30\x0f\xbd\x1c\x07\xd2\xfa\x4f\xc4\xc9\x08\x1e\xa9\x52\x0f"
+ "\x83\xe8\x32\x4b\x6d\xac\xbe\x14\x57\x76\xba\x79\x7f\x80\x51\x95"
+ "\xd0\x56\xc3\x03\xd5\x37\x81\x96\xc1\x9e\x74\x60\x61\x8e\x0b\x6f"
+ "\x03\x6e\xa5\x3d\x04\x35\x2e\x3a\xc9\xe9\xce\x02\x5b\xfe\x17\xbb"
+ "\xea\x8a\xdf\x02\xa3\x26\x31\x22\x06\x1a\xdc\x2e\x91\x47\x24\x12"
+ "\x29\xbf\xb4\x27\x50\x61\x72\x61\x6c\x6c\x65\x6c\x73\x2c\x20\x49"
+ "\x6e\x63\x2e\x20\x28\x4b\x65\x72\x6e\x65\x6c\x20\x4d\x6f\x64\x75"
+ "\x6c\x65\x20\x47\x50\x47\x20\x6b\x65\x79\x29\x88\x62\x04\x13\x11"
+ "\x02\x00\x22\x05\x02\x53\x02\x3f\x6b\x02\x1b\x23\x06\x0b\x09\x08"
+ "\x07\x03\x02\x06\x15\x08\x02\x09\x0a\x0b\x04\x16\x02\x03\x01\x02"
+ "\x1e\x01\x02\x17\x80\x00\x0a\x09\x10\x98\x58\xa9\x71\xe4\xd5\x8e"
+ "\xba\x67\xe1\x00\xa0\xcd\x44\x72\x20\xfe\x3c\xdb\xc3\xcc\x6d\x3a"
+ "\x90\xf6\x2b\x10\x99\xbc\x9e\x14\x34\x00\x9f\x51\x4e\x2e\xd4\xca"
+ "\x3b\xfe\x98\x65\x8e\x8f\x44\x4f\xc5\x49\xf8\x60\xdd\x8c\xdd"
+ ;
+
+const int ksign_def_public_key_size = 1711;
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users