编译TrueCrypt时,我得到“未定义的符号引用’dlclose @@ GLIBC_2.2.5’”
我正在尝试从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