httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean, David P" <>
Subject [users@httpd] Apache 2.0.54 compile error with mod_auth_ldap on Solaris 8 -- an d workaround file hack
Date Mon, 08 Aug 2005 20:50:19 GMT
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

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

/export/home/app/www/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile
gcc  -g -O2 -pthreads    -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS
-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/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:



Changed to

#include <lber.h>
#include <ldap.h>

And the build went fine! (But have not verified that mod_auth_ldap works OK

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 is not being done properly by configure, but this is all a
mystery to me:


If you think this should be posted elsewhere or submitted as a bug, let me

David Dean
Pfizer Inc

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message