首页 > 解决方案 > restbed make install in raspberry-pi undefined reference to dlopen dlclose

问题描述

我对覆盆子和覆盆子操作系统非常缺乏经验。

我正在尝试在树莓派中安装 restbed 库。

当我做

    make install

它不起作用,我得到以下信息:

pi@raspberrypi:~/restbed/build $ make install
[ 17%] Built target restbed-static
[ 17%] Built target restbed-shared
[ 17%] Linking CXX executable service_unit_test_suite
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': 
dso_dlfcn.c:(.text+0x10): undefined reference to `dlopen'  
dso_dlfcn.c:(.text+0x20): undefined reference to `dlsym' 
dso_dlfcn.c:(.text+0x2c): undefined reference to `dlclose'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x1a4): undefined reference to `dlsym'  
dso_dlfcn.c:(.text+0x258): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':  
dso_dlfcn.c:(.text+0x2c8): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x334): undefined reference to `dlclose'  
dso_dlfcn.c:(.text+0x364): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':  
dso_dlfcn.c:(.text+0x404): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0x464): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x62c): undefined reference to `dlclose'  
collect2: error: ld returned 1 exit status  
test/unit/CMakeFiles/service_unit_test_suite.dir/build.make:97: recipe for 
target 'test/unit/service_unit_test_suite' failed  
make[2]: *** [test/unit/service_unit_test_suite] Error 1
CMakeFiles/Makefile2:177: recipe for target 
'test/unit/CMakeFiles/service_unit_test_suite.dir/all' failed  
make[1]: *** [test/unit/CMakeFiles/service_unit_test_suite.dir/all] Error 2  
Makefile:138: recipe for target 'all' failed  
make: *** [all] Error 2

pi@raspberrypi:~/restbed/build $

标签: raspberry-pidlopenrestbed

解决方案


推荐阅读