linphone의 새 버전 4에 배포된 바이너리가 더 이상 없기 때문에 응용 프로그램을 직접 컴파일하려고 합니다. 컴파일 프로세스를 위해 도커 컨테이너를 사용하고 있습니다. 이제 다음과 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
코드는 여기에서 호스팅됩니다.(여기에 게시하기에는 너무 깁니다).