Comment 4 for bug 516774

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 516774] [NEW] make fails on Centos box

Gross.

I believe this is related to that atomic patch that was wonky for a while.

If we fix 0.37 for centos, where would we put that fix?

On 02/11/2011 10:08 AM, Launchpad Bug Tracker wrote:
> Brian Aker (brianaker) has assigned this bug to you for Fedora:
>
> OS : Centos 5.3 - kernel 2.6.18-53.el5PAE
>
> configure works, and finished with :
> ---
> Configuration summary for libmemcached version 0.37
>
> * Installation prefix: /usr/local
> * System type: pc-linux-gnu
> * Host CPU: i686
> * C Compiler: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
> * Assertions enabled: yes
> * Debug enabled: no
> * Warnings as failure: no
>
> ---
>
> but when I do 'make':
>
> CCLD clients/memerror
> CC clients/memflush.o
> CCLD clients/memflush
> CC clients/memrm.o
> CCLD clients/memrm
> CC clients/memstat.o
> CCLD clients/memstat
> CC clients/memslap.o
> CC clients/ms_conn.o
> CC clients/ms_setting.o
> CC clients/ms_sigsegv.o
> CC clients/ms_stats.o
> CC clients/ms_task.o
> CC clients/ms_thread.o
> CCLD clients/memslap
> clients/ms_conn.o: In function `ms_get_udp_request_id':
> /var/go2packages/libmemcached-0.37/clients/ms_conn.c:184: undefined reference to `__sync_fetch_and_add_4'
> clients/ms_conn.o: In function `ms_reconn_socks':
> /var/go2packages/libmemcached-0.37/clients/ms_conn.c:1055: undefined reference to `__sync_fetch_and_add_4'
> clients/ms_conn.o: In function `ms_reconn':
> /var/go2packages/libmemcached-0.37/clients/ms_conn.c:924: undefined reference to `__sync_fetch_and_add_4'
> /var/go2packages/libmemcached-0.37/clients/ms_conn.c:960: undefined reference to `__sync_fetch_and_add_4'
> clients/ms_thread.o: In function `ms_setup_thread':
> /var/go2packages/libmemcached-0.37/clients/ms_thread.c:215: undefined reference to `__sync_fetch_and_add_4'
> clients/ms_thread.o:/var/go2packages/libmemcached-0.37/clients/ms_thread.c:198: more undefined references to `__sync_fetch_and_add_4' follow
> collect2: ld returned 1 exit status
> make[2]: *** [clients/memslap] Error 1
> make[2]: Leaving directory `/var/go2packages/libmemcached-0.37'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/go2packages/libmemcached-0.37'
> make: *** [all] Error 2
>
>
> I get the same error when I try to compile 0.36 also ...
>
> ** Affects: libmemcached
> Importance: Undecided
> Assignee: Monty Taylor (mordred)
> Status: New
>
> ** Affects: fedora
> Importance: Undecided
> Status: New
>