Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2006 12:09:10 GMT
From:      Tony Harverson <freebsd-pr@trog.bofh.org.za>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/103261: www/apache22 Port does not install ldap modules when the WITH_LDAP or WITH_LDAP_MODULES flags are set.
Message-ID:  <200609141209.k8EC9A0i006741@www.freebsd.org>
Resent-Message-ID: <200609141210.k8ECAOS6022601@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103261
>Category:       ports
>Synopsis:       www/apache22 Port does not install ldap modules  when the WITH_LDAP or WITH_LDAP_MODULES flags are set.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 14 12:10:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Tony Harverson
>Release:        6.1-STABLE-200609
>Organization:
>Environment:
FreeBSD vm-dev-tony.xx.xxxx.xxx 6.1-STABLE-200609 FreeBSD 6.1-STABLE-200609 #0: Thu Sep  7 18:27:56 UTC 2006 
root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


>Description:
The www/apache22 port doesn't install the appropriate modules (mod_authnz_ldap.so,mod_ldap.so) when the WITH_LDAP flag (or the WITH_LDAP_MODULES, or both) flags are set during a make/make install.


>How-To-Repeat:
cd /usr/ports/www/apache22/
make WITH_LDAP=yes WITH_LDAP_MODULES=yes install

This will install apache without the modules (mod_authnz_ldap.so,mod_ldap.so)


>Fix:
This appears (from a reading of /usr/ports/www/apache22/work/httpd-2.2.3/modules/ldap/README) to be a result of two missing pair of flags in the makefile, --enable-ldap and --enable-authnz-ldap.

if this is the case, the following patch fixes it. After this patch is applied, following the above steps will result in the modules being installed. This diff applies to version 1.197 of the Makefile.



--- Makefile
+++ Makefile    Thu Sep 14 12:30:58 2006
@@ -114,6 +114,8 @@
 .if defined (WITH_LDAP) || defined (WITH_LDAP_MODULES)
 USE_OPENLDAP=          YES
 CONFIGURE_ARGS+=       --with-ldap \
+                       --enable-ldap \
+                       --enable-authnz-ldap \
                        --with-ldap-lib="${LOCALBASE}/lib" \
                        --with-ldap-include="${LOCALBASE}/include"
 .endif

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609141209.k8EC9A0i006741>