SYSTEM SPECS
#####
Solaris 8
gcc 3.1
crle Configuration file [3]: /var/ld/ld.config
Default Library Path (ELF):
/usr/lib:/usr/local/lib:/usr/local/ldapsdk/lib
Trusted Directories (ELF): /usr/lib/secure (system default)
Netscape ldapsdk 5.08 (libraries at /usr/local/ldapsdk/lib)
Perl Version 5.8
Apache 2.0.43
#####
Installing as root
INSTALL
./configure --prefix=/opt/d00/apache/external/web --with-mpm=prefork --enable-so --with-ldap --enable-ldap --enable-auth-ldap
The configure seems to go fine as does the 'make' and 'make install'
RUNNING APACHE
After the install modules are listed as statically compiled
root: [80] ./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_auth_ldap.c
util_ldap.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
Then I added an .htaccess file to htdocs and am able to authenticate
against ldap. Everything seems fine at this point. Server is running,
authenticating agains ldap and serving pages. It starts and stops w/o
any apparent problems.
Next I add mod_proxy as a DSO
./apxs -a -i -c /opt/d00/install.d/apache.d/httpd-2.0.43/modules/proxy/mod_proxy.c
and successfully built the proxy module, it was added to the modules
directory and the httpd.conf file was edited to load this module. The
http server remained running and I am still able to authenticate
agains the ldap server.
HERE IS WHERE THE PROBLEM IS...
The server fails on restart or stop/start
root: [68] ./apachectl restart
Syntax error on line 230 of
/opt/d00/apache/external/web/conf/httpd.conf:
Cannot load /opt/d00/apache/external/web/modules/mod_proxy.so into
server: ld.so.1: /opt/d00/apache/external/web/bin/httpd: fatal:
relocation error: file
/opt/d00/apache/external/web/modules/mod_proxy.so: symbol
ap_proxyerror: referenced symbol not found
Line 230 is LoadModule proxy_module modules/mod_proxy.so
If I comment out this line, the server starts fine.
From the modules directory I run ldd with no errors
root: [76] ldd mod_proxy.so
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
/usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
This problem can be replicated with other modules that are not
statically compiled but added as DSO's.
Why won't Apache load the moudle into the server? Any ideas?
Thanks in advance
Jon Reed
#####
Solaris 8
gcc 3.1
crle Configuration file [3]: /var/ld/ld.config
Default Library Path (ELF):
/usr/lib:/usr/local/lib:/usr/local/ldapsdk/lib
Trusted Directories (ELF): /usr/lib/secure (system default)
Netscape ldapsdk 5.08 (libraries at /usr/local/ldapsdk/lib)
Perl Version 5.8
Apache 2.0.43
#####
Installing as root
INSTALL
./configure --prefix=/opt/d00/apache/external/web --with-mpm=prefork --enable-so --with-ldap --enable-ldap --enable-auth-ldap
The configure seems to go fine as does the 'make' and 'make install'
RUNNING APACHE
After the install modules are listed as statically compiled
root: [80] ./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_auth_ldap.c
util_ldap.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
Then I added an .htaccess file to htdocs and am able to authenticate
against ldap. Everything seems fine at this point. Server is running,
authenticating agains ldap and serving pages. It starts and stops w/o
any apparent problems.
Next I add mod_proxy as a DSO
./apxs -a -i -c /opt/d00/install.d/apache.d/httpd-2.0.43/modules/proxy/mod_proxy.c
and successfully built the proxy module, it was added to the modules
directory and the httpd.conf file was edited to load this module. The
http server remained running and I am still able to authenticate
agains the ldap server.
HERE IS WHERE THE PROBLEM IS...
The server fails on restart or stop/start
root: [68] ./apachectl restart
Syntax error on line 230 of
/opt/d00/apache/external/web/conf/httpd.conf:
Cannot load /opt/d00/apache/external/web/modules/mod_proxy.so into
server: ld.so.1: /opt/d00/apache/external/web/bin/httpd: fatal:
relocation error: file
/opt/d00/apache/external/web/modules/mod_proxy.so: symbol
ap_proxyerror: referenced symbol not found
Line 230 is LoadModule proxy_module modules/mod_proxy.so
If I comment out this line, the server starts fine.
From the modules directory I run ldd with no errors
root: [76] ldd mod_proxy.so
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
/usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
This problem can be replicated with other modules that are not
statically compiled but added as DSO's.
Why won't Apache load the moudle into the server? Any ideas?
Thanks in advance
Jon Reed