rakshasa/rtorrent — Issue #15: Error While Compiling Rtorrent 0.9.0
Author: capoeng
Created: 2011-12-14 07:49:38+00:00
State: open

g++ -g -O2 -g -DDEBUG -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -L/usr/local/lib /usr/local/lib/libcurl.so -L/usr/kerberos/lib -lldap -lrt -lssl /usr/local/lib/libtorrent.so -lcrypto -ldl -lz /usr/local/lib/libsigc-2.0.so -lxmlrpc_server -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
libsub_root.a(thread_base.o): In function `thread_queue_hack::lock()':
/root/rtorrent-0.9.0/src/thread_base.cc:68: undefined reference to `__sync_bool_compare_and_swap_4'
/root/rtorrent-0.9.0/src/thread_base.cc:68: undefined reference to `__sync_bool_compare_and_swap_4'
libsub_root.a(thread_base.o): In function `thread_queue_hack::push_back(void (*)(ThreadBase*))':
/root/rtorrent-0.9.0/src/thread_base.cc:84: undefined reference to `__sync_bool_compare_and_swap_4'
/root/rtorrent-0.9.0/src/thread_base.cc:85: undefined reference to `__sync_bool_compare_and_swap_4'
libsub_root.a(thread_worker.o): In function `ThreadWorker::set_scgi(rpc::SCgi*)':
/root/rtorrent-0.9.0/src/thread_worker.cc:72: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[3]: *** [rtorrent] Error 1
make[3]: Leaving directory `/root/rtorrent-0.9.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rtorrent-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rtorrent-0.9.0'
make: *** [all] Error 2
[root@ns1 ~]#

I don't understand about this error issue, any help?