From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 17:49:13 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 0B29B16A417 for ; Thu, 30 Aug 2007 17:49:13 +0000 (UTC) (envelope-from demonichandextensions@hotmail.com) Received: from bay0-omc1-s7.bay0.hotmail.com (bay0-omc1-s7.bay0.hotmail.com [65.54.246.79]) by mx1.freebsd.org (Postfix) with ESMTP id E673213C469 for ; Thu, 30 Aug 2007 17:49:12 +0000 (UTC) (envelope-from demonichandextensions@hotmail.com) Received: from hotmail.com ([64.4.38.35]) by bay0-omc1-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 30 Aug 2007 10:48:48 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 30 Aug 2007 10:48:48 -0700 Message-ID: Received: from 64.4.38.200 by by116fd.bay116.hotmail.msn.com with HTTP; Thu, 30 Aug 2007 17:48:45 GMT X-Originating-IP: [67.59.9.34] X-Originating-Email: [demonichandextensions@hotmail.com] X-Sender: demonichandextensions@hotmail.com In-Reply-To: <20070830041516.GA2112@kobe.laptop> From: "brad davison" To: keramida@ceid.upatras.gr Date: Thu, 30 Aug 2007 17:48:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 30 Aug 2007 17:48:48.0608 (UTC) FILETIME=[04DEC600:01C7EB2E] 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 17:49:13 -0000 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 -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 -D_FFR_SMTP_SSL -std=iso9899:1990 -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.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 -D_FFR_SMTP_SSL -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 -D_FFR_SMTP_SSL -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 .................................................... (but the buildworld did finish successfully including the sendmail piece, which did have the -DSASL=2 in the make.conf.) My ultimate goal, is to have SMTP AUTH for secure relay for our roaming clients. So my problem now is: a) the buildworld did not seem to use the make.conf at least for sendmail, so SASL is not built into sendmail b) I am still not able to build sendmail from: /usr/src/usr.sbin/sendmail/ # make cleandir && make cleandir&& # make depend # make ....... 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 -D_FFR_SMTP_SSL -std=iso9899:1990 -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sasl.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 -D_FFR_SMTP_SSL -std=iso9899:1990 -c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.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 -D_FFR_SMTP_SSL -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 -D_FFR_SMTP_SSL -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 >From: Giorgos Keramidas >To: brad davison >CC: freebsd-questions@freebsd.org >Subject: Re: Cannot rebuild Sendmail (with sasl2) >Date: Thu, 30 Aug 2007 07:15:16 +0300 > >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 > _________________________________________________________________ See what you’re getting into…before you go there http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507