[meta-freescale] [meta-fsl-ppc][PATCH] openssl-1.0.1i: s/inline/static/ to fix gcc5.2 issue

b28495 at freescale.com b28495 at freescale.com
Tue Jul 28 00:04:43 PDT 2015


From: Ting Liu <ting.liu at freescale.com>

Fix 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: Ting Liu <ting.liu at freescale.com>
---
 .../0008-Initial-support-for-PKC-in-cryptodev-engine.patch            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch b/recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
index 8c8b1f2..98272ab 100644
--- a/recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
+++ b/recipes-connectivity/openssl/openssl-fsl/0008-Initial-support-for-PKC-in-cryptodev-engine.patch
@@ -62,7 +62,7 @@ index e3eb98b..7ee314b 100644
  const EVP_CIPHER cryptodev_aes_128_cbc_hmac_sha1;
  const EVP_CIPHER cryptodev_aes_256_cbc_hmac_sha1;
  
-+inline int spcf_bn2bin(BIGNUM *bn, unsigned char **bin,  int *bin_len)
++static int spcf_bn2bin(BIGNUM *bn, unsigned char **bin,  int *bin_len)
 +{
 +	int len;
 +	unsigned char *p;
@@ -84,7 +84,7 @@ index e3eb98b..7ee314b 100644
 +	return 0;
 +}
 +
-+inline int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin,  int *bin_len)
++static int spcf_bn2bin_ex(BIGNUM *bn, unsigned char **bin,  int *bin_len)
 +{
 +	int len;
 +	unsigned char *p;
-- 
1.9.1



More information about the meta-freescale mailing list