gpt4 book ai didi

linux - 如何在 openhpi 安装期间解决 openssl 问题?

转载 作者:行者123 更新时间:2023-12-04 22:43:11 30 4
gpt4 key购买 nike

我尝试按照其主站点的说明安装 OpenHPI
http://openhpi.org/OpenHPI/Manual/Installationmake返回错误2:

-I/usr/lib/x86_64-linux-gnu/glib-2.0/include         -Wall         -Wpointer-arith
-Wformat=2 -Wformat-security -Wformat-nonliteral -Wcast-qual
-Wcast-align -Wshadow -Wwrite-strings -Wredundant-decls
-Wno-strict-aliasing -fno-strict-aliasing -Wno-unused-value -D_GNU_SOURCE
-D_REENTRANT -fexceptions -export-dynamic -o openhpid server.o openhpid-posix.o
libopenhpidaemon.la ../marshal/libopenhpimarshal.la ../transport/libopenhpitransport.la
-lstdc++ -pthread -lgthread-2.0 -lglib-2.0 -lm -lpthread
libtool: link: g++ -g -O2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-Wall -Wpointer-arith -Wformat=2 -Wformat-security -Wformat-nonliteral
-Wcast-qual -Wcast-align -Wshadow -Wwrite-strings -Wredundant-decls -Wno-strict-aliasing
-fno-strict-aliasing -Wno-unused-value -D_GNU_SOURCE -D_REENTRANT -fexceptions
-o .libs/openhpid server.o openhpid-posix.o -pthread -Wl,--export-dynamic ./.libs/libopenhpidaemon.a
/usr/local/src/openhpi-3.8.0/utils/.libs/libopenhpiutils.so -lgcrypt -lgmodule-2.0
/usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so -lcrypto ../marshal/.libs/libopenhpimarshal.so
../transport/.libs/libopenhpitransport.so -lstdc++ -lgthread-2.0 -lglib-2.0 -lm -lpthread -pthread
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_free'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_error'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_get_fd'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_read'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_shutdown'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `OPENSSL_init_ssl'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_new'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `BIO_f_ssl'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `TLS_client_method'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_CTX_set_options'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_connect'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_free'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_write'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_set_fd'
/usr/bin/ld: /usr/local/src/openhpi-3.8.0/ssl/.libs/libopenhpi_ssl.so: undefined reference to `SSL_new'
我尝试使用重新安装openssl apt-get install --reinstall openssl和手动,但这不起作用。
然后我在 libopenhpi_ssl.so 中添加了 '-lssl'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags='-pthread'

# Libraries that this one depends upon.
dependency_libs='-lssl -lcrypto -lgthread-2.0 -lglib-2.0 -lm -lpthread'
此错误消失了,但随后又发生了另一个错误。无论如何,我认为更改配置文件不是一个好的解决方案。

最佳答案

我手动安装了 glib2、gcrypto 及其所有依赖项。
这解决了问题。

关于linux - 如何在 openhpi 安装期间解决 openssl 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62706008/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com