Ticket #2088 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

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

Change History

comment:1 Changed 3 years ago by anonymous

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.

comment:2 Changed 3 years ago by rakshasa

  • Status changed from new to closed
  • Resolution set to invalid

Gcc 4.2.1 is now the new requirement.

Note: See TracTickets for help on using tickets.