Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2001 16:36:18 -0800
From:      Fred Condo <fred@condo.chico.ca.us>
To:        Matthew Emmerton <matt@gsicomp.on.ca>, questions@FreeBSD.ORG
Cc:        Matthew Emmerton <matt@gsicomp.on.ca>
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>

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!

-- 
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?127575.980008578>