httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio Miranda <clau...@claudius.com.br>
Subject [users@httpd] Compiling auth_ldap on solaris throw some errors
Date Wed, 24 Oct 2007 18:49:58 GMT


    Hi all, I hope this is the right mailing list for this sort of question. 

    I am trying to compile httpd with ldap_auth support, but there is an
error

util_ldap.c:43:2: #error mod_ldap requires APR-util to have LDAP support
built in

    I configured apr-util to have ldap support, but looks like its not
working.

My system:
- Solaris 10 x86
- apache2 2.0.59 httpd source (downloaded from sunfreeware.com)
- gcc 3.4.6 (SUNW package)
- openldap devel packages at /opt/ccs/(blastwave package)

# ls /opt/csw/include/ldap*
/opt/csw/include/ldap.h           /opt/csw/include/ldap_features.h 
/opt/csw/include/ldap_utf8.h
/opt/csw/include/ldap_cdefs.h     /opt/csw/include/ldap_schema.h

# echo $LD_LIBRARY_PATH
/opt/csw/lib/i386/:/var/opt/ds/lib/

    1st step, compile apr-util with auth_ldap support

# pwd
/tmp/httpd-2.0.59/srclib/apr-util

# ./configure  --enable-ldap --enable-auth-ldap
--with-ldap-include=/opt/csw/include/ --with-ldap-lib=/opt/csw/lib/i386/ 

# make 

    apr-util is compiled, no errors.

# find . -name \*ldap\*
./include/apr_ldap_url.h
./include/apr_ldap.hw
./include/apr_ldap.h.in
./include/apr_ldap.hnw
./include/apr_ldap.h
./ldap
./ldap/apr_ldap_url.c
./ldap/apr_ldap_compat.c
./ldap/.libs/apr_ldap_compat.o
./ldap/.libs/apr_ldap_url.o
./ldap/apr_ldap_compat.o
./ldap/apr_ldap_compat.lo
./ldap/apr_ldap_url.o
./ldap/apr_ldap_url.lo

    Next step to compile httpd with ldap and auth_ldap support

# pwd
/tmp/httpd-2.0.59

# ./configure --prefix=/usr/local/apache2_NAO   --enable-ldap
--enable-auth-ldap --with-ldap-include=/opt/csw/include/

# make
... a lot of messages...
/tmp/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc  -g -O2   
-DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-DAP_HAVE_DESIGNATED_INITIALIZER   -I/tmp/httpd-2.0.59/srclib/apr/include
-I/tmp/httpd-2.0.59/srclib/apr-util/include -I/usr/local/include -I.
-I/tmp/httpd-2.0.59/os/unix -I/tmp/httpd-2.0.59/server/mpm/prefork
-I/tmp/httpd-2.0.59/modules/http -I/tmp/httpd-2.0.59/modules/filters
-I/tmp/httpd-2.0.59/modules/proxy -I/tmp/httpd-2.0.59/include
-I/tmp/httpd-2.0.59/modules/generators -I/tmp/httpd-2.0.59/modules/dav/main
-prefer-non-pic -static -c util_ldap.c && touch util_ldap.lo
util_ldap.c:43:2: #error mod_ldap requires APR-util to have LDAP support
built in
util_ldap.c: In function `util_ldap_handler':
util_ldap.c:132: error: `util_ldap_state_t' undeclared (first use in this
function)
util_ldap.c:132: error: (Each undeclared identifier is reported only once
util_ldap.c:132: error: for each function it appears in.)
util_ldap.c:132: error: `st' undeclared (first use in this function)
util_ldap.c:132: error: syntax error before ')' token


    Then, I am lost !
   
    I did some search but without success. 
  
Any tip is welcome, thank you.

Claudio Miranda
-- 
View this message in context: http://www.nabble.com/Compiling-auth_ldap-on-solaris-throw-some-errors-tf4685599.html#a13390183
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


Mime
View raw message