Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error While Compiling Rtorrent 0.9.0 #15

Closed
capoeng opened this issue Dec 14, 2011 · 5 comments
Closed

Error While Compiling Rtorrent 0.9.0 #15

capoeng opened this issue Dec 14, 2011 · 5 comments

Comments

@capoeng
Copy link

capoeng commented Dec 14, 2011

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 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?

@rakshasa
Copy link
Owner

Older versions of g++ aren't supported, e.g. earlier versions than 4.2.1.

@capoeng
Copy link
Author

capoeng commented Dec 14, 2011

ok, thanks for respon, I will try to update g++ to earlier version

@rakshasa
Copy link
Owner

You mean newer versions I hope, >4.2.1.

@artifexor
Copy link

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).

@rakshasa
Copy link
Owner

Yeah, the arch flags...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants