allen8807 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

undefined reference to `__sync_sub_and_fetch_2' #248

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm getting these errors when building on RHEL 5.7 (32bit)

[root@web1 memcached-1.4.11]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for icc in use... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __SUNPRO_C is declared... no
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking for library containing clock_gettime... -lrt
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for libevent directory... (system)
checking for library containing umem_cache_create... no
checking for library containing gethugepagesizes... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inttypes.h... (cached) yes
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking for endianness... little
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for memcntl... no
checking for sigignore... yes
checking for clock_gettime... yes
checking for alignment... need
checking for setppriv... no
checking umem.h usability... no
checking umem.h presence... no
checking for umem.h... no
checking for xml2rfc... no
checking for xsltproc... /usr/bin/xsltproc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
[root@web1 memcached-1.4.11]# make
make  all-recursive
make[1]: Entering directory `/usr/src/memcached-1.4.11'
Making all in doc
make[2]: Entering directory `/usr/src/memcached-1.4.11/doc'
make  all-am
make[3]: Entering directory `/usr/src/memcached-1.4.11/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/memcached-1.4.11/doc'
make[2]: Leaving directory `/usr/src/memcached-1.4.11/doc'
make[2]: Entering directory `/usr/src/memcached-1.4.11'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o 
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
mv -f .deps/memcached-memcached.Tpo .deps/memcached-memcached.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-hash.o -MD -MP -MF .deps/memcached-hash.Tpo -c -o memcached-hash.o 
`test -f 'hash.c' || echo './'`hash.c
mv -f .deps/memcached-hash.Tpo .deps/memcached-hash.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-slabs.o -MD -MP -MF .deps/memcached-slabs.Tpo -c -o memcached-slabs.o 
`test -f 'slabs.c' || echo './'`slabs.c
mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-items.o -MD -MP -MF .deps/memcached-items.Tpo -c -o memcached-items.o 
`test -f 'items.c' || echo './'`items.c
mv -f .deps/memcached-items.Tpo .deps/memcached-items.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-assoc.o -MD -MP -MF .deps/memcached-assoc.Tpo -c -o memcached-assoc.o 
`test -f 'assoc.c' || echo './'`assoc.c
mv -f .deps/memcached-assoc.Tpo .deps/memcached-assoc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-thread.o -MD -MP -MF .deps/memcached-thread.Tpo -c -o 
memcached-thread.o `test -f 'thread.c' || echo './'`thread.c
mv -f .deps/memcached-thread.Tpo .deps/memcached-thread.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-daemon.o -MD -MP -MF .deps/memcached-daemon.Tpo -c -o 
memcached-daemon.o `test -f 'daemon.c' || echo './'`daemon.c
mv -f .deps/memcached-daemon.Tpo .deps/memcached-daemon.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-stats.o -MD -MP -MF .deps/memcached-stats.Tpo -c -o memcached-stats.o 
`test -f 'stats.c' || echo './'`stats.c
mv -f .deps/memcached-stats.Tpo .deps/memcached-stats.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-util.o -MD -MP -MF .deps/memcached-util.Tpo -c -o memcached-util.o 
`test -f 'util.c' || echo './'`util.c
mv -f .deps/memcached-util.Tpo .deps/memcached-util.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG   -g -O2 -pthread -Wall -Werror 
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT 
memcached-cache.o -MD -MP -MF .deps/memcached-cache.Tpo -c -o memcached-cache.o 
`test -f 'cache.c' || echo './'`cache.c
mv -f .deps/memcached-cache.Tpo .deps/memcached-cache.Po
gcc -std=gnu99  -g -O2 -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':
/usr/src/memcached-1.4.11/thread.c:98: undefined reference to 
`__sync_sub_and_fetch_2'
memcached-thread.o: In function `refcount_incr':
/usr/src/memcached-1.4.11/thread.c:83: undefined reference to 
`__sync_add_and_fetch_2'
collect2: ld returned 1 exit status
make[2]: *** [memcached] Error 1
make[2]: Leaving directory `/usr/src/memcached-1.4.11'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/memcached-1.4.11'
make: *** [all] Error 2
[root@web1 memcached-1.4.11]#

Any thoughts on what's wrong? Is it my system or is it a bug?

Original issue reported on code.google.com by nick.lem...@gmail.com on 27 Jan 2012 at 1:30

GoogleCodeExporter commented 9 years ago
Never mind, from what I read in the google groups this will be fixed in 1.4.12 
which will be released very soon.

Original comment by nick.lem...@gmail.com on 27 Jan 2012 at 1:54

GoogleCodeExporter commented 9 years ago
closing. 1.4.12 will be out any moment now.

Original comment by dorma...@rydia.net on 1 Feb 2012 at 7:08