Bug 17244 - ./configure --help gives false information regarding to --with-ldap
Summary: ./configure --help gives false information regarding to --with-ldap
Status: ASSIGNED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.0.44
Hardware: PC All
: P3 normal with 3 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
: 19394 27815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-20 14:24 UTC by oyving
Modified: 2009-07-29 14:29 UTC (History)
3 users (show)



Attachments
Make configure emit a useful error when user enables mod_ldap or mod_auth_ldap but does not enable LDAP in apr-util (1.83 KB, patch)
2004-01-19 11:17 UTC, Noah Misch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description oyving 2003-02-20 14:24:05 UTC
When you run ./configure --help all the options regarding to LDAP are
--enable-ldap and --enable-auth-ldap, while it does not mention that you need
--with-ldap to make APR build with LDAP support.
Comment 1 Noah Misch 2004-01-19 07:06:30 UTC
*** Bug 19394 has been marked as a duplicate of this bug. ***
Comment 2 Noah Misch 2004-01-19 11:17:10 UTC
Created attachment 10006 [details]
Make configure emit a useful error when user enables mod_ldap or mod_auth_ldap but does not enable LDAP in apr-util
Comment 3 Noah Misch 2004-01-19 11:54:18 UTC
The patch I just attached causes configure to fail with a fatal error if the
user requests mod_auth_ldap or mod_ldap but does not use an LDAP-capable
apr-util.  Since most people who wouldn't then know what to do will use the
included apr-util, the error message tells them to use --with-ldap, which will
solve their problem.  I modeled the test after the test mod_auth_digest uses.

To make the test simple, I made a small change to APR_CHECK_APR_DEFINE: if given
an second argument, that macro now includes the header file so given instead of
apr.h.  This should not break existing usage.

Please let me know if a different solution seems superior.

Note that this does not fix the issue as the original post describes it since
mod_[auth_]ldap only requires --with-ldap if you use the in-tree apr-util
sources.  I have created a new bug (#26240) that proposes a solution to the
problem of incomplete option listing.
Comment 4 Graham Leggett 2004-05-21 15:40:52 UTC
Both mod_ldap and mod_auth_ldap will emit this error message if ldap is missing
from apr-util:

#error mod_ldap requires APR-util to have LDAP support built in

I will update this error message to tell the user what to do, as this message is
not entirely clear.
Comment 5 Graham Leggett 2004-05-21 16:10:37 UTC
*** Bug 27815 has been marked as a duplicate of this bug. ***
Comment 6 Igor Galić 2009-07-29 13:24:25 UTC
The newest versions httpd (2.2.12) and apr-utils (1.3.37) seem to have a regression, regarding to the previous version, as apu-1-config does NO longer default to showing the ldap-libs.

httpd's --with-ldap, doesn't honor this change either, and doesn't supply it.

I have created a apu-ldap-config:

#!/bin/bash
$_prefix/apu-1-config $@ --ldap-libs

BUT, both, setting APU_CONFIG in EVN, and supplying --with-apr-util to it's full path is being IGNORED.
Comment 7 Jeff Trawick 2009-07-29 13:32:16 UTC
Igor, I suggest taking your httpd 2.2.12/APR-Util issue 1.3.7 issue to the user support list to sort out what is going on.  It is apparently not the issue tracked by this bug.
Comment 8 William A. Rowe Jr. 2009-07-29 14:29:07 UTC
With respect to #6, Igor, open a new bug, if you confirm this is true of
the bundled apr-util (which should be 1.3.8), and please report more specific
details.