Hello all,
I've got a webserver running Solaris 10 x86 using NIS and an Apache 2.2 webserver with mod_ssl, mod_perl2, Net::NIS and Apache::AuthenNIS support. Webserver starts fine, SSL works as well as CGI.
As soon as we try and protect a portion of the web server with NIS authentication we see the following in the error_log file:
[Fri Jul 21 15:57:58 2006] [error] [client <IP ADDRESS>] failed to resolve handler `Apache::AuthenN
+IS': Can't locate loadable object for module Apache::Constants in @INC (@INC contains: /usr/local/
+lib/perl5/5.8.7/i86pc-solaris /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/i86p
+c-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl . /usr/local/apache2
+.2) at /usr/local/lib/perl5/site_perl/5.8.7/i86pc-solaris/mod_perl.pm line 14\nCompilation failed
+in require at /usr/local/lib/perl5/site_perl/5.8.7/Apache/AuthenNIS.pm line 29.\nBEGIN failed--com
+pilation aborted at /usr/local/lib/perl5/site_perl/5.8.7/Apache/AuthenNIS.pm line 32.\nCompilation
+ failed in require at (eval 2) line 3.\n
All the research I could do on Apache::Constants seems to involve versions of mod_perl earlier than our 2.x version. Can anyone give me some pointers on how to resolve this?
My compile info is:
bash-3.00# ./httpd -V
Server version: Apache/2.2.0
Server built: Jul 21 2006 09:50:15
Server's Module Magic Number: 20051115:0
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2.2"
-D SUEXEC_BIN="/usr/local/apache2.2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
<p></P>
bash-3.00# perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=solaris, osvers=2.10, archname=i86pc-solaris
uname='sunos nmbctsweb2 5.10 generic i86pc i386 i86pc '
config_args='-Dcc=gcc'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE
+_OFFSET_BITS=64',
optimize='-O3',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)', gccosandvers='solaris2.10'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Jul 19 2006 15:27:49
@INC:
/usr/local/lib/perl5/5.8.7/i86pc-solaris
/usr/local/lib/perl5/5.8.7
/usr/local/lib/perl5/site_perl/5.8.7/i86pc-solaris
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
|