Also having the same issue on Max OS X Lion:

checking for library containing pthread_create... no
configure: error: Can't enable threads without the POSIX thread
library.

1.4.7

sh ./configure --with-libevent=../libevent --enable-threads

-----
I removed the failure test from configure, and there also seems to be
a configuration issue with SIGIGNORE:

gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I../libevent/include   -
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
memcached.c:4320: error: static declaration of ‘sigignore’ follows non-
static declaration
/usr/include/signal.h:94: error: previous declaration of ‘sigignore’
was here'

-------
I removed the redefinittion, then I get:
gcc -std=gnu99  -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-
prototypes -Wmissing-declarations -Wredundant-decls  -L../libevent/
lib  -Wl,-rpath=../libevent/lib -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
ld: unknown option: -rpath=../libevent/lib

where I replaced -rpath with -L

that compiles and installs, not sure if it will work, was building
this only as a dependency for something else

thanks
-c

Reply via email to