From owner-freebsd-questions Fri Nov 15 7:11:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B8D137B401 for ; Fri, 15 Nov 2002 07:11:26 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E18443E42 for ; Fri, 15 Nov 2002 07:11:25 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr364-a20.otenet.gr [195.167.109.52]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAFFB9L0000296; Fri, 15 Nov 2002 17:11:12 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gAFFAwZv005512; Fri, 15 Nov 2002 17:10:58 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gAFEI4g9037805; Fri, 15 Nov 2002 16:18:04 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 15 Nov 2002 16:18:03 +0200 From: Giorgos Keramidas To: Mike Loiterman Cc: "'Anish Mistry'" , freebsd-questions@freebsd.org Subject: Re: Recompiling Sendmail? Message-ID: <20021115141802.GB576@gothmog.gr> References: <200211140030.06242.mistry.7@osu.edu> <000001c28ba2$82c708c0$0302a8c0@mike> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c28ba2$82c708c0$0302a8c0@mike> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-11-13 23:55, Mike Loiterman wrote: > Anish Mistry [mailto:mistry.7@osu.edu] wrote: > > On Wednesday 13 November 2002 10:00 pm, Mike Loiterman wrote: > > > I suppose this might be better suited to the comp.mail.sendmail, > > > but I'm posting it here because I believe my error is ultimately > > > rooted in my use faulty use of FreeBSD rather then incorrect use > > > of Sendmail. Indeed. > > > I'm trying to add SMTP AUTH to my base installation of Sendmail > > > installation without breaking anything! > > > > > > I installed cyrus-sasl without any problems. > > > Now I need to add, according to the Sendmail.readme included with > > > the cyrus-sasl, the following lines to my /etc/make.conf file: > > > > > > # Add SMTP AUTH support to Sendmail > > > SENDMAIL_CFLAGS+= -I/usr/local/include/sasl -DSASL > > > - -D_FFR_UNSAFE_SASL > > > SENDMAIL_LDFLAGS+= -L/usr/local/lib > > > SENDMAIL_LDADD+= -lsasl > > > > > > I did that. > > > > > > Now the README says I need to "Rebuild FreeBSD". I thought > > > there would be a way around rebuilding the entire world when I > > > just need to rebuild Sendmail You should really follow the instructions, and build world :) > > > so I tried going into /usr/src/usr.sbin/sendmail and did a "make > > > all install" but I got this error: > > > > This is how I do it: > > In make.conf: > > SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL1 > > SENDMAIL_LDFLAGS=-L/usr/local/lib > > SENDMAIL_LDADD=-lsasl > > > > from a shell: > > cd /usr/src/usr.sbin/sendmail > > make cleandir > > make obj > > make > > make install This won't work either, if you don't have an old libsm library lying around in /usr/obj/usr/src/lib/libsm, and even in that case you should probably rebuild libsm anyway. > I used my original config flags with your make commands and got this > error: > > cc: /usr/src/usr.sbin/sendmail/../../lib/libsmutil/libsmutil.a: No > such file or directory > *** Error code 1 The sendmail installation that is part of the base system uses libsm.a which is not built when you cd into /usr/src/usr.sbin/sendmail, but is built separately from /usr/src/lib/libsm. The same libsm.a that is built as part of the buildworld process is then used to link sendmail and src/bin/rmail. The manual way out of this error that is stopping you is to build a clean copy of libsm.a and then rebuilt sendmail and rmail: # cd /usr/src/lib/libsm # make cleandir && make cleandir # make obj && make depend && make all # cd /usr/src/usr.sbin/sendmail # make cleandir && make cleandir # make obj && make depend && make all # cd /usr/src/bin/rmail # make cleandir && make cleandir # make obj && make depend && make all All these steps and many more[1] will be taken care of if you use the recommended `make buildworld' procedure for upgrading. I hope this helps a bit, Giorgos. [1] Such as building the proper bits for the SSL support when this is required, and making sure that the changes to the libraries you have compiled don't cause build problems to the rest of the `world'. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message