From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 04:17:00 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 6E7A716A417 for ; Thu, 30 Aug 2007 04:17:00 +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 3CB7413C45B for ; Thu, 30 Aug 2007 04:16:58 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup92.ach.sch.gr [81.186.70.92]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l7U4FOMk013045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 30 Aug 2007 07:15:33 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l7U4FGAs002304; Thu, 30 Aug 2007 07:15:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l7U4FGXL002303; Thu, 30 Aug 2007 07:15:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 30 Aug 2007 07:15:16 +0300 From: Giorgos Keramidas To: brad davison Message-ID: <20070830041516.GA2112@kobe.laptop> References: <20070829220509.GB1641@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.863, 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 04:17:00 -0000 On 2007-08-30 02:14, brad davison wrote: >>> After installing the cyrus-sasl2-saslauthd port, I am now unable to >>> rebuild sendmail and/or The World. >> >> You need the security/cyrus-sasl2 port, not sasl2-saslauthd. > > I have the cyrus-sasl2 as well as cyrus-sasl2-saslauthd installed > > newmail# pkg_version -v > ............................... > cyrus-sasl-2.1.22 = up-to-date with port > cyrus-sasl-saslauthd-2.1.22 = up-to-date with port > ................................. Nice. The saslauthd port pulled in cyrus-sasl-2.1.22 as a dependency too, I guess :) > > % script > > Script started, output file is typescript > > % make buildworld buildkernel > > [ snip output ] > > % exit > > exit > > > > Script done, output file is typescript > > % > > > > Can you show us what your `make.conf' looks like, and describe how > > you tried to build Sendmail? > > here is my make.conf > > # SASL (cyrus-sasl v2) sendmail build flags... > SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS=-L/usr/local/lib > SENDMAIL_LDADD=-lsasl2 > # Adding to enable alternate port (smtps) for sendmail... > SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL Ok, this looks good so far. > here is my script ... I wanted to make sure my sources were up to date > so i did cvsup first (with src-all as all i was getting, I had just > done this 2 days ago, but I wanted to make sure) > Script started on Thu Aug 30 07:59:12 2007 > newmail# cvsup standard-supfile > Connected to cvsup5.us.FreeBSD.org > Updating collection src-all/cvs > Finished successfully > newmail# cd /usr/src > newmail# pwd > /usr/src > newmail# make buildworld > > -------------------------------------------------------------- > >>> Rebuilding the temporary build tree > -------------------------------------------------------------- > rm -rf /usr/obj/usr/src/tmp > mkdir -p /usr/obj/usr/src/tmp/legacy/usr/bin > mkdir -p /usr/obj/usr/src/tmp/legacy/usr/games > > [snip --- > an hour or so goes by] > > cc -O2 -fno-strict-aliasing -pipe > -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src > -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB > -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 > -D_FFR_DEAL_WITH_ERROR_SSL -I/usr/local/include -DSASL=2 -std=iso9899:1990 > -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/util.c > cc -O2 -fno-strict-aliasing -pipe > -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src > -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB > -DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 > -D_FFR_DEAL_WITH_ERROR_SSL -I/usr/local/include -DSASL=2 -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 > *** Error code 2 Hmmm, this is odd. Your usr.sbin/sendmail is trying to find libsmutil.a inside the source tree, instead of /usr/obj. It looks like you have run a plain 'make' command in usr.sbin/sendmail or one of its dependencies. Try running: cd /usr/src/usr.sbin/sendmail make cleandir && make cleandir cd /usr/src/lib/libsm make cleandir && make cleandir cd /usr/src/lib/libsmutil make cleandir && make cleandir cd /usr/src/usr.sbin/sendmail make cleandir && make cleandir The "make cleandir" commands _have_ to be run twice, to make sure that they delete: (a) The /usr/obj files related to this source subdir. (b) Any object code, dependency information and other build-time files from the source tree itself. Then try 'buildworld' once again. - Giorgos