Hi Mathieu,
first of all thank you for this module.
I had some troubles to install it on a OpenSuse 13.1.
I installed all the required softwares but when I tried to compile the module
I got this error:
make
/usr/sbin/apxs2 -lmemcache -L/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/lib -I/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/include -c mod_auth_memcookie.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -Wall -DLDAP_DEPRECATED -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include -I/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/include -c -o mod_auth_memcookie.lo mod_auth_memcookie.c && touch mod_auth_memcookie.slo
mod_auth_memcookie.c: In function 'Auth_memCookie_check_cookie':
mod_auth_memcookie.c:343:51: error: 'conn_rec' has no member named 'remote_ip'
szRemoteIP=apr_pstrdup(r->pool,r->connection->remote_ip);
^
mod_auth_memcookie.c: In function 'Auth_memCookie_check_auth':
mod_auth_memcookie.c:461:5: warning: implicit declaration of function 'ap_requires' [-Wimplicit-function-declaration]
reqs_arr = ap_requires(r);
^
mod_auth_memcookie.c:461:14: warning: assignment makes pointer from integer without a cast [enabled by default]
reqs_arr = ap_requires(r);
^
In file included from mod_auth_memcookie.c:40:0:
mod_auth_memcookie.c: At top level:
/usr/local/include/memcache.h:926:30: warning: inline function 'mc_global_ctxt' declared but never defined [enabled by default]
inline struct memcache_ctxt *mc_global_ctxt(void);
^
/usr/local/include/memcache.h:926:30: warning: inline function 'mc_global_ctxt' declared but never defined [enabled by default]
apxs:Error: Command failed with rc=65536
.
make: *** [mod_auth_memcookie.la] Error 1
Looking for the "remote_ip" in the apache library:
grep remote_ip /usr/include/apache2/*
/usr/include/apache2/ap_mmn.h: * 20111130.0 (2.4.0-dev) c->remote_ip becomes c->peer_ip and r->client_ip,
So I modified the code using client_ip instead of remote_ip and it was able to create the library: /root/tests/mod_authmemcookie_v1.0.2/mod_auth_memcookie.lo
I didn't tried it yet, but do you think it could be a solution for my problem?
Thank you
Cheers.
it's compile error about compatibility with apache 2.4