From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 20:41:10 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EBA416A50F for ; Thu, 30 Aug 2007 20:41:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id A7D9313C458 for ; Thu, 30 Aug 2007 20:41:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup127.ach.sch.gr [81.186.70.127]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l7UKengm008743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 30 Aug 2007 23:40:59 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l7UKeh4r060590; Thu, 30 Aug 2007 23:40:43 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l7UKeh95060589; Thu, 30 Aug 2007 23:40:43 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 30 Aug 2007 23:40:43 +0300 From: Giorgos Keramidas To: brad davison Message-ID: <20070830204042.GA27241@kobe.laptop> References: <20070830041516.GA2112@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.864, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.54, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Cannot rebuild Sendmail (with sasl2) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 20:41:10 -0000 On 2007-08-30 17:48, brad davison wrote: > Thank you for your help. > > We seem to be further now. Running the 'make cleandir' twice seems to have > gotten us past that hangup. Now the buildworld and buildkernel and > installkernel all worked. > > It seems, however, that the -DSASL=2 did not take, because now, when I > reboot (or restart sendmail) I get: > > Warning: Option: AuthMechanisms requires SASL support (-DSASL) > > Also, building Sendmail from /usr/src/usr.sbin/sendmail gives the old error > message > ...................................... > cc -O2 -fno-strict-aliasing -pipe > [...] > -std=iso9899:1990 -c > /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/version.c > make: don't know how to make > /usr/src/usr.sbin/sendmail/../../lib/libsmutil/libsmutil.a. Stop > .................................................... That's because to 'reuse' the existing object code (compiled during the last buildworld and stored in /usr/obj) you have to set in your shell's environment the MAKEOBJDIRPREFIX variable. If you run buildworld with csh as your shell, this would be: csh# setenv MAKEOBJDIRPREFIX /usr/obj If you are using /bin/sh use: # export MAKEOBJDIRPREFIX=/usr/obj Then you should try: # cd /usr/src/usr.sbin/sendmail # make cleandir && make cleandir # make obj depend all > If you are (but the buildworld did finish successfully including the > sendmail piece, which did have the -DSASL=2 in the make.conf.) I don't know why your buildworld seems to have picked the wrong settings from make.conf. Are you *sure* you run a clean build? This would require: 1. Removing /usr/obj 2. Running "make cleandir cleandir" in /usr/src 3. Checking /etc/make.conf 4. Running "buildworld buildkernel" 5. Installing everything, following the instructions from /usr/src/UPDATING