ports/103261: www/apache22 Port does not install ldap modules when the WITH_LDAP or WITH_LDAP_MODULES flags are set.

Tony Harverson freebsd-pr at trog.bofh.org.za
Thu Sep 14 12:10:26 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list