That did it; thanks! Also, the memcached module fails on './configure' on CentOS 7 due to an undefined reference to `pthread_once'. Excerpt from config.log (full attached): configure:2994: gcc -c -g -O2 conftest.c >&5 configure:2994: $? = 0 configure:2997: result: yes configure:3169: checking for memcached in -lmemcached configure:3183: gcc -o conftest -g -O2 conftest.c -lmemcached >&5 /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libmemcached.so: undefined reference to `pthread_once' collect2: error: ld returned 1 exit status configure:3183: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | extern char memcached(); | int | main () | { | memcached() | ; | return 0; | } configure:3190: result: no I worked around it with the following: [root@radiustest ~/freeradius-server]# git diff diff --git a/src/modules/rlm_cache/drivers/rlm_cache_memcached/configure b/src/modules/rlm_cache/drivers/rlm_cache_memcached/configure index 72eede2..4ca8994 100755 --- a/src/modules/rlm_cache/drivers/rlm_cache_memcached/configure +++ b/src/modules/rlm_cache/drivers/rlm_cache_memcached/configure @@ -3124,7 +3124,7 @@ sm_lib_safe=`echo "memcached" | sed 'y%./+-%__p_%'` sm_func_safe=`echo "memcached" | sed 'y%./+-%__p_%'` old_LIBS="$LIBS" -old_CPPFLAGS="$CPPFLAGS" +old_CPPFLAGS="$CPPFLAGS -pthread" smart_lib= smart_ldflags= smart_lib_dir= [root@radiustest ~/freeradius-server]# Just thought you may want to know that. Thanks again, Kyle On Mon, Apr 13, 2015 at 05:18:16PM -0400, Arran Cudbard-Bell wrote:
On 13 Apr 2015, at 16:59, Kyle Birkeland <kbirkela@utk.edu> wrote:
Hello,
I'm trying to get rlm_cache_memcached working, but I'm having some issues with freeradius merging the values from memcached - all my values get truncated. Am I doing it wrong or is this a bug?
Pushed a fix. Could you try with v3.0.x HEAD.
https://github.com/FreeRADIUS/freeradius-server/archive/v3.0.x.zip
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html