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?

--
Sebastian A. Liem <> www.liem.se

Reply via email to