Skip to content
Peter Karman edited this page Aug 8, 2014 · 1 revision
[root@localhost mod_auth_tkt]# git diff
diff --git a/configure b/configure
index 4780599..c15c550 100755
--- a/configure
+++ b/configure
@@ -69,7 +69,8 @@ fi
 test $VERSION = '2.0' && VERSION=2
 test $VERSION = '20'  && VERSION=2
 test $VERSION = '22'  && VERSION=2.2
-if [ $VERSION != '1' -a $VERSION != '2' -a $VERSION != '2.2' ]; then
+test $VERSION = '24'  && VERSION=2.4
+if [ $VERSION != '1' -a $VERSION != '2' -a $VERSION != '2.2' -a $VERSION != '2.4' ]; then
   die "Error: apache version '$VERSION' not supported"
 fi
 
[root@localhost mod_auth_tkt]# make
cd src && make all
make[1]: Entering directory `/root/src/mod_auth_tkt/src'
/bin/apxs -c -Wc,"-Wall -ansi " mod_auth_tkt.c sha2.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -Wall -ansi   -c -o mod_auth_tkt.lo mod_auth_tkt.c && touch mod_auth_tkt.slo
mod_auth_tkt.c: In function 'ticket_digest':
mod_auth_tkt.c:818:68: error: 'conn_rec' has no member named 'remote_ip'
   char *remote_ip = conf->ignore_ip > 0 ? "0.0.0.0" : r->connection->remote_ip;
                                                                    ^
mod_auth_tkt.c: In function 'redirect':
mod_auth_tkt.c:1212:3: warning: implicit declaration of function 'ap_http_method' [-Wimplicit-function-declaration]
   const char *scheme = ap_http_method(r);
   ^
mod_auth_tkt.c:1212:24: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *scheme = ap_http_method(r);
                        ^
mod_auth_tkt.c:1236:5: warning: implicit declaration of function 'apr_uri_default_port_for_scheme' [-Wimplicit-function-declaration]
     hostinfo = port == apr_uri_default_port_for_scheme(scheme) ?
     ^
mod_auth_tkt.c: In function 'get_guest_uid':
mod_auth_tkt.c:1323:14: warning: assignment from incompatible pointer type [enabled by default]
   uuid_regex = ap_pregcomp(r->pool, "%([0-9]*)U", 0);
              ^
mod_auth_tkt.c:1324:3: warning: passing argument 1 of 'ap_regexec' from incompatible pointer type [enabled by default]
   if (!ap_regexec(uuid_regex, guest_user, UUID_SUBS, regm, 0)) {
   ^
In file included from /usr/include/httpd/httpd.h:61:0,
                 from mod_auth_tkt.c:5:
/usr/include/httpd/ap_regex.h:123:17: note: expected 'const struct ap_regex_t *' but argument is of type 'struct regex_t *'
 AP_DECLARE(int) ap_regexec(const ap_regex_t *preg, const char *string,
                 ^
mod_auth_tkt.c:1324:3: warning: passing argument 4 of 'ap_regexec' from incompatible pointer type [enabled by default]
   if (!ap_regexec(uuid_regex, guest_user, UUID_SUBS, regm, 0)) {
   ^
In file included from /usr/include/httpd/httpd.h:61:0,
                 from mod_auth_tkt.c:5:
/usr/include/httpd/ap_regex.h:123:17: note: expected 'struct ap_regmatch_t *' but argument is of type 'struct regmatch_t *'
 AP_DECLARE(int) ap_regexec(const ap_regex_t *preg, const char *string,
                 ^
mod_auth_tkt.c:1328:9: warning: passing argument 5 of 'ap_pregsub' from incompatible pointer type [enabled by default]
         UUID_SUBS, regm);
         ^
In file included from mod_auth_tkt.c:5:0:
/usr/include/httpd/httpd.h:1858:20: note: expected 'struct ap_regmatch_t *' but argument is of type 'struct regmatch_t '
 AP_DECLARE(char *) ap_pregsub(apr_pool_t *p, const char *input,
                    ^
mod_auth_tkt.c: In function 'dump_config':
mod_auth_tkt.c:1419:3: warning: format '%c' expects argument of type 'int', but argument 3 has type 'const char *' [-Wformat=]
   fprintf(stderr,"TKTAuthQuerySeparator: %c\n",         conf->query_separator);
   ^
mod_auth_tkt.c: In function 'auth_tkt_check':
mod_auth_tkt.c:1442:24: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *scheme = ap_http_method(r);
                        ^
mod_auth_tkt.c: In function 'auth_tkt_register_hooks':
mod_auth_tkt.c:1601:3: warning: implicit declaration of function 'ap_hook_check_user_id' [-Wimplicit-function-declaration]
   ap_hook_check_user_id(auth_tkt_check, NULL, NULL, APR_HOOK_FIRST);
   ^
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_auth_tkt.la] Error 1
make[1]: Leaving directory `/root/src/mod_auth_tkt/src'
make: *** [all] Error 2

Clone this wiki locally