On Fri, Dec 01, 2006 at 06:30:32PM +0100, Sebastian Arvidsson Liem wrote: > I want sendmail with sask but when I try to build it it fails. > > --- > > # cat /etc/mk.conf > WANT_SMTPAUTH=yes > > --- > > # cd /usr/src/gnu/usr.sbin/sendmail > # make && make install && make clean > ...[lots of output]... > cc -L/usr/local/lib > -L/usr/src/gnu/usr.sbin/sendmail/sendmail/../libsmutil/obj > -L/usr/src/gnu/usr.sbin/sendmail/sendmail/../libsm/obj -o sendmail > 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 ratectrl.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 -lssl -lcrypto -lsasl2 -lsmutil -lsm > -lwrap > /usr/local/lib/libsasl2.so.2.21: warning: strcpy() is almost always > misused, please use strlcpy() > /usr/local/lib/libsasl2.so.2.21: warning: sprintf() is often misused, > please use snprintf() > /usr/local/lib/libsasl2.so.2.21: warning: strcat() is almost always > misused, please use strlcat() > main.o(.text+0x2288): In function `main': > : undefined reference to `sm_sasl_init' > srvrsmtp.o(.text+0x6112): In function `smtp': > : undefined reference to `iptostring' > srvrsmtp.o(.text+0x6167): In function `smtp': > : undefined reference to `iptostring' > srvrsmtp.o(.text+0x7e76): In function `saslmechs': > : undefined reference to `intersect' > usersmtp.o(.text+0x19fa): In function `attemptauth': > : undefined reference to `iptostring' > usersmtp.o(.text+0x1a76): In function `attemptauth': > : undefined reference to `iptostring' > usersmtp.o(.text+0x1be9): In function `smtpauth': > : undefined reference to `intersect' > collect2: ld returned 1 exit status > *** Error code 1 > > Stop in /usr/src/gnu/usr.sbin/sendmail/sendmail (line 95 of > /usr/share/mk/bsd.prog.mk). > *** Error code 1 > > Stop in /usr/src/gnu/usr.sbin/sendmail. > > --- > > Full output is at http://www.liem.se/downloads/output.txt > > dmesg at http://www.liem.se/downloads/dmesg.txt > > What do I do wrong?
Do you have cyrus-sasl installed? No clue, but this works for me (sorry for formating, but it is copy-pasted from my install script): die() { echo "$1" >&2 exit 1 } # Pre-setup ln -s /usr/local/lib/libsasl2.so.2.* /usr/local/lib/libsasl2.so \ || return 1 echo "pwcheck_method: saslauthd" > /usr/local/lib/sasl2/Sendmail.conf \ || return 1 echo "pwcheck_method: saslauthd" > /usr/local/lib/sasl2/Cyrus.conf \ || return 1 chmod 444 /usr/local/lib/sasl2/Sendmail.conf \ /usr/local/lib/sasl2/Cyrus.conf || return 1 echo "WANT_SMTPAUTH=YES" >> /etc/mk.conf || return 1 # Build new sendmail (cd /usr/src/gnu/usr.sbin/sendmail || die "Error no src dir"; \ make clean >> /root/sendmail_sasl.log 2>&1; \ make >> /root/sendmail_sasl.log 2>&1 \ || die "Error in make"; \ make install >> /root/sendmail_sasl.log 2>&1 \ || die "Error in make install"; \ make clean >> /root/sendmail_sasl.log 2>&1 \ || err "Error in make clean") > > -- > Sebastian A. Liem <> www.liem.se Regards, ahb