Closed capoeng closed 12 years ago
Older versions of g++ aren't supported, e.g. earlier versions than 4.2.1.
ok, thanks for respon, I will try to update g++ to earlier version
You mean newer versions I hope, >4.2.1.
As __sync_bool_compare_and_swap exists only on higher than i386 arch try to use arch higher than i386 (I mean put -march=i686 or -march=native in CXXFLAGS).
Yeah, the arch flags...
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 functionthread_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 functionThreadWorker::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?