由於沒有為 linphone 新版本 4 分發更多二進位文件,我正在嘗試自己編譯應用程式。我正在使用 docker 容器進行編譯過程。現在,當涉及到bctoolbox
時,我收到此錯誤:
/usr/bin/ld: /usr/local/lib/libmbedtls.a(ssl_tls.c.o): relocation R_X86_64_PC32 against symbol `mbedtls_ssl_sig_hash_set_const_hash' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
src/CMakeFiles/bctoolbox.dir/build.make:305: recipe for target 'src/libbctoolbox.so.1' failed
make[2]: *** [src/libbctoolbox.so.1] Error 1
make[1]: *** [src/CMakeFiles/bctoolbox.dir/all] Error 2
CMakeFiles/Makefile2:201: recipe for target 'src/CMakeFiles/bctoolbox.dir/all' failed
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c cd bctoolbox-0.6.0 && cmake . && make && make install' returned a non-zero code: 2
程式碼託管在這裡(太長了,無法在這裡發布)。