From owner-freebsd-questions Sat Jan 20 20:51:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 5471837B401 for ; Sat, 20 Jan 2001 20:51:20 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.9.3/8.9.3) with SMTP id XAA86232; Sat, 20 Jan 2001 23:45:59 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <003f01c08365$9b8b7f40$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Fred Condo" , References: <812530.979923971@[192.168.1.2]> <009601c0827e$2f3b75d0$1200a8c0@gsicomp.on.ca> <127575.980008578@[192.168.1.2]> Subject: Re: Sendmail in buildworld vs. SASL Date: Sat, 20 Jan 2001 23:49:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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! I don't think you've misinstalled sasl, but rather that you're the first person to venture down this rocky road. It looks like SASL is looking for LDAP (libldap.so.1 and liblber.so.1) and can't find them. Presumably OpenLDAP is installed properly, but check to see if you can find those libraries in /usr/local/lib. You should modify the Makefile for mail.local (/usr/src/libexec/mail.local/Makefile) and change the LDADD line to look like "LDADD= ${LIBSMUIL} -lldap -llber" in order for it to link against the LDAP libraries. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message