I've been trying to build 2.0.54 (and other recent versions) under Solaris 2.8 with mod_auth_ldap using these configure options: ./configure --prefix=/app/www/apache2 --with-ldap --enable-ldap --enable-auth-ldap I have OpenLDAP 2.2.26 built and installed under /usr/local, using gcc 2.95.3 for all of this. The apache build failed with this compile error in the server directory for exports.c: /export/home/app/www/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthreads -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER -I/export/home/app/www/httpd-2.0.54/srclib/apr/include -I/export/home/app/www/httpd-2.0.54/srclib/apr-util/include -I/usr/local/include -I. -I/export/home/app/www/httpd-2.0.54/os/unix -I/export/home/app/www/httpd-2.0.54/server/mpm/prefork -I/export/home/app/www/httpd-2.0.54/modules/http -I/export/home/app/www/httpd-2.0.54/modules/filters -I/export/home/app/www/httpd-2.0.54/modules/proxy -I/export/home/app/www/httpd-2.0.54/include -I/export/home/app/www/httpd-2.0.54/modules/generators -I/export/home/app/www/httpd-2.0.54/modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo In file included from exports.c:39: /export/home/app/www/httpd-2.0.54/include/util_ldap.h:72: `LDAP_DEREF_NEVER' undeclared here (not in a function) <more errors follow> Digging into this, I found that include/util_ldap.h includes srclib/apr-util/include/apr_ldap.h. That file has a section that should include the appropriate header files, but these were not filled in properly by configure. So edited apr_ldap.h by hand like so: #if APR_HAS_OPENLDAP_LDAPSDK #endif Changed to #if APR_HAS_OPENLDAP_LDAPSDK #include <lber.h> #include <ldap.h> #endif And the build went fine! (But have not verified that mod_auth_ldap works OK yet). Just thought I'd post this in case others are running into this issue. I'm not sure what the true fix is though. Somehow this macro substitution in apr_ldap.h.in is not being done properly by configure, but this is all a mystery to me: #if APR_HAS_OPENLDAP_LDAPSDK @lber_h@ @ldap_h@ #endif If you think this should be posted elsewhere or submitted as a bug, let me know! Thanks David Dean Pfizer Inc david.p.dean<at>pfizer.com LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx