Date: Sat, 20 Jan 2001 23:49:55 -0500 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Fred Condo" <fred@condo.chico.ca.us>, <questions@FreeBSD.ORG> Subject: Re: Sendmail in buildworld vs. SASL Message-ID: <003f01c08365$9b8b7f40$1200a8c0@gsicomp.on.ca> References: <812530.979923971@[192.168.1.2]> <009601c0827e$2f3b75d0$1200a8c0@gsicomp.on.ca> <127575.980008578@[192.168.1.2]>
next in thread | previous in thread | raw e-mail | index | archive | help
> --On Friday, January 19, 2001 8:13 PM -0500 Matthew Emmerton > <matt@gsicomp.on.ca> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003f01c08365$9b8b7f40$1200a8c0>