Ticket #2088 (closed defect: invalid)
thread_base.h:69: error: `__sync_add_and_fetch' was not declared in this scope
| Reported by: | anonymous | Owned by: | rakshasa |
|---|---|---|---|
| Priority: | normal | Component: | libtorrent |
| Version: | Severity: | normal | |
| Keywords: | Cc: |
Description
I am trying to install rtorrent onto gentoo but i keep getting this error. is there a way i can fix this?
cd /home/rtorrent/trunk svn up cd libtorrent ./autogen.sh ./configure make make install <------ Got to here
thread_base.h: In static member function `static void torrent::ThreadBase::acquire_global_lock()': thread_base.h:69: error: `sync_add_and_fetch' was not declared in this scope thread_base.h:71: error: `sync_fetch_and_sub' was not declared in this scope make[3]: * [poll_epoll.lo] Error 1 make[3]: Leaving directory `/home/rtorrent/trunk/libtorrent/src/torrent' make[2]: * [install-recursive] Error 1 make[2]: Leaving directory `/home/rtorrent/trunk/libtorrent/src/torrent' make[1]: * [install-recursive] Error 1 make[1]: Leaving directory `/home/rtorrent/trunk/libtorrent/src' make: * [install-recursive] Error 1

i fixed this error by updating to gcc4.4. i was building on an old mac os x leopard system which had gcc 4.0.1 which came with the latest xcode.