解决引用openssl静态库libcrypto.a和libssl.a出现undefined reference to错误的问题

本文档记录了在使用静态库libcrypto.a和libssl.a时遇到的undefined reference错误的解决方法,参考了三篇博客,提供了详细的解决步骤和参考资料。
ecdsa-libcrypto.c:(.text+0x68a): undefined reference to `EC_GROUP_order_bits' ecdsa-libcrypto.c:(.text+0x6d2): undefined reference to `EC_POINT_get_affine_coordinates' collect2: error: ld returned 1 exit status make-4.1[2]: *** [tools/dumpimage] Error 1 make-4.1[2]: *** Waiting for unfinished jobs.... tools/lib/ecdsa/ecdsa-libcrypto.o: In function `prepare_ctx': ecdsa-libcrypto.c:(.text+0xcd): undefined reference to `OPENSSL_init_ssl' ecdsa-libcrypto.c:(.text+0x185): undefined reference to `EC_GROUP_order_bits' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_check_signature.isra.3': ecdsa-libcrypto.c:(.text+0x3ad): undefined reference to `ECDSA_SIG_set0' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_sign': ecdsa-libcrypto.c:(.text+0x497): undefined reference to `ECDSA_SIG_get0' ecdsa-libcrypto.c:(.text+0x4ae): undefined reference to `BN_bn2binpad' ecdsa-libcrypto.c:(.text+0x4c0): undefined reference to `BN_bn2binpad' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_add_verify_data': ecdsa-libcrypto.c:(.text+0x68a): undefined reference to `EC_GROUP_order_bits' ecdsa-libcrypto.c:(.text+0x6d2): undefined reference to `EC_POINT_get_affine_coordinates' collect2: error: ld returned 1 exit status make-4.1[2]: *** [tools/fit_info] Error 1 tools/lib/ecdsa/ecdsa-libcrypto.o: In function `prepare_ctx': ecdsa-libcrypto.c:(.text+0xcd): undefined reference to `OPENSSL_init_ssl' ecdsa-libcrypto.c:(.text+0x185): undefined reference to `EC_GROUP_order_bits' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_check_signature.isra.3': ecdsa-libcrypto.c:(.text+0x3ad): undefined reference to `ECDSA_SIG_set0' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_sign': ecdsa-libcrypto.c:(.text+0x497): undefined reference to `ECDSA_SIG_get0' ecdsa-libcrypto.c:(.text+0x4ae): undefined reference to `BN_bn2binpad' ecdsa-libcrypto.c:(.text+0x4c0): undefined reference to `BN_bn2binpad' tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_add_verify_data': ecdsa-libcrypto.c:(.text+0x68a): undefined reference to `EC_GROUP_order_bits' ecdsa-libcrypto.c:(.text+0x6d2): undefined reference to `EC_POINT_get_affine_coordinates' collect2: error: ld returned 1 exit status make-4.1[2]: *** [tools/fit_check_sign] Error 1 make[1]: *** [tools] Error 2 Makefile:413: recipe for target 'uboot' failed make: *** [uboot] Error 2
最新发布
12-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值