Mac OS X build broken due to __sync_bool_compare_and_swap()

Bug #673575 reported by Alexey Kopytov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Triaged
Low
Alexey Kopytov

Bug Description

The following code in query_response_time.cc assumes __sync_bool_compare_and_swap() is available on any non-FreeBSD platform:

--- cut ---
#ifdef __FreeBSD__
inline bool compare_and_swap(volatile uint32 *target, uint32 old, uint32 new_value)
{
  return atomic_cmpset_32(target,old,new_value);
}
#else // __FreeBSD__
inline bool compare_and_swap(volatile uint32* target, uint32 old, uint32 new_value)
{
  return __sync_bool_compare_and_swap(target,old,new_value);
}
#endif // __FreeBSD__
--- cut ---

That is not the case for Mac OS X, so I'm getting linker errors about unresolved symbols.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Probably a duplicate of bug#663757.

Changed in percona-server:
assignee: nobody → Oleg Tsarev (tsarev)
Revision history for this message
Percona (percona-team) wrote :

Again, we do not support Mac OS X, but you may try to get it fixed.

Changed in percona-server:
status: New → Triaged
importance: Undecided → Low
assignee: Oleg Tsarev (tsarev) → Alexey Kopytov (akopytov)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.