I guess the same issue:

% cat memcached.c 
#include <sys/types.h>
#include <unistd.h>
#include <libmemcached/memcached.h>

int main() {
            memcached_create(NULL);;
                    return 0;
}

% gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I /usr/include -o memcached 
memcached.c -lmemcached
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libmemcached.so: 
undefined reference to `pthread_once'
collect2: ld returned 1 exit status

OS: Gentoo Linux
memcached: dev-libs/libmemcached 1.0.14

And works like this:
% gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I /usr/include -o memcached 
memcached.c -lpthread -lmemcached && echo good 
good

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883267

Title:
  1.0.2 (and 0.53) build fails on ubuntu oneiric

To manage notifications about this bug go to:
https://bugs.launchpad.net/libmemcached/+bug/883267/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to