httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Sturm" <aaron_st...@hotmail.com>
Subject [users@httpd] Re: mod_auth_ldap
Date Sun, 22 Dec 2002 05:43:36 GMT
Thanks for everyone's help. I finally used muquit's mod_auth_ldap (per
someone's suggestion) and got it to compile and run on solaris, but on HPUX,
I get this error:

Here's the error I get:
root@pfhem01 [/opt/apache/bin]
# ./apachectl start
Syntax error on line 230 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/modules/mod_auth_ldap.so into server: Unresolved
symbol: ldap_unbind (code)  from /opt/apache/modules/mod_auth_ldap.so

First try:
# /opt/apache/bin/apxs -i -a -c -I/usr/local/include mod_auth_ldap.c \
> /usr/local/lib/libldap.a \
> /usr/local/lib/liblber.a
/opt/apache/build/libtool --silent --mode=compile
c   -DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_E
XTENDED -g -O2 -I/opt/apache/include -I/usr/local/include  -c -o
mod_auth_ldap.lo mod_auth_ldap.c && touch mod_auth_ldap.slo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/opt/apache/build/libtool --silent --mode=link gcc -o
mod_auth_ldap.la -I/usr/local/include  -rpath
/opt/apache/modules -module -avoid-version  mod_auth_ldap.lo
/usr/local/lib/libldap.a /usr/local/lib/liblber.a
/usr/ccs/bin/ld: DP relative code in file /usr/local/lib/libldap.a(open.o) -
shared library must be position
    independent.  Use +z or +Z to recompile.
apxs:Error: Command failed with rc=65536

Second try:
#/opt/apache/bin/apxs -i -a -I/usr/local/include -L/usr/local/lib -c
mod_auth_ldap.c
/opt/apache/build/libtool --silent --mode=compile
c   -DAP_HAVE_DESIGNATED_INITIALIZER -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_E
XTENDED -g -O2 -I/opt/apache/include -I/usr/local/include  -c -o
mod_auth_ldap.lo mod_auth_ldap.c && touch mod_auth_ldap.slo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
/opt/apache/build/libtool --silent --mode=link gcc -o
mod_auth_ldap.la -I/usr/local/include  -L/usr/local/lib -rpath
/opt/apache/modules -module -avoid-version  mod_auth_ldap.lo
/opt/apache/build/instdso.sh SH_LIBTOOL='/opt/apache/build/libtool'
mod_auth_ldap.la /opt/apache/modules
/opt/apache/build/libtool --mode=install cp mod_auth_ldap.la
/opt/apache/modules/
cp .libs/mod_auth_ldap.sl /opt/apache/modules/mod_auth_ldap.sl
chmod 555 /opt/apache/modules/mod_auth_ldap.sl
cp .libs/mod_auth_ldap.lai /opt/apache/modules/mod_auth_ldap.la
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/apache/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `SHLIB_PATH' environment variable
     during execution
   - use the `-Wl,+b -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /opt/apache/modules/mod_auth_ldap.so
[activating module `auth_ldap' in /opt/apache/conf/httpd.conf]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message