歡迎您光臨本站 註冊首頁

安裝ucspi-tcp的時候出現報錯

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

安裝ucspi-tcp的時候出現報錯

安裝ucspi-tcp的時候出現報錯:/lib64/libc.so.6: could not read symbols: Bad value


當在ucspi-tcp-0.88目錄下make 的時候出現如下報錯:./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a \
dns.a time.a unix.a byte.a  `cat socket.lib`
/usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in tcpserver.o
/lib64/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status看一下有沒有/lib64/libc.so.6這個庫文件
# ls -l /lib64/libc.so.6
lrwxrwxrwx 1 root root 11 Oct 27 03:19 /lib64/libc.so.6 -> libc-2.5.so解決辦法是:

編輯 ./ucspi-tcp-0.88./conf-cc

將原來的
gcc -O2

改為
gcc -O2 -include /usr/include/errno.h



然後重新make就可以了
《解決方案》

謝謝分享....學習鳥

[火星人 ] 安裝ucspi-tcp的時候出現報錯已經有392次圍觀

http://coctec.com/docs/service/show-post-1379.html