I need to compile and install an
Apache module on
AIX 6.1. This is the module
Apache module is available only as source. I manageg to compile the source and the
.so module was created, but when I start
httpd server, I get this error :
Could not load module /../httpd.2.2.x/modules/mod_authnz_crowd.so.\n\tDependent module ../httpd.2.2.x/lib/libapr-1.a(libapr-1.so.0.4.6) could not be loaded.\n\tMember libapr-1.so.0.4.6 is not found in archive
My conclusion : its searching for a
httpd.2.2.x/lib/libapr-1.a which contains
B. So I searched for this library
libapr-1.a in other places on my system; its present and contains the
ls -la libapr-1.a
libapr-1.a -> ../../opt/freeware/lib/libapr-1.a
ar -v -t libapr-1.a
rwxr-xr-x 0/0 922171 Jul 24 22:05 2012 libapr-1.so.0.4.6
Is it a linking, LIB, LIBPATH etc. problem ? How do I fix it.
If I create a link
httpd.2.2.x/lib/libapr-1.a -> ../../opt/freeware/lib/libapr-1.a, it gives a core dump.
Since this project depends on a lot of other libs, setting
LIB=opt/freeware/libmakes it fail for other dependencies
make installis when it tries to restart
apacheand I get the above error. To test, I removed the references to this module from the
httpd.confand the server was running again.
I tried to compile a different version of
apachefrom source earlier which was not completely successful. I have also installed an
apr rpmwhich was required as a dependency somewhere. So is this because there is a mix up of versions of
apr, apr-util and apache?