mod_auth_any works on Linux but not on OSX. apxs i -c, and then apachectl:
Syntax error on line 271 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/mod_auth_any.so into server: (reason unknown)
Any ideas?
Line 271 is: LoadModule auth_any_module /usr/libexec/httpd/mod_auth_any.so
Relevant screen dumps:
[root]~/mod_auth_any/src# uname -a Darwin macserver 6.6 Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power Macintosh powerpc
[root]~/mod_auth_any/src# httpd -l Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper /usr/sbin/suexec
[root]~/mod_auth_any/src# httpd -v Server version: Apache/1.3.27 (Darwin) Server built: 01/15/03 19:22:17
[root]~/mod_auth_any/src# httpd -V Server version: Apache/1.3.27 (Darwin) Server built: 01/15/03 19:22:17 Server's Module Magic Number: 19990320:13 Server compiled with.... -D EAPI -D HAVE_MMAP -D USE_MMAP_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_FLOCK_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D HARD_SERVER_LIMIT=2048 -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard" -D DEFAULT_LOCKFILE="/var/run/httpd.lock" -D DEFAULT_ERRORLOG="/var/log/httpd/error_log" -D TYPES_CONFIG_FILE="/etc/httpd/mime.types" -D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf" -D ACCESS_CONFIG_FILE="/etc/httpd/access.conf" -D RESOURCE_CONFIG_FILE="/etc/httpd/srm.conf"
And google is very unhelpful.
On May 30, 2003 at 12:03, Satya wrote:
mod_auth_any works on Linux but not on OSX. apxs i -c, and then apachectl:
Syntax error on line 271 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/mod_auth_any.so into server: (reason unknown)
Solution for the archives: Always check the libraries. In this case, we were using strnlen(), which was available with Linux/glibc, but not on OSX/libc. We wrote our own and #ifdef'd it in. apxs only compiles, the linking happens at runtime.
On Tue, 3 Jun 2003, Satya wrote:
we were using strnlen(), which was available with Linux/glibc, but not
tch tch... using GNU extensions instead of writing portable code
On Jun 4, 2003 at 09:31, Philip S Tellis wrote:
On Tue, 3 Jun 2003, Satya wrote:
we were using strnlen(), which was available with Linux/glibc, but not
tch tch... using GNU extensions instead of writing portable code
It's portable now.