交叉编译openssl出错

发布于 2022-09-03 07:37:35 字数 4378 浏览 18 评论 0

出错信息如下:

make[2]: Entering directory '/srv/code/OpenSource/openssl-1.0.2h/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl  -L.. -lcrypto -ldl}"; LDCMD="${LDCMD:-arm-hisiv100nptl-linux-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
s_socket.o: In function `do_server':
s_socket.c:(.text+0x6c0): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
s_socket.o: In function `GetHostByName':
s_socket.c:(.text+0x134): warning: gethostbyname is obsolescent, use getnameinfo() instead.
dhparam.o: In function `dhparam_main':
dhparam.c:(.text+0x15c): undefined reference to `ERR_load_crypto_strings'
dhparam.c:(.text+0x1b8): undefined reference to `BIO_s_file'
dhparam.c:(.text+0x1bc): undefined reference to `BIO_new'
dhparam.c:(.text+0x1e0): undefined reference to `BIO_ctrl'
dhparam.c:(.text+0x224): undefined reference to `PEM_read_bio_DHparams'
dhparam.c:(.text+0x234): undefined reference to `BIO_s_file'
dhparam.c:(.text+0x238): undefined reference to `BIO_new'
dhparam.c:(.text+0x25c): undefined reference to `BIO_ctrl'
dhparam.c:(.text+0x2bc): undefined reference to `PEM_write_bio_DHxparams'
dhparam.c:(.text+0x370): undefined reference to `BIO_printf'
dhparam.c:(.text+0x380): undefined reference to `DSA_new'
dhparam.c:(.text+0x3a0): undefined reference to `BIO_printf'
dhparam.c:(.text+0x3d0): undefined reference to `DSA_generate_parameters_ex'
dhparam.c:(.text+0x3e0): undefined reference to `DSA_free'
dhparam.c:(.text+0x3f4): undefined reference to `ERR_print_errors'
dhparam.c:(.text+0x408): undefined reference to `DH_free'
dhparam.c:(.text+0x5dc): undefined reference to `BIO_printf'
dhparam.c:(.text+0x5f0): undefined reference to `BIO_printf'
dhparam.c:(.text+0x5fc): undefined reference to `BIO_printf'
dhparam.c:(.text+0x60c): undefined reference to `BIO_printf'
dhparam.c:(.text+0x61c): undefined reference to `BIO_printf'
dhparam.o:dhparam.c:(.text+0x62c): more undefined references to `BIO_printf' follow
dhparam.o: In function `dhparam_main':
dhparam.c:(.text+0x700): undefined reference to `BIO_s_file'
dhparam.c:(.text+0x704): undefined reference to `BIO_new'
dhparam.c:(.text+0x72c): undefined reference to `BIO_ctrl'
dhparam.c:(.text+0x748): undefined reference to `DH_new'
dhparam.c:(.text+0x770): undefined reference to `BIO_printf'
dhparam.c:(.text+0x77c): undefined reference to `BIO_printf'
dhparam.c:(.text+0x798): undefined reference to `DH_generate_parameters_ex'
dhparam.c:(.text+0x7b0): undefined reference to `ERR_print_errors'
dhparam.c:(.text+0x7cc): undefined reference to `PEM_read_bio_DSAparams'
dhparam.c:(.text+0x7e0): undefined reference to `DSA_dup_DH'
dhparam.c:(.text+0x7ec): undefined reference to `DSA_free'
dhparam.c:(.text+0x804): undefined reference to `ERR_print_errors'
dhparam.c:(.text+0x818): undefined reference to `BIO_free'
dhparam.c:(.text+0x828): undefined reference to `BIO_free_all'
dhparam.c:(.text+0x87c): undefined reference to `BIO_printf'
dhparam.c:(.text+0x884): undefined reference to `ERR_print_errors'
dhparam.c:(.text+0x8a4): undefined reference to `BIO_printf'
dhparam.c:(.text+0x8e0): undefined reference to `BIO_printf'
dhparam.c:(.text+0x8f0): undefined reference to `DH_check'
dhparam.c:(.text+0x940): undefined reference to `DHparams_print'
dhparam.c:(.text+0x94c): undefined reference to `BN_num_bits'
dhparam.c:(.text+0x958): undefined reference to `BN_num_bits'
dhparam.c:(.text+0x978): undefined reference to `CRYPTO_malloc'
dhparam.c:(.text+0x9a8): undefined reference to `BN_bn2bin'
dhparam.c:(.text+0xa54): undefined reference to `BN_bn2bin'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文