From owner-freebsd-ports@FreeBSD.ORG Sat Mar 20 09:20:22 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61CB216A4CE for ; Sat, 20 Mar 2004 09:20:22 -0800 (PST) Received: from postman.arcor.de (postman2.arcor-online.net [151.189.0.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id C394F43D2F for ; Sat, 20 Mar 2004 09:20:21 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-138.reverse.qsc.de [212.202.51.138]) (authenticated bits=0)i2KHK9ko028629 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 20 Mar 2004 18:20:20 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1B4k8k-000NJB-US; Sat, 20 Mar 2004 18:20:06 +0100 Message-ID: <405C7D46.9050805@fillmore-labs.com> Date: Sat, 20 Mar 2004 18:20:06 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 References: <1079796327.5137.10.camel@columbus> <20040320162331.GA22432@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040320162331.GA22432@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@freebsd.org cc: Robert Fitzpatrick Subject: Re: Building Heimal without using ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 17:20:22 -0000 Matthew Seaman wrote: > Robert, [...] > Do you already have any version of OpenLDAP installed? I've tried to > reproduce what you saw in your earlier post, but defining WITH_LDAP > makes evrything link against libldap.so as expected for me: > [...] > > I think that the problem is the port doesn't add any dependencies > against OpenLDAP even if WITH_LDAP is defined. That's a bug. .if defined(WITH_LDAP) LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client .endif > In fact, can you try this patch to the security/heimdal Makefile? > > % diff -u Makefile.orig Makefile > --- Makefile.orig Sat Mar 20 16:15:56 2004 > +++ Makefile Sat Mar 20 16:17:08 2004 > @@ -32,6 +32,7 @@ > CONFIGURE_ENV+= CFLAGS="${CFLAGS}" > CONFIGURE_ARGS+= --enable-shared --without-krb4 > .if defined(WITH_LDAP) > +USE_OPENLDAP= yes > CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} > .endif That would be preferable, because OpenLDAP 2.0 is about to be removed May 1st. You'll have to remove the LIB_DEPENDS above, too. > This should cause your system to install one of the OpenLDAP ports as > a dependency of security/heimdal before it builds the heimdal stuff > itself -- net/openldap21-client is probably what will be installed. This is currently the default. You can change that by using WANT_OPENLDAP_VER, although you won't have any advantages on the client side. [...] > Since you'll be installing OpenLDAP, you might want to refer to > http://www.padl.com/Research/Heimdal.html -- I don't know if the > patches spoken of there are still necessary (that page could well be > out of date as it seems to be a few versions behind on the OpenLDAP > releases), but if they are, you can try building the OpenLDAP stuff > with "WITH_SASL=yes" Depending on what you want to do, you need to compile OpenLDAP with SASL support, Cyrus SASL with Heimdal GSSAPI or Heimdal with OpenLDAP support. See for example Oliver