在 Compile rtorrent 0.9.4 時會出現以下的錯誤訊息:
/usr/lib/libtorrent.so: undefined reference to `__sync_add_and_fetch_8'
/usr/lib/libtorrent.so: undefined reference to `__sync_fetch_and_and_8'
collect2: error: ld returned 1 exit status
make[3]: *** [rtorrent] Error 1
make[3]: Leaving directory `/root/rtorrent-0.9.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rtorrent-0.9.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rtorrent-0.9.4'
make: *** [all] Error 2
解決方法一:
在 libtorrent configure 時先執行以下命令:
./configure --prefix=/usr --enable-arch=i686 && make && make install
解決方法二:
在 libtorrent configure 時加入 --disable-instrumentation
./configure --prefix=/usr --disable-instrumentation
留言列表