Bug 8872

Summary: openssl is broken by meta-fsl-ppc
Product: [Build System, Metadata & Runtime] BSPs Reporter: Ross Burton <ross.burton>
Component: bsps-meta-fsl-ppcAssignee: Zhenhua Luo <zhenhua.luo>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: major    
Priority: Medium+ CC: alexandru.c.georgescu, otavio, zhenhua.luo
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: All   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2016-01-05 16:54:16 UTC
The openssl recipe in meta-fsl-ppc is breaking on the autobuilder.  For example, http://errors.yoctoproject.org/Errors/Details/25920/.

make[2]: Entering directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/openssl/1.0.1i-r0/openssl-1.0.1i/crypto/engine'
powerpc-poky-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc/build/build/tmp/sysroots/p1022ds -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM   -c -o eng_cryptodev.o eng_cryptodev.c
eng_cryptodev.c:263:4: error: 'CRYPTO_TLS10_3DES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS10_3DES_CBC_HMAC_SHA1, NID_des_ede3_cbc_hmac_sha1, 8, 24, 20},
    ^
eng_cryptodev.c:264:4: error: 'CRYPTO_TLS10_AES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS10_AES_CBC_HMAC_SHA1, NID_aes_128_cbc_hmac_sha1, 16, 16, 20},
    ^
eng_cryptodev.c:266:4: error: 'CRYPTO_TLS11_3DES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS11_3DES_CBC_HMAC_SHA1, NID_tls11_des_ede3_cbc_hmac_sha1, 8, 24, 20},
    ^
eng_cryptodev.c:267:4: error: 'CRYPTO_TLS11_AES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS11_AES_CBC_HMAC_SHA1, NID_tls11_aes_128_cbc_hmac_sha1, 16, 16, 20},
    ^
eng_cryptodev.c:269:4: error: 'CRYPTO_TLS12_3DES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS12_3DES_CBC_HMAC_SHA1, NID_tls12_des_ede3_cbc_hmac_sha1, 8, 24, 20},
    ^
eng_cryptodev.c:270:4: error: 'CRYPTO_TLS12_AES_CBC_HMAC_SHA1' undeclared here (not in a function)
  { CRYPTO_TLS12_AES_CBC_HMAC_SHA1, NID_tls12_aes_128_cbc_hmac_sha1, 16, 16, 20},
    ^
eng_cryptodev.c:272:4: error: 'CRYPTO_TLS12_AES_CBC_HMAC_SHA256' undeclared here (not in a function)
  { CRYPTO_TLS12_AES_CBC_HMAC_SHA256, NID_tls12_aes_128_cbc_hmac_sha256, 16, 16, 32},
    ^
eng_cryptodev.c: In function 'cryptodev_asym_async':
eng_cryptodev.c:1741:35: error: 'struct crypt_kop' has no member named 'cookie'
  struct pkc_cookie_s *cookie = kop->cookie;
                                   ^
...

MACHINE=p1022ds, building openssl 1.0.1i from meta-fsl-ppc.  For what it's worth, oe-core has openssl 1.0.2e.
Comment 1 Zhenhua Luo 2016-01-06 13:43:07 UTC
The patch is submitted. 

http://patches.openembedded.org/patch/111473/
Comment 3 Alexandru Georgescu 2016-01-08 13:40:31 UTC
(In reply to comment #2)
> The patch is merged. 
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/commit/
> ?id=8c63bbe69d68a7b094ab8ab1b87ea0795f52d486

The issue was fixed
https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-ppc/builds/581