Subject: pkg/27442: apache2 will not build with db4 and openldap support
To: None <gnats-bugs@gnats.NetBSD.org>
From: Rasputin <rasputin@hellooperator.net>
List: pkgsrc-bugs
Date: 10/25/2004 08:14:06
>Number:         27442
>Category:       pkg
>Synopsis:       apache2 will not build with db4 and openldap support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 25 07:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rasputin
>Release:        NetBSD 2.0F
>Organization:
	
>Environment:
	
	
System: NetBSD lb 2.0F NetBSD 2.0F (LITTLEBIRD) #0: Sun Jun 27 20:48:32 BST 2004 rasputin@lb:/usr/obj/usr/src/sys/arch/i386/compile/LITTLEBIRD i386
Architecture: i386
Machine: i386
>Description:
	I just tried rebuilding apache and found i got a build failure in                                                                                                        
linking against ldap. The problem seems to be that I have  these two                                                                                                     
knobs set:                                                                                                                                                               
                                                                                                                                                                         
rasputin@lb:lib$ grep APR /etc/mk.conf                                                                                                                                   
APR_USE_DB4=YES                                                                                                                                                          
APR_USE_OPENLDAP=YES                                                                                                                                                     
rasputin@lb:lib$                                                                                                                                                         
                                                                                                                                                                         
(because I have a mod_auth_ldap protected Subversion repository).                                                                                                        
Disabling the first breaks subversion, disabling the second stops                                                                                                        
the apache ldap modules being built. They've not conflicted in the                                                                                                   
last six months, so shouldn't the elsif be an endif/if pair?                                                                                                             
                                                                                                                                                                         
                                                                                                                                                                         
>How-To-Repeat:
	Attempt to build the apache2 port with the following knobs in mk.conf

APR_USE_DB4=YES
APR_USE_OPENLDAP=YES

>Fix:
Replace the elif with a new if block:

rasputin@lb:apr$ cvs diff  -u
socket: Protocol not supported
cvs diff: Diffing .
Index: buildlink3.mk
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/devel/apr/buildlink3.mk,v
retrieving revision 1.7
diff -u -r1.7 buildlink3.mk
--- buildlink3.mk       3 Oct 2004 00:13:24 -0000       1.7
+++ buildlink3.mk       3 Oct 2004 19:57:26 -0000
@@ -24,7 +24,8 @@

 .if !empty(APR_USE_DB4:M[yY][eE][sS])
 .  include "../../databases/db4/buildlink3.mk"
-.elif !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
+.endif
+.if !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
 .  include "../../databases/openldap/buildlink3.mk"
 .endif


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