bin/182546: base heimdal build error if WITH_OPENLDAP is defined

Joerg Pulz Joerg.Pulz at frm2.tum.de
Tue Oct 1 13:50:00 UTC 2013


>Number:         182546
>Category:       bin
>Synopsis:       base heimdal build error if WITH_OPENLDAP is defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 01 13:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Joerg Pulz
>Release:        FreeBSD 10.0-ALPHA2 amd64 r255700
>Organization:
Technische Universitaet Muenchen / FRM II
>Environment:
System: FreeBSD localhost 10.0-ALPHA2 FreeBSD 10.0-ALPHA2 #0 r255700


	
>Description:
	make buildworld fails to build heimdal/kerberos5 from base if
	WITH_OPENLDAP is defined.

	I tried to build base heimdal with WITH_OPENLDAP defined to use LDAP
	as KDC backend. Unfortunately this failed due to missing DPADD, LDADD
	and LDFLAGS.

	Attached is a patch to fix this problem.
>How-To-Repeat:
	
>Fix:

	

--- kerberos5.patch begins here ---
Index: kerberos5/lib/libhdb/Makefile
===================================================================
--- kerberos5/lib/libhdb/Makefile	(revision 255700)
+++ kerberos5/lib/libhdb/Makefile	(working copy)
@@ -1,9 +1,9 @@
 # $FreeBSD$
 
 LIB=	hdb
-LDFLAGS=	-Wl,--no-undefined
+LDFLAGS=	-Wl,--no-undefined ${LDAPLDFLAGS}
 VERSION_MAP=	${KRB5DIR}/lib/hdb/version-script.map
-LDADD=	-lasn1 -lcom_err -lkrb5 -lroken -lheimsqlite
+LDADD=	-lasn1 -lcom_err -lkrb5 -lroken -lheimsqlite ${LDAPLDADD}
 DPADD=	${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LIBHEIMSQLITE} ${LDAPDPADD}
 
 MAN=	HDB.3 hdb_entry_ex.3
Index: kerberos5/libexec/digest-service/Makefile
===================================================================
--- kerberos5/libexec/digest-service/Makefile	(revision 255700)
+++ kerberos5/libexec/digest-service/Makefile	(working copy)
@@ -9,9 +9,10 @@
 		-I${KRB5DIR}/lib/wind \
 		-I${KRB5DIR}/lib/roken
 DPADD=	${LIBHDB} ${LIBKDC} ${LIBHEIMIPCS} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} \
-	${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS}
+	${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS} ${LDAPDPADD}
 LDADD=	-lhdb -lkdc -lheimipcs -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \
-	${LIBVERS} -lheimntlm
+	${LIBVERS} -lheimntlm ${LDAPLDADD}
+LDFLAGS=${LDAPLDFLAGS}
 USEPRIVATELIB= heimipcs
 
 .include <bsd.prog.mk>
Index: kerberos5/libexec/kdc/Makefile
===================================================================
--- kerberos5/libexec/kdc/Makefile	(revision 255700)
+++ kerberos5/libexec/kdc/Makefile	(working copy)
@@ -11,8 +11,10 @@
 CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
 	-I${KRB5DIR}/kdc ${LDAPCFLAGS}
 DPADD=	${LIBKDC} ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} \
-	${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS}
-LDADD=	-lkdc -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS}
+	${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS} ${LDAPDPADD}
+LDADD=	-lkdc -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS} \
+	${LDAPLDADD}
+LDFLAGS=${LDAPLDFLAGS}
 
 .include <bsd.prog.mk>
 
Index: kerberos5/usr.bin/string2key/Makefile
===================================================================
--- kerberos5/usr.bin/string2key/Makefile	(revision 255700)
+++ kerberos5/usr.bin/string2key/Makefile	(working copy)
@@ -8,8 +8,9 @@
 		-I${KRB5DIR}/lib/roken \
 		-I${KRB5DIR}/lib/windc
 DPADD=	${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
-	${LIBCRYPT} ${LIBVERS}
-LDADD=	-lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS}
+	${LIBCRYPT} ${LIBVERS} ${LDAPDPADD}
+LDADD=	-lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS} ${LDAPLDADD}
+LDFLAGS=${LDAPLDFLAGS}
 
 .include <bsd.prog.mk>
 
Index: kerberos5/usr.sbin/iprop-log/Makefile
===================================================================
--- kerberos5/usr.sbin/iprop-log/Makefile	(revision 255700)
+++ kerberos5/usr.sbin/iprop-log/Makefile	(working copy)
@@ -9,9 +9,10 @@
 		-I${KRB5DIR}/lib/sl \
 		-I.
 DPADD=	${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} \
-	${LIBCRYPT} ${LIBSL} ${LIBROKEN} ${LIBVERS} ${LIBEDIT}
+	${LIBCRYPT} ${LIBSL} ${LIBROKEN} ${LIBVERS} ${LIBEDIT} ${LDAPDPADD}
 LDADD=	-lkadm5srv -lhdb -lkrb5 -lasn1 -lcrypto -lcrypt ${LIBSL} -lroken \
-	${LIBVERS} -ledit
+	${LIBVERS} -ledit ${LDAPLDADD}
+LDFLAGS=${LDAPLDFLAGS}
 
 iprop-commands.h: iprop-commands.in
 	${SLC} ${.ALLSRC:M*.in}
--- kerberos5.patch ends here ---


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


More information about the freebsd-bugs mailing list