You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by tidal <ki...@yahoo.com.hk> on 2007/05/15 05:36:41 UTC

[users@httpd] Can't install LDAP module on solaris8

Hi all,

I install apache 2.0.58 on solaris8 and download the ldap module from (URL
address blocked: See forum rules)

# ./configure --with-apxs=/i03_01/home/it/itadm/itjerry/apache/bin/apxs
--with-ldap-dir=/i03_01/home/it/itadm/itjerry/ldaplib
--with-apache-dir=/i03_01/home/it/itadm/itjerry/apache

loading cache ./config.cache
checking for ranlib... (cached) ranlib
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for memory.h... (cached) yes
checking for malloc.h... (cached) yes
checking for unistd.h... (cached) yes
checking for ctype.h... (cached) yes
checking for limits... (cached) no
checking for stdint.h... (cached) no
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for socket... no
checking for __socket... no
checking for socket in -lsocket... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... no
checking for __gethostbyaddr... no
checking for gethostbyaddr in -lnsl... yes
checking for yp_get_default_domain... yes
checking for res_search... no
checking for __res_search... no
checking for res_search in -lresolv... yes
checking for inet_aton... yes
checking for dn_skipname... yes
checking for path of Apache 2 install directory...
/i03_01/home/it/itadm/itjerry/apache
checking for /i03_01/home/it/itadm/itjerry/apache/bin/apr-config... found
checking for /i03_01/home/it/itadm/itjerry/apache/bin/apu-config... found
checking for memory cache support... none. memory caching support will be
off
checking for Apache 2.0 module support via DSO through APXS... yes
checking for path of LDAP SDK... /i03_01/home/it/itadm/itjerry/ldaplib
checking for 3 arg ldap_set_rebind_proc... (cached) no
checking for ldap_start_tls_s... (cached) no
checking whether to enable SSL... yes
creating ./config.status
creating Makefile
creating mk_withldap

======================================================================
You're compiling the module as Dynamic Shared Object (DSO)
Make sure your apache is compiled with DSO support. To test, type
$ /path_of/httpd -l and make sure mod_so.c is in the list

Final Compilation Flags:
HASHLIB_TYPE=
HASHINC=
HASHLIB=
APR_LIBS = -L/i03_01/home/it/itadm/itjerry/apache/lib -lapr-0 -lsendfile
-lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl
APU_LIBS = -L/i03_01/home/it/itadm/itjerry/apache/lib -laprutil-0 -lexpat
APXS = /i03_01/home/it/itadm/itjerry/apache/bin/apxs
DEFINES = -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1
-DHAVE_MEMORY_H=1 -DHAVE_MALLOC_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SOCKET=1 -DHAVE_LIBSOCKET=1
-DHAVE_HTONL=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_LIBNSL=1
-DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_RES_SEARCH=1 -DHAVE_LIBRESOLV=1
-DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_NSLDAP=1 -DHAVE_LDAP=1
-DHAVE_SSL=1
LDAP_DIR = /i03_01/home/it/itadm/itjerry/ldaplib
LDAP_INCLUDE_DIR = /i03_01/home/it/itadm/itjerry/ldaplib/include
LDAP_LIB_DIR = /i03_01/home/it/itadm/itjerry/ldaplib/lib
CPPFLAGS = -I/i03_01/home/it/itadm/itjerry/ldaplib/include
LDFLAGS = -L/i03_01/home/it/itadm/itjerry/ldaplib/lib
LIBS = -lssl3 -lprldap50 -lldap50 -lssldap50 -lplds4 -lplc4 -lnspr4 -lresolv
-lnsl -lsocket
======================================================================
If everything looks ok, at the shell prompt, type:
make
make install

# make
/i03_01/home/it/itadm/itjerry/apache/bin/apxs -c -DSTDC_HEADERS=1
-DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_MALLOC_H=1
-DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1
-DHAVE_SOCKET=1 -DHAVE_LIBSOCKET=1 -DHAVE_HTONL=1 -DHAVE_GETHOSTNAME=1
-DHAVE_GETHOSTBYADDR=1 -DHAVE_LIBNSL=1 -DHAVE_YP_GET_DEFAULT_DOMAIN=1
-DHAVE_RES_SEARCH=1 -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1
-DHAVE_DN_SKIPNAME=1 -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
-I/i03_01/home/it/itadm/itjerry/ldaplib/include mod_auth_ldap.c
/i03_01/home/it/itadm/itjerry/apache/build/libtool --silent --mode=compile
gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -pthreads
-I/i03_01/home/it/itadm/itjerry/apache/include
-I/i03_01/home/it/itadm/itjerry/apache/include
-I/i03_01/home/it/itadm/itjerry/apache/include
-I/i03_01/home/it/itadm/itjerry/ldaplib/include -DSTDC_HEADERS=1
-DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_MALLOC_H=1
-DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1
-DHAVE_SOCKET=1 -DHAVE_LIBSOCKET=1 -DHAVE_HTONL=1 -DHAVE_GETHOSTNAME=1
-DHAVE_GETHOSTBYADDR=1 -DHAVE_LIBNSL=1 -DHAVE_YP_GET_DEFAULT_DOMAIN=1
-DHAVE_RES_SEARCH=1 -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1
-DHAVE_DN_SKIPNAME=1 -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1 -c -o
mod_auth_ldap.lo mod_auth_ldap.c && touch mod_auth_ldap.slo
/i03_01/home/it/itadm/itjerry/apache/build/libtool --silent --mode=link gcc
-o mod_auth_ldap.la -rpath /i03_01/home/it/itadm/itjerry/apache/modules
-module -avoid-version mod_auth_ldap.lo
*******
/i03_01/home/it/itadm/itjerry/apache/bin/apxs -c mod_auth_ldap.o
-L/i03_01/home/it/itadm/itjerry/ldaplib/lib -lssl3 -lprldap50 -lldap50
-lssldap50 -lplds4 -lplc4 -lnspr4 -lresolv -lnsl -lsocket
/i03_01/home/it/itadm/itjerry/apache/build/libtool --silent --mode=link gcc
-o mod_auth_ldap.la -rpath /i03_01/home/it/itadm/itjerry/apache/modules
-module -avoid-version mod_auth_ldap.o
-L/i03_01/home/it/itadm/itjerry/ldaplib/lib -lssl3 -lprldap50 -lldap50
-lssldap50 -lplds4 -lplc4 -lnspr4 -lresolv -lnsl -lsocket

*** Warning: Linking the shared library mod_auth_ldap.la against the
non-libtool
*** objects mod_auth_ldap.o is not portable!

# make install

****** Installing mod_auth_ldap module ******

/i03_01/home/it/itadm/itjerry/apache/bin/apxs -i -a -c mod_auth_ldap.o
-L/i03_01/home/it/itadm/itjerry/ldaplib/lib -lssl3 -lprldap50 -lldap50
-lssldap50 -lplds4 -lplc4 -lnspr4 -lresolv -lnsl -lsocket
/i03_01/home/it/itadm/itjerry/apache/build/libtool --silent --mode=link gcc
-o mod_auth_ldap.la -rpath /i03_01/home/it/itadm/itjerry/apache/modules
-module -avoid-version mod_auth_ldap.o
-L/i03_01/home/it/itadm/itjerry/ldaplib/lib -lssl3 -lprldap50 -lldap50
-lssldap50 -lplds4 -lplc4 -lnspr4 -lresolv -lnsl -lsocket

*** Warning: Linking the shared library mod_auth_ldap.la against the
non-libtool
*** objects mod_auth_ldap.o is not portable!
/i03_01/home/it/itadm/itjerry/apache/build/instdso.sh
SH_LIBTOOL='/i03_01/home/it/itadm/itjerry/apache/build/libtool'
mod_auth_ldap.la /i03_01/home/it/itadm/itjerry/apache/modules
/i03_01/home/it/itadm/itjerry/apache/build/libtool --mode=install cp
mod_auth_ldap.la /i03_01/home/it/itadm/itjerry/apache/modules/
cp .libs/mod_auth_ldap.so
/i03_01/home/it/itadm/itjerry/apache/modules/mod_auth_ldap.so
chmod +x /i03_01/home/it/itadm/itjerry/apache/modules/mod_auth_ldap.so
cp .libs/mod_auth_ldap.lai
/i03_01/home/it/itadm/itjerry/apache/modules/mod_auth_ldap.la
cp .libs/mod_auth_ldap.a
/i03_01/home/it/itadm/itjerry/apache/modules/mod_auth_ldap.a
cp: cannot access .libs/mod_auth_ldap.a
apxs:Error: Command failed with rc=131072
.
make: *** [install] Error 1

I can install it on SUSE9 but fail in Solaris 8.

Any indeas?
-- 
View this message in context: http://www.nabble.com/Can%27t-install-LDAP-module-on-solaris8-tf3756144.html#a10616091
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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