Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2011 12:41:21 -0500
From:      Mark Saad <nonesuch@longcount.org>
To:        Shaun Meyer <meyersh@morningside.edu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: www/Apache22 fails to build when configured for LDAP and AUTHNZ_LDAP
Message-ID:  <CAMXt9Naq6fWkxWnQjWUJB0i6Y%2BXN7W0iMCqxB-C_Dbci9Q5L3w@mail.gmail.com>
In-Reply-To: <CAFfydH4SsU3Vq6fr8ZbNF%2BVhZ_%2BKCQsoM1h3pEX=PYKWfOT8xg@mail.gmail.com>
References:  <CAFfydH4SsU3Vq6fr8ZbNF%2BVhZ_%2BKCQsoM1h3pEX=PYKWfOT8xg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 30, 2011 at 11:44 AM, Shaun Meyer <meyersh@morningside.edu> wro=
te:
> Hello,
>
> I have already built apache22 successfully on FreeBSD 8.2-RELEASE-p3
> amd64. I realized that I wanted authnz_ldap which wasn't turned on by
> default so I went into www/apache22 and did the following:
>
> # make clean
> # make config
> # make showconfig | grep LDAP
> =C2=A0 =C2=A0 LDAP=3Don "Enable mod_ldap"
> =C2=A0 =C2=A0 AUTHNZ_LDAP=3Don "Enable mod_authnz_ldap"
> # make
>
> LDAP and AUTHNZ_LDAP are the only adjusted knobs from the defaults.
>
> The operative build error is "mod_authnz_ldap.c:41:2: error: #error
> mod_authnz_ldap requires APR-util to have LDAP support built =C2=A0in. To
> fix add --with-ldap to ./configure."
>
> I have also tried removing and cleaning for the apr package. I see no
> other apache-related files installed and all this has been done
> against the latest, greatest ports collection using `portsnap`.
>
> This symptoms are identical to
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D124651 except, obviously,
> they have fixed that cause.
>
> Any advice is greatly appreciated,
>
> Shaun Meyer

You need to just rebuild the apr port with ldap. Confirm what version
of apr you have installed and then use make config in that port to add
ldap support. Remove the installed port and reinstall the new one with
ldap support . They you should be able to install apache with ldap
hooks.

--=20
mark saad | nonesuch@longcount.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMXt9Naq6fWkxWnQjWUJB0i6Y%2BXN7W0iMCqxB-C_Dbci9Q5L3w>