/usr/bin/ld: cannot find -lsasl2 when trying to install exim 4.77 on freebsd 7.4

duzap

Verified User
gcc demime.c
gcc bmi_spam.c
gcc spf.c
gcc srs.c
gcc dcc.c
gcc version.c
gcc -o exim
/usr/bin/ld: cannot find -lsasl2
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.77/build-FreeBSD-i386.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.77.
-e \n*** The make has failed, would you like to try to make again? (y,n):




how to fix?
 

wattie

Verified User
Same here... Cyrus-sasl2 is installed:

Code:
...
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for cyrus-sasl-2.1.25_2

# pkg_version -v | grep sasl
cyrus-sasl-2.1.25_2                 =   up-to-date with port

#  cd /usr/local/directadmin/custombuild

# ./build exim
...
gcc version.c
gcc -o exim
/usr/bin/ld: cannot find -lsasl2
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.77/build-FreeBSD-amd64.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.77.
-e \n*** The make has failed, would you like to try to make again? (y,n):
I have no idea how to proceed further... I am on freebsd 9 amd64. Fresh install. Only exim fails to compile.
 

zEitEr

Super Moderator
Hello,

What do you see if you run

Code:
strace /usr/bin/ld -lsasl2
?

Try to do

Code:
ln -s /usr/local/lib/libsasl2.so /usr/lib/libsasl2.so
and run

Code:
/usr/bin/ld -lsasl2
Will it help you?
 

wattie

Verified User
I thought I replied to the topic when I fixed it, but it disappeared.

Here is what I did to resolve the problem:

1. I deinstalled Perl 5.8
2. I installed Perl 5.14
3. I added p5-ExtUtils-Embed
4. Compiled exim like a charm.

Should be some perl related problem... maybe.
 
Top