From owner-freebsd-questions Sat Jan 20 16:36:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from absinthe2.dyndns.org (adsl-63-207-238-79.dsl.chic01.pacbell.net [63.207.238.79]) by hub.freebsd.org (Postfix) with ESMTP id 64D0037B400 for ; Sat, 20 Jan 2001 16:36:28 -0800 (PST) Received: from [192.168.1.2] (queerboy.condo.chico.ca.us [192.168.1.2]) by absinthe2.dyndns.org (8.11.1/8.11.1) with ESMTP id f0L0aJN04788; Sat, 20 Jan 2001 16:36:20 -0800 (PST) (envelope-from fred@condo.chico.ca.us) Date: Sat, 20 Jan 2001 16:36:18 -0800 From: Fred Condo To: Matthew Emmerton , questions@FreeBSD.ORG Cc: Matthew Emmerton Subject: Re: Sendmail in buildworld vs. SASL Message-ID: <127575.980008578@[192.168.1.2]> In-Reply-To: <009601c0827e$2f3b75d0$1200a8c0@gsicomp.on.ca> References: <812530.979923971@[192.168.1.2]> <009601c0827e$2f3b75d0$1200a8c0@gsicomp.on.ca> X-Mailer: Mulberry/2.1.0a2 (Mac OS/PPC) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --On Friday, January 19, 2001 8:13 PM -0500 Matthew Emmerton wrote: > > >> I want to set up authenticated SMTP. So, I installed the cyrus-sasl port, >> and added the following to make.conf, as suggested in >> /etc/defaults/make.conf: >> >> SENDMAIL_CFLAGS=-I/usr/local/include -DSASL >> SENDMAIL_LDFLAGS=-L/usr/local/lib >> SENDMAIL_LDADD=-lsasl > > Try adding -I/usr/local/include/sasl to the SENDMAIL_CFLAGS line. Thanks. This helped a bit, but a new problem was revealed. I added the -I you suggested, as well as -L/usr/local/lib/sasl to the SENDMAIL_LDFLAGS, so that the relevent section of make.conf looks like this: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL -I/usr/local/include/sasl SENDMAIL_LDFLAGS=-L/usr/local/lib -L/usr/local/lib/sasl SENDMAIL_LDADD=-lsasl Now the compilation fails when linking mail.local: ===> libexec/mail.local cc -O -pipe -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I/usr/local/include -DSASL -I/usr/local/include/sasl +-I/usr/obj/usr/src/i386/usr/include -c /usr/src/libexec/mail.local/../../contrib/sendmail/mail.local/mail.local.c cc -O -pipe -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I/usr/local/include -DSASL -I/usr/local/include/sasl +-I/usr/obj/usr/src/i386/usr/include -L/usr/local/lib -L/usr/local/lib/sasl -o mail.local mail.local.o +/usr/obj/usr/src/libexec/mail.local/../../lib/libsmutil/libsmutil.a -lsasl /usr/obj/usr/src/i386/usr/libexec/elf/ld: warning: libldap.so.1, needed by /usr/local/lib/libsasl.so, not found (try using -rpath or +-rpath-link) /usr/obj/usr/src/i386/usr/libexec/elf/ld: warning: liblber.so.1, needed by /usr/local/lib/libsasl.so, not found (try using -rpath or +-rpath-link) /usr/local/lib/mysql/libmysqlclient.so.6: warning: tempnam() possibly used unsafely; consider using mkstemp() /usr/local/lib/libsasl.so: undefined reference to `ldap_unbind' /usr/local/lib/libsasl.so: undefined reference to `ldap_simple_bind_s' /usr/local/lib/libsasl.so: undefined reference to `ldap_open' *** Error code 1 Have I misinstalled sasl? Has anyone gotten this going? Thanks! -- fred@condo.chico.ca.us Don't look at me: I voted for Nader. ------------------------------> Listen to the phryd lyn at http://live365.com/cgi-bin/directory.cgi?autostart=djphryd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message