Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sendmail + sasl proble

13 views
Skip to first unread message

Jarek

unread,
Sep 3, 2003, 8:49:23 AM9/3/03
to
Hi,
I'm compile SASL 1.5.28 don't use port
I'm trying to compile sendmail with SASL and
I get error :

Making all in:
/usr/local/src/sendmail-8.12.9/sendmail
Configuration: pfx=, os=FreeBSD, rel=5.0-RELEASE, rbase=5,
rroot=5.0-RELEASE, arch=i386, sfx=, variant=optimized
Making in
/usr/local/src/sendmail-8.12.9/obj.FreeBSD.5.0-RELEASE.i386/sendmail
cc -o sendmail -L/usr/lib/sasl main.o alias.o arpadate.o bf.o collect.o
conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
headers.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o readcf.o
recipient.o sasl.o savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o
stab.o stats.o sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o
version.o -lsasl
/usr/local/src/sendmail-8.12.9/obj.FreeBSD.5.0-RELEASE.i386/libsmutil/libsmu
til.a
/usr/local/src/sendmail-8.12.9/obj.FreeBSD.5.0-RELEASE.i386/libsm/libsm.a -
lutil
/usr/bin/ld: cannot find -lsasl
*** Error code 1

My config file site.config.m4 :

APPENDDEF(`conf_sendmail_ENVDEF', `-I/usr/local/include/')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl')

ok# ls /usr/local/include |grep sasl
sasl.h
saslplug.h
saslutil.h

ok# ls /usr/local/lib/sasl
libanonymous.la libcrammd5.la libdigestmd5.la
liblogin.la libplain.la
libanonymous.so libcrammd5.so libdigestmd5.so
liblogin.so libplain.so
libanonymous.so.1 libcrammd5.so.1 libdigestmd5.so.0
liblogin.so.0 libplain.so.1


How can I solve this problem?
I have FreeBSD 5.0

Thanks for your help

JB


G. Roderick Singleton

unread,
Sep 3, 2003, 10:23:42 AM9/3/03
to

build libsasl.a and libsasl.so and libsasl.so.?

Claus Aßmann

unread,
Sep 3, 2003, 11:05:36 AM9/3/03
to
Jarek wrote:

> I'm compile SASL 1.5.28 don't use port
> I'm trying to compile sendmail with SASL and
> I get error :

> /usr/bin/ld: cannot find -lsasl

> APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl')

Isn't libsasl in /usr/local/lib ?

APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')

--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

G. Roderick Singleton

unread,
Sep 3, 2003, 11:44:18 AM9/3/03
to
Claus Aßmann wrote:
> Jarek wrote:
>
>
>>I'm compile SASL 1.5.28 don't use port
>>I'm trying to compile sendmail with SASL and
>>I get error :
>
>
>>/usr/bin/ld: cannot find -lsasl
>
>
>>APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl')
>
>
> Isn't libsasl in /usr/local/lib ?
>
> APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')
>

I hadn't thought of that. Good point and thanks. You learn or remember
something new every day '-)

Alexander Dalloz

unread,
Sep 3, 2003, 12:41:11 PM9/3/03
to

But as in the OP:

Making all in:
/usr/local/src/sendmail-8.12.9/sendmail
Configuration: pfx=, os=FreeBSD, rel=5.0-RELEASE, rbase=5,
rroot=5.0-RELEASE, arch=i386, sfx=, variant=optimized
Making in
/usr/local/src/sendmail-8.12.9/obj.FreeBSD.5.0-RELEASE.i386/sendmail
cc -o sendmail -L/usr/lib/sasl main.o alias.o arpadate.o bf.o collect.o

it uses -L/usr/lib/sasl and not the local path.

Alexander


--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653

G. Roderick Singleton

unread,
Sep 3, 2003, 1:02:53 PM9/3/03
to
Alexander Dalloz wrote:
> G. Roderick Singleton <ge...@pathtech.org> wrote:
>
>
>>Claus Aßmann wrote:
>>
>>>Jarek wrote:
>>>
>>>
>>>
>>>>I'm compile SASL 1.5.28 don't use port
>>>>I'm trying to compile sendmail with SASL and
>>>>I get error :
>>>
>>>
>>>>/usr/bin/ld: cannot find -lsasl
>>>
>>>
>>>>APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl')
>>>
>>>
>>>Isn't libsasl in /usr/local/lib ?
>>>
>>>APPENDDEF(`confLIBDIRS', `-L/usr/local/lib')
>>>
>>
>>I hadn't thought of that. Good point and thanks. You learn or remember
>>something new every day '-)
>
>
> But as in the OP:
>
> Making all in:
> /usr/local/src/sendmail-8.12.9/sendmail
> Configuration: pfx=, os=FreeBSD, rel=5.0-RELEASE, rbase=5,
> rroot=5.0-RELEASE, arch=i386, sfx=, variant=optimized
> Making in
> /usr/local/src/sendmail-8.12.9/obj.FreeBSD.5.0-RELEASE.i386/sendmail
> cc -o sendmail -L/usr/lib/sasl main.o alias.o arpadate.o bf.o collect.o
>
> it uses -L/usr/lib/sasl and not the local path.
>
> Alexander
>
>

Interesting. I've never noticed anything in the OP specific to FreeBSD.
Silly me, I thought the user had read the docs and had deliberatly setup
his environment in this manner since sasl libraries are built outside of
sendmail. I guess the moral of this story is always guess and answer to
the lowest common denomenator, eh?

Jarek

unread,
Sep 4, 2003, 3:14:51 AM9/4/03
to
Change /usr/local/lib/sasl - > /usr/local/lib
Now is ok.
0 new messages