一次解决libgcc_s.so.1 must be installed for pthread_cancel to work的经历
2014-06-27 14:33
477 查看
在vsftpd中加入线程支持,出现这个错误:
libgcc_s.so.1 must be installed for pthread_cancel to work
网上看到说缺少其他库。
但是没解决。
领导给的解决方法是加-lgcc_s,说是有些gcc的隐藏库没有链接进去。
用ldd查看,确实如此:
未用-lgcc_s链接选项,有问题时,ldd的结果:
加上-lgcc_s链接选项,问题解决后的结果:
对比动态库中确实多了个libgcc_s.so.1的动态链接库。
libgcc_s.so.1 must be installed for pthread_cancel to work
网上看到说缺少其他库。
但是没解决。
领导给的解决方法是加-lgcc_s,说是有些gcc的隐藏库没有链接进去。
用ldd查看,确实如此:
未用-lgcc_s链接选项,有问题时,ldd的结果:
root@localhost:/home/yk/fileswitch/oni/vsftpd-2.1.0# ldd vsftpd linux-vdso.so.1 => (0x00007fff23c4b000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f226bf71000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f226bd55000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f226b9c9000) /lib64/ld-linux-x86-64.so.2 (0x00007f226c1b7000)
加上-lgcc_s链接选项,问题解决后的结果:
root@localhost:/home/yk/fileswitch/oni/vsftpd-2.1.0# ldd vsftpd linux-vdso.so.1 => (0x00007fffe5bff000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fdc088f6000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdc086da000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdc084c3000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdc08138000) /lib64/ld-linux-x86-64.so.2 (0x00007fdc08b3c000)
对比动态库中确实多了个libgcc_s.so.1的动态链接库。
相关文章推荐
- cantos 7 解决libgcc_s.so.1 must be installed for pthread_cancel to work
- Linux: libgcc_s.so.1 must be installed for pthread_cancel to work
- libgcc_s.so.1 must be installed for pthread_cancel to work
- ubuntu14系统:libgcc_s.so.1 must be installed for pthread_cancel to work
- libgcc_s.so.1 must be installed for pthread_cancel to work
- django+uwsgi报错libgcc_s.so.1 must be installed for pthread_cancel to work
- 解决ORA-02069: global_names parameter must be set to TRUE for this operation 问题
- MySQL复制错误 The slave I/O thread stopsbecause master and slave have equal MySQL server UUIDs; these UUIDs must bedifferent for replication to work 解析
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- How to be a Winner -- Advice for students starting into research work
- 大学英语六级听力——010(Can Animals Be Made to Work for Us?)
- android sdk for windows出现A folder failed to be renamed or moved 解决办法
- make: Nothing to be done for `all' 解决方法 ---实验2
- Nothing to be done for `_depend' 解决 make uboot时出现的错误
- 利用数据库链做DML操作时报ORA-02069: global_names parameter must be set to TRUE for this operation
- Eclipse总是提示The user operation is waiting for background work to complete的解决方法(ubuntu环境下)
- mysql 找不到或无法加载已注册的 .Net Framework Data Provider和Unable to find the requested .Net Framework Data Provider. It may not be installed解决
- assertion failed: Path for IClasspathEntry must be absolute解决方法
- 关于:ORA-02069: global_names parameter must be set to TRUE for this operation
- Error: initial value of reference to non const must be lvalue 原因以及解决方法