bug occurs when do "configure --enable-memaslap; make" on ubuntu 12.04 LTS(amd64)

Bug #1007727 reported by tniuli on 2012-06-02
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libmemcached
Medium
Brian Aker

Bug Description

during compiling libmemcached-1.0.8

when doing "configure; make; sudo make install", it works well;
However, when doing "configure --enable-memaslap; make" to enable memaslap tool, it fails.
Error information is as follows:

...
...
...
  CXX libmemcached/byteorder.o
  CXXLD clients/memcapable
  CXX clients/memcat.o
  CXXLD clients/memcat
  CXX clients/memcp.o
  CXXLD clients/memcp
  CXX clients/memdump.o
  CXXLD clients/memdump
  CXX clients/memerror.o
  CXXLD clients/memerror
  CXX clients/memexist.o
  CXXLD clients/memexist
  CXX clients/memtouch.o
  CXXLD clients/memtouch
  CXX clients/memflush.o
  CXXLD clients/memflush
  CXX clients/memparse.o
  CXXLD clients/memparse
  CXX clients/memping.o
  CXXLD clients/memping
  CXX clients/memrm.o
  CXXLD clients/memrm
  CXX clients/clients_memslap-memslap.o
  CXX clients/clients_memslap-execute.o
  CXXLD clients/memslap
  CXX clients/memstat.o
  CXXLD clients/memstat
  CC clients/ms_setting.o
  CXX clients/execute.o
  CXXLD clients/memaslap
clients/ms_sigsegv.o: In function `ms_signal_segv':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_sigsegv.c:41: undefined reference to `pandora_print_callstack'
clients/ms_conn.o: In function `ms_update_event':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2422: undefined reference to `event_del'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2431: undefined reference to `event_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2436: undefined reference to `event_base_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2439: undefined reference to `event_add'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2425: undefined reference to `event_del'
clients/ms_conn.o: In function `ms_item_win_init':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:421: undefined reference to `pthread_getspecific'
clients/ms_conn.o: In function `ms_conn_sock_init':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:476: undefined reference to `pthread_getspecific'
clients/ms_conn.o: In function `ms_conn_event_init':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:570: undefined reference to `pthread_getspecific'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:573: undefined reference to `event_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:574: undefined reference to `event_base_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:577: undefined reference to `event_add'
clients/ms_conn.o: In function `ms_conn_free':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:627: undefined reference to `pthread_getspecific'
clients/ms_conn.o: In function `ms_conn_close':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:666: undefined reference to `pthread_getspecific'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:670: undefined reference to `event_del'
clients/ms_conn.o: In function `ms_reconn_socks':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:1003: undefined reference to `pthread_getspecific'
clients/ms_conn.o: In function `ms_reconn':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:901: undefined reference to `pthread_getspecific'
clients/ms_conn.o: In function `ms_need_yield':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2460: undefined reference to `pthread_getspecific'
clients/ms_thread.o: In function `ms_clock_handler':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:113: undefined reference to `pthread_getspecific'
clients/ms_thread.o: In function `ms_set_current_time':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:51: undefined reference to `pthread_getspecific'
clients/ms_thread.o:/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:96: more undefined references to `pthread_getspecific' follow
clients/ms_thread.o: In function `ms_clock_handler':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:138: undefined reference to `event_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:139: undefined reference to `event_base_set'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:140: undefined reference to `event_add'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:128: undefined reference to `event_del'
clients/ms_thread.o: In function `ms_check_sock_timeout':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:64: undefined reference to `pthread_getspecific'
clients/ms_thread.o: In function `ms_setup_thread':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:184: undefined reference to `pthread_setspecific'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:193: undefined reference to `event_init'
clients/ms_thread.o: In function `ms_worker_libevent':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:272: undefined reference to `pthread_getspecific'
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:273: undefined reference to `event_base_loop'
clients/ms_thread.o: In function `ms_thread_init':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:330: undefined reference to `pthread_key_create'
clients/ms_thread.o: In function `ms_create_worker':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:293: undefined reference to `pthread_create'
clients/ms_thread.o: In function `ms_thread_cleanup':
/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_thread.c:350: undefined reference to `pthread_key_delete'
collect2: ld returned 1 exit status
make[1]: *** [clients/memaslap] Error 1
make[1]: Leaving directory `/home/tieniu/projects/memcached/tarball/libmemcached-1.0.8'
make: *** [all] Error 2

tniuli (tniuli) on 2012-06-02
Changed in libmemcached:
status: New → Opinion
status: Opinion → Invalid
status: Invalid → Incomplete
description: updated
Changed in libmemcached:
status: Incomplete → New
tniuli (tniuli) on 2012-06-02
Changed in libmemcached:
assignee: nobody → tniuli (tniuli)
assignee: tniuli (tniuli) → nobody
Brian Aker (brianaker) wrote :

Do you have libevent installed?

tniuli (tniuli) wrote :

yeah, libevent has been installed. And, libmemcached could be compiled with default options. The only problem occurs when enabling memalap by add option "--enable-memaslap" to "./configure" command.

Download full text (7.3 KiB)

That tool is very problematic which is why it is not compiled by default.

On Jun 4, 2012, at 7:00, tniuli <email address hidden> wrote:

> yeah, libevent has been installed. And, libmemcached could be compiled
> with default options. The only problem occurs when enabling memalap by
> add option "--enable-memaslap" to "./configure" command.
>
> --
> You received this bug notification because you are subscribed to
> libmemcached.
> https://bugs.launchpad.net/bugs/1007727
>
> Title:
> bug occurs when do "configure --enable-memaslap; make" on ubuntu 12.04
> LTS(amd64)
>
> Status in libmemcached - A C and C++ client library for memcached:
> New
>
> Bug description:
> during compiling libmemcached-1.0.8
>
> when doing "configure; make; sudo make install", it works well;
> However, when doing "configure --enable-memaslap; make" to enable memaslap tool, it fails.
> Error information is as follows:
>
> ...
> ...
> ...
> CXX libmemcached/byteorder.o
> CXXLD clients/memcapable
> CXX clients/memcat.o
> CXXLD clients/memcat
> CXX clients/memcp.o
> CXXLD clients/memcp
> CXX clients/memdump.o
> CXXLD clients/memdump
> CXX clients/memerror.o
> CXXLD clients/memerror
> CXX clients/memexist.o
> CXXLD clients/memexist
> CXX clients/memtouch.o
> CXXLD clients/memtouch
> CXX clients/memflush.o
> CXXLD clients/memflush
> CXX clients/memparse.o
> CXXLD clients/memparse
> CXX clients/memping.o
> CXXLD clients/memping
> CXX clients/memrm.o
> CXXLD clients/memrm
> CXX clients/clients_memslap-memslap.o
> CXX clients/clients_memslap-execute.o
> CXXLD clients/memslap
> CXX clients/memstat.o
> CXXLD clients/memstat
> CC clients/ms_setting.o
> CXX clients/execute.o
> CXXLD clients/memaslap
> clients/ms_sigsegv.o: In function `ms_signal_segv':
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_sigsegv.c:41: undefined reference to `pandora_print_callstack'
> clients/ms_conn.o: In function `ms_update_event':
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2422: undefined reference to `event_del'
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2431: undefined reference to `event_set'
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2436: undefined reference to `event_base_set'
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2439: undefined reference to `event_add'
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:2425: undefined reference to `event_del'
> clients/ms_conn.o: In function `ms_item_win_init':
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:421: undefined reference to `pthread_getspecific'
> clients/ms_conn.o: In function `ms_conn_sock_init':
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_conn.c:476: undefined reference to `pthread_getspecific'
> clients/ms_conn.o: In function `ms_conn_event_init':
> /home/tieniu/projects/memcached/tarball/libmemcached-1.0.8/clients/ms_...

Read more...

Brian Aker (brianaker) wrote :

This has been fixed in trunk.

Changed in libmemcached:
milestone: none → 1.0.15
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Medium
status: New → Fix Committed
Brian Aker (brianaker) on 2012-12-23
Changed in libmemcached:
status: Fix Committed → Fix Released
Seyfer (seyferseed) wrote :

I have almost same problem when compile libmemcached 1.0.16

CXXLD clients/memslap
libmemcached/.libs/libmemcached.so: undefined reference to `pthread_once'
collect2: error: ld returned 1 exit status
make[1]: *** [clients/memparse] Ошибка 1
make[1]: *** Ожидание завершения заданий...
make[1]: Выход из каталога `/home/seyfer/libmemcached-1.0.16'
make: *** [all] Ошибка 2

How to fix?

Seyfer (seyferseed) wrote :

And libmemcached 1.0.16 too. And i can't compile libmemcached 1.0.17 with other bug (reported in comments).

Seyfer (seyferseed) wrote :

Sorry. I mean libmemcached 1.0.15 in last message.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers