Apache mod_auth_memcookie
Bjarne D Mathiesen
macintosh at mathiesen.info
Wed Jan 27 11:36:43 PST 2010
I'm trying to install mod_auth_memcookie from here :
http://authmemcookie.sourceforge.net/ and I've been able to get it to
compile and install, but upon activation I get a missing symbol error.
At present I'm at my wits end as I'm not that well versed in C etc.
So, let me try and explain what I've done so far!
I'm installing macports in /macports instead of /opt/local but that
shouldn't give that much of a problem. And Apache is installed in
/WebServer/Apache2 as I'm doing my own compile of it
port install memcached
port install libmemcache
declare authmemcookieVer=${2:-'1.0.2'}
if [ ! -e mod_authmemcookie_v${authmemcookieVer}.tar.gz ]
then
curl -O \
--url
"http://freefr.dl.sourceforge.net/project/authmemcookie/authmemcookie/${authmemcookieVer}/mod_authmemcookie_v${authmemcookieVer}.tar.gz"
fi
rm -rf mod_authmemcookie_v${authmemcookieVer}
tar -xzf mod_authmemcookie_v${authmemcookieVer}.tar.gz
cd mod_authmemcookie_v${authmemcookieVer}/
sed -i '' -E -e '/MY_APXS/s/=.*/=\/WebServer\/Apache2\/bin\/apxs/' Makefile
sed -i '' -E -e '/MY_LDFLAGS/s/=.*/=-lmemcache -L\/macports\/lib/' Makefile
sed -i '' -E -e '/MY_CFLAGS/s/=.*/=-I\/macports\/include
-I\/macports\/include\/memcache/' Makefile
sed -i '' -E -e 's!\$\(MY_APXS\) \$\(MY_LDFLAGS\) \$\(MY_CFLAGS\) -c
\$\<!\$\(MY_APXS\) -c \$\(MY_LDFLAGS\) \$\(MY_CFLAGS\) \$\<!' Makefile
sed -i '' -E -e '/memcache\.h/p' -e 's!memcache\.h!memcache/buffer\.h!'
mod_auth_memcookie.c
make -w
make install
now, when I do : httpd -S I get :
Syntax error on line 75 of
/WebServer/Apache2/conf/standard/00000-dso.conf: Cannot load
/WebServer/Apache2/modules/mod_auth_memcookie.so into server:
dlopen(/WebServer/Apache2/modules/mod_auth_memcookie.so, 10): Symbol not
found: _mcm_buf_len\n Referenced from:
/macports/lib/libmemcache.0.dylib\n Expected in: flat namespace\n in
/macports/lib/libmemcache.0.dylib
Anybody who can help me further in my quest to get this to work ???
--
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.6.2 Snow Leopard ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
http://webadmin.mathiesen.info/
More information about the macports-users
mailing list