Re: [Ocf-linux-users] Patching openssl-0.9.8n in gentoo
Brought to you by:
david-m
From: David M. <dav...@mc...> - 2010-08-10 03:32:40
|
Jivin Alessandro De Carli lays it down ... > I'm having a hard time patching openssl for cryptodev support on > gentoo. I patched my kernel (2.6.34) and reinstalled it, all ocf > modules + cryptodev is showing up. That just worked like a charm, but > now I want cryptodev support in openssl for openvpn/openssh etc... > I tried everything, when I'm patching with the openssl-0.9.8n.patch > provided in the latest package, the configure script runs only 'till: > [code] > alix openssl-0.9.8n # ./config --with-cryptodev > Operating system: i586-whatever-linux2 > Configuring for linux-elf > Configuring for linux-elf > no-camellia [default] OPENSSL_NO_CAMELLIA (skip dir) > no-capieng [default] OPENSSL_NO_CAPIENG (skip dir) > no-cms [default] OPENSSL_NO_CMS (skip dir) > no-gmp [default] OPENSSL_NO_GMP (skip dir) > no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir) > no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 > no-mdc2 [default] OPENSSL_NO_MDC2 (skip dir) > no-montasm [default] > no-rc5 [default] OPENSSL_NO_RC5 (skip dir) > no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) > no-seed [default] OPENSSL_NO_SEED (skip dir) > no-shared [default] > no-zlib [default] > no-zlib-dynamic [default] > IsMK1MF=0 > CC =gcc > CFLAG =-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN > -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DL_ENDIAN -DTERMIO -O3 > -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS > -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM > EX_LIBS =-ldl > CPUID_OBJ =x86cpuid-elf.o > BN_ASM =bn86-elf.o co86-elf.o > DES_ENC =dx86-elf.o yx86-elf.o > AES_ASM_OBJ =ax86-elf.o > BF_ENC =bx86-elf.o > CAST_ENC =cx86-elf.o > RC4_ENC =rx86-elf.o rc4_skey.o > RC5_ENC =r586-elf.o > MD5_OBJ_ASM =mx86-elf.o > SHA1_OBJ_ASM =sx86-elf.o s512sse2-elf.o > RMD160_OBJ_ASM=rm86-elf.o > PROCESSOR = > RANLIB =/usr/bin/ranlib > ARFLAGS = > PERL =/usr/bin/perl > THIRTY_TWO_BIT mode > DES_PTR used > DES_RISC1 used > DES_UNROLL used > BN_LLONG mode > RC4_INDEX mode > RC4_CHUNK is undefined > make: *** No rule to make target `links'. Stop. > [/code] > Then if I try a make it stops because no compile is defined in the > ./build/Makefile (the CC= variable is blank). To resolve this I > thought I simply replace it with CC=gcc. This worked great, everything > compiled, but no file is found in ./build/install/lib/engines and when > I start "./build/bin/openssl engine" cryptodev does not show up. > I don't now what to do I even tried to patch the files myself with vim > but even then no cryptodev engine has shown up... > I forgot to mention that I'm using an ALIX board and running in > i486... (geode_aes is enabled) Ok, I think the problem is that I accidentally botched the patch. Check if you have a file called "makefile" with a lower case 'm' at the top level after patching. If you do, change it's name to makefile-uclinuxdsit Thsi makefile is not intended for normal openssl builds, Hope thats helps, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |