From owner-freebsd-ports@FreeBSD.ORG Sat Mar 20 12:21:46 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 C63D516A4CE for ; Sat, 20 Mar 2004 12:21:46 -0800 (PST) Received: from hermes.webtent.net (hermes.webtent.net [192.216.106.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 829A243D2F for ; Sat, 20 Mar 2004 12:21:46 -0800 (PST) (envelope-from robert@webtent.com) Received: from columbus (webtent.org [198.79.127.235]) by hermes.webtent.net (8.10.2/8.10.2) with ESMTP id i2KKLDK09810; Sat, 20 Mar 2004 15:21:13 -0500 From: Robert Fitzpatrick To: Oliver Eikemeier In-Reply-To: <405C7D46.9050805@fillmore-labs.com> References: <1079796327.5137.10.camel@columbus> <20040320162331.GA22432@happy-idiot-talk.infracaninophile.co.uk> <405C7D46.9050805@fillmore-labs.com> Content-Type: text/plain Organization: WebTent Networking, Inc. Message-Id: <1079814085.5245.17.camel@columbus> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sat, 20 Mar 2004 15:21:25 -0500 Content-Transfer-Encoding: 7bit cc: ports@freebsd.org 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 20:21:46 -0000 On Sat, 2004-03-20 at 12:20, Oliver Eikemeier wrote: > 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: > > Yes, I have these packages that resulted from 'portupgrade openldap-2.1.23'. Heimdal and Cyrus-SASL were also portupgrade'd to 0.6_2 and 2.1.18 respectively. All installed. > > 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. Still need the patch? Since I have all installed above. > > 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. What do you think of 2.2? > > 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" Yes, that doc has been around a while and that is where I started, but from other things found on the web I remember determining the patch was not needed anymore. Can't remember why, though. > 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 I guess I should start from scratch and rebuild my OpenLDAP as you suggested. It was built a while back and not sure what options I have built-in. I will follow the doc you suggested. My question is if I rebuild OpenLDAP, do I go back into the /usr/ports/net/openldap2x-server and portupgrade again or did the portupgrade bring something else down for me to work with 2.1.27 directly? Thanks, -- Robert