Sendmail.README from the secutity/cyrus_sasl-port states that "starting with Sendmail 8.12, you can also use the security/cyrus-sasl2 port. Then you will not need the SASL V1 port installed". Unfortunately this is not the case, rebuilding world fails, when the Cyrus SASL 2.1.7 port is used although the native sendmail version is 8.12.3. It seems that sasl.h can not be found while compiling libmilter. Relevant part from the build log follows: ----snip---- (...) ===> libmilter ln -sf /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h sm_os.h rm -f .depend mkdep -f .depend -a -I/usr/src/lib/libmilter/../../contrib/sendmail/src -I/usr/src/lib/libmilter/../../contrib/sendmail/include -I. -DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_THREAD_SAFE -I/usr/local/include -DSASL=2 /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/main.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/engine.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/listener.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/handler.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/comm.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/smfi.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/signal.c /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/sm_gethost.c /usr/src/lib/libmilter/../../contrib/sendmail/libsm/errstring.c /usr/src/lib/libmilter/../../contrib/sendmail/libsm/strl.c In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/main.c:15: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/engine.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/listener.c:18: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/handler.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/comm.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/smfi.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/libmilter.h:31, from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/signal.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory In file included from /usr/src/lib/libmilter/../../contrib/sendmail/libmilter/sm_gethost.c:14: /usr/src/lib/libmilter/../../contrib/sendmail/src/sendmail.h:127: sasl.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/lib/libmilter. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ----snap---- Fix: A workaround is to use the security/cyrus_sasl port (cyrus-sasl-1.5.27_7) which works. How-To-Repeat: Install the cyrus_sasl2 port, follow the instructions given in Sendmail.README and add the following lines to make.conf: ----snip---- # Add SMTP AUTH support to Sendmail SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS+= -L/usr/local/lib SENDMAIL_LDADD+= -lsasl2 ----snap---- Then try to rebuild world and watch it fail.
From: "Guido Berhoerster" <ich@guido-berhoerster.org> > Sendmail.README from the secutity/cyrus_sasl-port states that > "starting with Sendmail 8.12, you can also use the > security/cyrus-sasl2 port. Then you will not need the SASL V1 > port installed". Unfortunately this is not the case, rebuilding > world fails, when the Cyrus SASL 2.1.7 port is used although the > native sendmail version is 8.12.3. It seems that sasl.h can not > be found while compiling libmilter. Relevant part from the build > log follows: > SASL V2 support was added to Sendmail 8.12.4. Could someone change the Sendmail.README's in both security/cyrus_sasl{,2} ports to say: starting with Sendmail 8.12.4, the security/cyrus-sasl2 port can be used. Thanks, Scot W. Hetzel
State Changed From-To: open->closed SASLv2 support of Sendmail is started with 8.12.4. I've just corrected it. Thanks!
Responsible Changed From-To: freebsd-ports->ume SASLv2 support of Sendmail is started with 8.12.4. I've just corrected it. Thanks!