[Modules] [apr_memcache] Crash when calling apr_memcache_create
Jérôme Renard
jr at ez.no
Wed Jul 30 11:00:20 EDT 2008
Edward Rudd a écrit :
Edward,
First of all, thanks for your support
> Can you log the value of conf->max_servers? Also log the value of
> apr_memcache_create?
>
> ie.
> ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, "Function: %pp, max_servers:
> %d", apr_memcache_create, conf->max_servers);
I got this error after compiling and relaunching Apache :
httpd: Syntax error on line 464 of /usr/local/apache-2.2.9/conf/httpd.conf:
Cannot load /usr/local/apache-2.2.9/modules/mod_memcached_include.so into server:
Symbol not found: _apr_memcache_create
Referenced from: /usr/local/apache-2.2.9/modules/mod_memcached_include.so
Expected in: flat namespace
Which seems to prove that the library is not linked correctly.
> from the stack trace it looks like the library isn't being linked in
> correctly, and it's not finding the apr_memcache_create method.. What
> OS are you running this on?
Mac Os X. This is strange as I did not get any errors when compiling.
Here is the header of my Makefile :
## Makefile -- Build procedure for sample memcached_include Apache module
## Autogenerated via ``apxs -n memcached_include -g''.
## apxs -c -lapr_memcache -L/opt/local/lib -I/opt/local/include/apr_memcache-0 -DDEBUG_INCLUDE mod_memcached_include.c
builddir=.
top_srcdir=/usr/local/apache-2.2.9
top_builddir=/usr/local/apache-2.2.9
include /usr/local/apache-2.2.9/build/special.mk
# the used tools
APXS=apxs
APACHECTL=apache2ctl
# additional defines, includes and libraries
DEFS=-DDEBUG_INCLUDE
INCLUDES=-I/opt/local/include/apr_memcache-0
LIBS=-L/opt/local/lib -lapr_memcache
And I have :
- /opt/local/include/apr_memcache-0/apr_memcache.h
- /opt/local/lib/libapr_memcache.la
Thanks in advance for your help.
Best Regards.
More information about the Modules
mailing list