[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
** Changed in: libmemcached (Ubuntu) Status: Confirmed => Fix Released -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
** Changed in: libmemcached (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libmemcached in 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
Can you post your config.log? Sent from my Ti85 On Dec 15, 2012, at 8:25, cono 883...@bugs.launchpad.net 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
Oh :) Sorry guys for disinformation. Just found the same gcc error but not during the libmemcached compilation process. Library installed with no problem. Was going to install this module: https://github.com/yoreek/nginx-xsltproc-module And got this error: checking for libmemcached /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 -- #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 objs/autotest objs/autotest.c -lmemcached Already contacted with yoreek. He added -lpthread to configure stage. Thanks for quick response. And sorry. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: libmemcached (Ubuntu) Status: New = Confirmed -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
The libmemcached-1.0.X series seam not to allow you to activate sasl. There is this conditional in the configure script: if test x$ac_enable_sasl = xyes; then : ac_enable_sasl=no fi which sets SASL to no even if you use --enable-sasl. Version 0.53 works well though. After issuing ./configure I had to edit m4/ax_pthread.m4 as Brian Aker sugested. At line 126 you have: ax_pthread_flags=pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config and should be: ax_pthread_flags=pthreads none -Kthread -kthread lthread -lpthread -lpthreads -mthreads pthread --thread-safe -mt pthread-config (-lpthread instead of -pthread). then make make install and you should be good to go. Linked pylibmc against it and it authenticated to my memached server beautifully. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
Should 1.0.3 fix this issue? For me it doesn't. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
This should be fixed in trunk. ** Changed in: libmemcached Assignee: (unassigned) = Brian Aker (brianaker) ** Changed in: libmemcached Status: Triaged = Fix Released ** Changed in: libmemcached Importance: Undecided = Medium ** No longer affects: autoconf-archive ** Changed in: libmemcached Importance: Medium = Low -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
** Changed in: libmemcached Status: New = Triaged -- 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/autoconf-archive/+bug/883267/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 883267] Re: 1.0.2 (and 0.53) build fails on ubuntu oneiric
BTW this needs to be flagged for the autoconf-archive maintainers since this is their code. ** Also affects: autoconf-archive Importance: Undecided Status: New ** Also affects: libmemcached (Ubuntu) Importance: Undecided Status: New -- 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/autoconf-archive/+bug/883267/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs