Hi! I couldn't compile memcached-1.4.11 with cyrus-sasl-2.1.22-5.el5_4.3 on CentOS 5.7. I was getting this error: sasl_defs.c:145: error: 'sasl_callback_ft' undeclared here (not in a function)
I searched google (see http://comments.gmane.org/gmane.comp.security.cyrus.sasl/7143) and I saw that they've added sasl_callback_ft in version 2.1.25. To fix it I've added this in sasl_defs.c: #if SASL_VERSION_FULL < ((2 << 16) | (1 << 8) | 25) // if version < 2.1.25 typedef int (*sasl_callback_ft)(void); #endif However now I get link error: memcached-thread.o: In function `refcount_incr': thread.c:(.text+0x15): undefined reference to `__sync_add_and_fetch_2' memcached-thread.o: In function `refcount_decr': thread.c:(.text+0x33): undefined reference to `__sync_sub_and_fetch_2' collect2: ld returned 1 exit status make[2]: *** [memcached] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 On Jan 17, 7:36 am, dormando <[email protected]> wrote: > http://code.google.com/p/memcached/wiki/ReleaseNotes1411 > > ^ All info is above. If you're on 1.4.10, you should highly consider > upgrading. If you want to start memcached and not hardly ever restart it, > consider learning the new slab reassign options :) > > About a month late, given the holidays and some complications with getting > slab reassign to work. > > have fun, > -Dormando
