Monday, April 18, 2022

Is there a way to build mod_auth_kerb?

Hello,
I am trying to build mod_auth_kerb for apache2 on OpenBSD 6.9
I installed heimdal-libs-7.7.0p0 and downloaded the latest src for
mod_auth_kerb from github
After unpacking and configuring the following way:
./configure --with-krb5=/usr/local/heimdal --with-krb4=no
I try to run 'make'
I get a bunch of warnings like these:

```
/usr/local/heimdal/include/krb5-protos.h:18:52: note: expanded from macro 'KRB5_DEPRECATED_FUNCTION'
#define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
^
src/mod_auth_kerb.c:1547:47: warning: incompatible pointer types passing 'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
[-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
const request_rec *r, const char *fmt, ...)
^
src/mod_auth_kerb.c:1553:50: warning: incompatible pointer types passing 'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
[-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_NOTICE, 0, r,
^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
const request_rec *r, const char *fmt, ...)
^
src/mod_auth_kerb.c:1560:44: warning: incompatible pointer types passing 'request_rec *' (aka 'struct request_rec *') to parameter of type 'const char *'
[-Wincompatible-pointer-types]
log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
^
src/mod_auth_kerb.c:379:46: note: passing argument to parameter 'fmt' here
const request_rec *r, const char *fmt, ...)
```

and the following error:

```
Error while executing cc -O2 -pipe -g -D_POSIX_THREADS -pthread -I/usr/local/include/apache2 -I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I/usr/local/include/db4
-I/usr/local/include -I. -Ispnegokrb5 -I/usr/local/heimdal/include -I/usr/local/include -c src/mod_auth_kerb.c -fPIC -DPIC -o src/.libs/mod_auth_kerb.o
apxs:Error: Command failed with rc=65536
.
*** Error 1 in /root/mod_auth_kerb-master (Makefile:16 'src/mod_auth_kerb.so')
```

Is it possible to compile that module on OpenBSD at all?

--
Best regards
Maksim Rodin

No comments:

Post a Comment