Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 301 by mirkp...@gmail.com: link fails for GCC atomic functions
http://code.google.com/p/memcached/issues/detail?id=301

What steps will reproduce the problem?
1. configure && make

What is the expected output? What do you see instead?
Error:
gcc -std=gnu99 -g -O2 -pthread -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -o memcached memcached-memcached.o memcached-hash.o memcached-slabs.o memcached-items.o memcached-assoc.o memcached-thread.o memcached-daemon.o memcached-stats.o memcached-util.o memcached-cache.o -levent -lrt
memcached-thread.o: In function `refcount_decr':
/root/adam/cache/memcached-1.4.15/thread.c:102: undefined reference to `__sync_sub_and_fetch_2'
memcached-thread.o: In function `refcount_incr':
/root/adam/cache/memcached-1.4.15/thread.c:87: undefined reference to `__sync_add_and_fetch_2'

What version of the product are you using? On what operating system?
memcached 1.4.15 or 1.4.14
libc 2.8
gcc 4.3.3
Linux 2.6.39.3

Please provide any additional information below.
This was resolved by adding -march=i686 to CFLAGS when running "configure".

Reply via email to