building threaded memcached

rkmr.em at rkmr.em at
Sun Jul 15 21:47:32 UTC 2007

I am not able to build the threaded version from the latest svn. Do
you know what is wrong?
The error message is below:


[mark at localhost server]$ ./configure --enable-threads && make
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 gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for a BSD-compatible install... /usr/bin/install -c
checking for libevent directory... (system)
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing mallinfo... none required
checking for library containing pthread_create... -lpthread
checking for daemon... yes
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 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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for struct mallinfo.arena... yes
checking for socklen_t... yes
checking for endianness... little
checking for mlockall... yes
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
make  all-recursive
make[1]: Entering directory `/home/mark/work/memcached/trunk/server'
Making all in doc
make[2]: Entering directory `/home/mark/work/memcached/trunk/server/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mark/work/memcached/trunk/server/doc'
make[2]: Entering directory `/home/mark/work/memcached/trunk/server'
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG   -g -O2 -MT
memcached-memcached.o -MD -MP -MF ".deps/memcached-memcached.Tpo" \
          -c -o memcached-memcached.o `test -f 'memcached.c' || echo
'./'`memcached.c; \
        then mv -f ".deps/memcached-memcached.Tpo"
".deps/memcached-memcached.Po"; \
        else rm -f ".deps/memcached-memcached.Tpo"; exit 1; \
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG   -g -O2 -MT
memcached-slabs.o -MD -MP -MF ".deps/memcached-slabs.Tpo" \
          -c -o memcached-slabs.o `test -f 'slabs.c' || echo './'`slabs.c; \
        then mv -f ".deps/memcached-slabs.Tpo" ".deps/memcached-slabs.Po"; \
        else rm -f ".deps/memcached-slabs.Tpo"; exit 1; \
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG   -g -O2 -MT
memcached-items.o -MD -MP -MF ".deps/memcached-items.Tpo" \
          -c -o memcached-items.o `test -f 'items.c' || echo './'`items.c; \
        then mv -f ".deps/memcached-items.Tpo" ".deps/memcached-items.Po"; \
        else rm -f ".deps/memcached-items.Tpo"; exit 1; \
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG   -g -O2 -MT
memcached-assoc.o -MD -MP -MF ".deps/memcached-assoc.Tpo" \
          -c -o memcached-assoc.o `test -f 'assoc.c' || echo './'`assoc.c; \
        then mv -f ".deps/memcached-assoc.Tpo" ".deps/memcached-assoc.Po"; \
        else rm -f ".deps/memcached-assoc.Tpo"; exit 1; \
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG   -g -O2 -MT
memcached-thread.o -MD -MP -MF ".deps/memcached-thread.Tpo" \
          -c -o memcached-thread.o `test -f 'thread.c' || echo './'`thread.c; \
        then mv -f ".deps/memcached-thread.Tpo" ".deps/memcached-thread.Po"; \
        else rm -f ".deps/memcached-thread.Tpo"; exit 1; \
thread.c:238: error: conflicting types for 'mt_conn_add_to_freelist'
memcached.h:256: error: previous declaration of
'mt_conn_add_to_freelist' was here
make[2]: *** [memcached-thread.o] Error 1
make[2]: Leaving directory `/home/mark/work/memcached/trunk/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mark/work/memcached/trunk/server'
make: *** [all] Error 2
[mark at localhost server]$

More information about the memcached mailing list