__sync_add_and_fetch_4 и __sync_fetch_and_sub_4 это функции gcc
организовал простенький тест
Код:
# cat test.c
int main()
{
int i = 3;
int j = __sync_add_and_fetch(&i, 1);
return 0;
}
Код:
# gcc test.c
/tmp/cccOSsgM.o: In function `main':
test.c:(.text+0x27): undefined reference to `__sync_add_and_fetch_4'
collect2: выполнение ld завершилось с кодом возврата 1
#
с ключом ошибок не выдает
Код:
# gcc -march=i686 test.c
#
победил с помощью
Код:
../configure CXXFLAGS="-march=i686" ...