I had same problem:
‘__sync_bool_compare_and_swap’ was not declared in this scope
Had gcc 4.0. Updated to gcc 4.4 with macport:
sudo port install gcc44
sudo gcc_select mp-gcc44
gcc --version shows 4.4 is being used.
Still have the same problem.
It seems none of the OSAtomic.h files on my system have this.
locate "OSAtomic.h" | xargs grep "sync_bool" returns nothing.
Tried adding -march=i686 to the linker, but the Makefile system is pretty large and couldn't find where the linking is done. no trace of "-l", at least not in the Makefile in this directory.
This is the Makefile to compile the NeL game server code.
Will try using OSCompareAndSwap() instead.
Any ideas on what to try next?