In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Static library compilation
. / config
Make
Make install
Dynamic library compilation
. / config shared
Make
Make install
Question 1) relocation R_AARCH64_ADR_PREL_PG_HI21
The static library was compiled before, but it was not cleaned up, and there was a problem.
Instruction. / config shared & & make
Make a mistake
Usr/bin/ld: libcrypto.a (gost_eng.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `stderr@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with-fPIC
/ usr/bin/ld: libcrypto.a (gost_eng.o) (.text + 0x4f0): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
/ usr/bin/ld: final link failed: bad value
. / stdio.h:477:1: error: 'gets' undeclared here (not in a function)
Sed-I'/ gets is a security hole/d'\
Gettext- {runtime/gnulib-lib,tools/ {gnulib-lib,libgettextpo}} / stdio.in.h
Solve
Make clean
. / config shared
Question 2) undefined reference to
Undefined reference to `GENERAL_NAME_free@libcrypto.so.10'
Undefined reference to `SSL_get_verify_result@libssl.so.10'
Undefined reference to `SSL_CTX_set_default_passwd_cb_userdata@libssl.so.10'
Undefined reference to `sk_num@libcrypto.so.10'
Undefined reference to `SSL_CTX_ctrl@libssl.so.10'
Undefined reference to `CRYPTO_set_dynlock_lock_callback@libcrypto.so.10'
Undefined reference to `SSL_accept@libssl.so.10'
Undefined reference to `SSL_new@libssl.so.10'
Undefined reference to `SSL_CTX_set_cipher_list@libssl.so.10'
This problem can be solved by following the make install operation above, otherwise you need to specify the openssl library specified through the-lssl-lcrypto link, and you need to specify the header file directory of the openssl.
Examples
Gmail + UploadMessageService_server.skeleton.cpp uploadmessageservice.cpp thriftcom_types.cpp thriftcom_constants.cpp pushmessageservice.cpp-lthrift-0.9.0-lpthread-I / home-I. /-L. -L / home/dong/3thrdparty/openssl-1.0.2j-fpermissive-o output-DHAVE_NETINET_IN_H
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.