Ubuntu 13.04의 소스에서 TrueCrypt 7.1a를 컴파일하려고합니다. 그러나 make
연결 과정에서 다음 오류가 발생하여 실패합니다.
Linking truecrypt
/usr/bin/ld: /home/user/truecrypt-7.1a-source/tc2/Volume/Volume.a(SecurityToken.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libdl.so.2 so try adding it to the linker command line
/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [truecrypt] Error 1
make: *** [all] Error 2
어떻게 고치나요?
답변
환경 변수 LIBS
를 -ldl
다음으로 설정하십시오 .
LIBS=-ldl make