Can you post your config.log?

Sent from my Ti85

On Dec 15, 2012, at 8:25, cono <[email protected]> wrote:

> 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 bug assignee.
> https://bugs.launchpad.net/bugs/883267
>
> Title:
>  1.0.2 (and 0.53) build fails on ubuntu oneiric
>
> Status in libmemcached - A C and C++ client library for memcached:
>  Fix Released
> Status in “libmemcached” package in Ubuntu:
>  Confirmed
>
> Bug description:
>  On the newest Ubuntu release (Oneiric), building 1.0.2 fails with the
>  following error from the compiler:
>
>  g++ -DHAVE_CONFIG_H -I.  -I. -I. -g   -pipe  -O2  -pedantic -Wall -Wundef 
> -Wshadow  -fdiagnostics-show-option -floop-parallelize-all  -Wstrict-aliasing 
> -Wswitch-enum  -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security 
> -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long  
> -Wmissing-declarations -Wframe-larger-than=32768 -Wredundant-decls     -c -o 
> clients/memparse.o clients/memparse.cc
>    CXXLD  clients/memparse
>  libmemcached/.libs/libmemcached.so: undefined reference to `pthread_once'
>  collect2: ld returned 1 exit status
>  make[2]: *** [clients/memparse] Error 1
>
>  I think it may be as simple as setting the -pthread flag, but the
>  build setup for this is pretty daunting and I'm not sure how to do
>  that. The error when trying to build 0.53 is the same.
>
>  Building on Natty and earlier from identical source packages works, so
>  my (admittedly uneducated) guess is that something changed in gcc 4.6
>  that triggers this. I am happy to provide any additional info I can if
>  it will help.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/libmemcached/+bug/883267/+subscriptions

-- 
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