From owner-freebsd-stable@FreeBSD.ORG Wed Nov 30 17:43:29 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96E3D1065670 for ; Wed, 30 Nov 2011 17:43:29 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 55A0E8FC14 for ; Wed, 30 Nov 2011 17:43:29 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so975018vbb.13 for ; Wed, 30 Nov 2011 09:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WIjIwjdmG5prQMCRkrxePmdRfmN/gWixgpH61LPVQ5E=; b=YUXQ8EaUxcL/izA/qutGW5jPSyn+Y6SS8tWv1aKgMEGeTuLPwq4l2rXfd9jZzdnJya Iu+xjJDH/FV54itdeT7ZBYLOXziraOViFerSJijMjMwV06Snq+Cx/oIg+9WzKcem7ddB zTZEBx9/o9w42Ku+dmEwzsbP6MbUg8SHzfUZM= MIME-Version: 1.0 Received: by 10.52.186.225 with SMTP id fn1mr3005800vdc.32.1322675007233; Wed, 30 Nov 2011 09:43:27 -0800 (PST) Received: by 10.52.28.84 with HTTP; Wed, 30 Nov 2011 09:43:27 -0800 (PST) In-Reply-To: References: Date: Wed, 30 Nov 2011 17:43:27 +0000 Message-ID: From: Tom Evans To: Shaun Meyer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: www/Apache22 fails to build when configured for LDAP and AUTHNZ_LDAP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 17:43:29 -0000 On Wed, Nov 30, 2011 at 4:44 PM, Shaun Meyer wrot= e: > 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 Apache from ports no longer builds against the included APR, instead it builds against the system APR, so you must rebuild devel/apr1 with LDAP support. This makes it easier to fix problems with other libraries being built with a different version of APR, and then linked into apache (eg, mod_authz_svn). This is the problem that PR is describing, and the fix in that PR no longer seems to be in the Makefile. Cheers Tom