0

您好,我是 linux 的新手,我正在尝试安装 FreeRDP。我不断收到此错误:

/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(hmac.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [winpr/libwinpr/utils/libwinpr-utils.so.1.1.0] Error 1
make[1]: *** [winpr/libwinpr/utils/CMakeFiles/winpr-utils.dir/all] Error 2
make: *** [all] Error 2

在我输入“make”命令后。对不起,如果这个问题已经被问过,但我已经彻底搜索了堆栈溢出并没有找到它。提前致谢:)

4

1 回答 1

0

它希望您向 ld 添加一个参数:-fPIC
因此,如果有一行以 ld 或 gcc 开头,只需添加它。
主要是 gcc 并且参数 -shared 已经存在,所以只需在其后面添加 -fPIC 即可。

于 2014-03-05T08:17:05.540 回答