penssl-1.0.1i: s/inline/static/ to fix gcc7.1 issue
PATCH 1/1 penssl-1.0.1i: s/inline/static/ to fix gcc7.1 issue
From: Chunrong Guo <[email protected]>
ix the following error:
| ../libcrypto.so: undefined reference to spcf_bn2bin' | ../libcrypto.so: undefined reference to spcf_bn2bin_ex' | collect2: error: ld returned 1 exit status
| make[2]: *** [link_app.gnu] Error 1
Signed-off-by Chunrong Guo <[email protected]>
Signed-off-by Chunrong Guo <[email protected]>
--- .../0045-cryptodev-change-signature-for-conversion-functions.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-connectivity/openssl/openssl-qoriq/qoriq/0045-cryptodev-change-signature-for-conversion-functions.patch +2 -2
@@ -20,7 +20,7 @@ index b9c7ff3..58e539c 100644 const EVP_CIPHER cryptodev_tls12_aes_256_cbc_hmac_sha256; -inline int spcf_bn2bin(BIGNUM *bn, unsigned char **bin, int *bin_len) -+inline int spcf_bn2bin(const BIGNUM *bn, unsigned char **bin, int *bin_len) ++static int spcf_bn2bin(const BIGNUM *bn, unsigned char **bin, int *bin_len) { int len; unsigned char *p;
@@ -29,7 +29,7 @@ index b9c7ff3..58e539c 100644 } -inline int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin, int *bin_len) -+inline int spcf_bn2bin_ex(const BIGNUM *bn, unsigned char **bin, int *bin_len) ++static int spcf_bn2bin_ex(const BIGNUM *bn, unsigned char **bin, int *bin_len) { int len; unsigned char *p;
Signature · 1 line
1.9.0