Article View: muc.lists.freebsd.current
Article #239Re: fatal error: 'sasl.h' file not found
From: Mark Millard
Date: Wed, 25 Nov 2026 06:09
Date: Wed, 25 Nov 2026 06:09
305 lines
16121 bytes
16121 bytes
On 11/24/26 19:56, bob prohaska wrote: > On Tue, Nov 24, 2026 at 06:45:53PM -0800, Mark Millard wrote: >> On 11/24/26 09:08, bob prohaska wrote: >>> For context, >>> This host's setup sequence was: >>> install a snapshot >>> download src and ports using tarballs >>> copy pkg from another armv7 (Pi2) host >>> use make in /usr/ports to install poudriere >>> set up a local pkg repository >>> use poudriere to make git >>> replace /usr/src and /usr/ports using git clone > Forgot to mention, next step was buildworld, which is failing. > More discoveries below... > >>> This sequence has never been tried before by me. >>> >>> On Mon, Nov 23, 2026 at 05:58:58PM -0800, Mark Millard wrote: >>>> On 11/23/26 14:34, bob prohaska wrote: >>>>> On Mon, Nov 23, 2026 at 10:52:22AM -0800, Mark Millard wrote: >>>>>> On 11/23/26 07:51, bob prohaska wrote: >>>>>>> >>>>>>> A new armv7 host is trying to build -current but stops with: >>>>>>> >>>>>>> ...... >>>>>>> In file included from /usr/src/contrib/sendmail/libmilter/libmilter.h:33: >>>>>>> /usr/src/contrib/sendmail/src/sendmail.h:281:12: fatal error: 'sasl.h' file not found >>>>>>> 281 | # include <sasl.h> >>>>>>> | ^~~~~~~~ >>>>>>> 1 error generated. >>>>>>> *** [main.o] Error code 1 >>>> >>>> Do you use sendmail in a way that involves SMTP AUTH? >>> >>> Not intentionally. I do have in /etc/rc.conf the lines: >>> sendmail_enable="YES" The above line appears to only be for incoming handling, not used for outgoing. >>> sendmail_submit_enable="YES" >>> sendmail_outbound_enable="YES" sendmail on a trusted LAN does not need to use sendmail_outbound_enable for an outgoing-only host as I understand. Involved is: sysrc sendmail_enable="NO" sysrc sendmail_submit_enable="YES" sysrc sendmail_msp_queue_enable="YES" As for a incoming-only host: sysrc sendmail_enable="YES" (No claim to be documenting other aspects of setup.) >> >> As I understand, SASL is involved for forwarding email without using >> port 25 (tends to be blocked in various types of contexts) and need to >> authenticate with a relay host. (Forwarding is a form of outbound.) >> >> If that is part of your context but incoming is not part of the context, >> then you need to use sendmail.mc and /etc/maik/authinfo --and >> installation of, say, security/cyrus-sasl2 before buildworld. >> >> You would need the likes of security/cyrus-sasl2 installed as already >> present in order to have the sendmail part of buildworld build with SASL >> support. Your lines in /etc/make.conf then change how buidlworld works, >> putting such to use. >> >>> sendmail_msp_queue_enable="YES" >>> >>> >>> >>>> Do you have >>>> security/cyrus-sasl or the like installed? >> >> These days, likely: security/cyrus-sasl2 ? > No, never attempted it. > >> >>> >>> Nothing named cyrus-sasl, according to >>> pkg info -a >>> >>>> Do you have related >>>> /etc/make.conf file lines like: >>>> >>>> SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL >>>> SENDMAIL_LDFLAGS=-L/usr/local/lib >>> >>> Only the two lines above, the first looks suspicious. >> >> So far as I know the 2 SENDMAIL_* lines above are not default >> /etc/make.conf content. Looks like you explicitly enabled SASL building >> via the "SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL" line. >> >> Looks like you nearly copied part of: >> >> <https://man.freebsd.org/cgi/man.cgi?make.conf(5)> >> >> QUOTE >> SENDMAIL_CFLAGS >> (str) Flags to pass to the compile command when building >> sendmail(8). The SENDMAIL_* flags can be used to provide >> SASL support with setting such as: >> >> SENDMAIL_CFLAGS=-I/usr/local/include -DSASL >> SENDMAIL_LDFLAGS=-L/usr/local/lib >> SENDMAIL_LDADD=-lsasl >> END QUOTE >> >> (In modern times -lsasl2 may be more likely when SASL is to be in use?) more to the point is likely: # less /usr/share/examples/etc/make.conf . . . #SENDMAIL_M4_FLAGS= # # Setting the following variables modifies the build environment for # sendmail and its related utilities. For example, SASL support can be # added with settings such as: # # with SASLv1: # SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL # SENDMAIL_LDADD=/usr/local/lib/libsasl.so # # with SASLv2: # SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 # SENDMAIL_LDADD=/usr/local/lib/libsasl2.so # # Note: If you are using Cyrus SASL with other applications which require # access to the sasldb file, you should add the following to your # sendmail.mc file: # # define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile') # #SENDMAIL_CFLAGS= #SENDMAIL_LDFLAGS= #SENDMAIL_LDADD= #SENDMAIL_DPADD= # # Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a # set-user-ID root binary instead of a set-group-ID smmsp binary and will # prevent the installation of /etc/mail/submit.cf. # This is a deprecated mode of operation. See etc/mail/README for more # information. # #SENDMAIL_SET_USER_ID= # # The permissions to use on alias and map databases generated using # /etc/mail/Makefile. Defaults to 0640. # #SENDMAIL_MAP_PERMS= . . . >> >>> I'm tempted to comment it out. >>> I didn't put it there intentionally. >>> >>>> SENDMAIL_LDADD=-lsasl2 >>> is absent. >> >> If you build such that /usr/local/lib/libsasl2.so would be put to use, >> the SENDMAIL_LDADD=-lsasl2 is likely required. If there is a static >> linking build done instead, then not. >> >>> >>> >>>> (including in poudriere *make*.conf equivalent places)? >>>> >>> I think not, grep -ir sasl /usr/local/etc/* produces no output. >>> >>>>>>> >>>>>>> ..... >>>>>>> Sources were reset --hard this morning, so up-to-date, but no change. >>>>>>> >>>>>>> A web search finds reports for similar errors, but none seem recent. >>>>>>> >>>>>>> Thanks for reading and any suggestions! >>>>>>> >>>>>>> bob prohaska >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> The code in question has looked like: >>>>>> ( /usr/src/contrib/sendmail/src/sendmail.h ) >>>>>> >>>>>> #if SASL >>>> >>>> Note: The above line was added at 2020-07-15 18:28:54 +0000 >>>> ( >>>> <https://cgit.freebsd.org/src/commit/contrib/sendmail?id=5b0945b57059d1cde0831d3afea7ec56c7d79508> >>>> ) >>>> >>>>>> /* include the sasl include files if we have them */ >>>>>> # if SASL == 2 || SASL >= 20000 >>>>>> # include <sasl/sasl.h> >>>>>> # include <sasl/saslplug.h> >>>>>> # include <sasl/saslutil.h> >>>>>> # if SASL_VERSION_FULL < 0x020119 >>>>>> typedef int (*sasl_callback_ft)(void); >>>>>> # endif >>>>>> # else /* SASL == 2 || SASL >= 20000 */ >>>>>> # include <sasl.h> >>>>>> # include <saslutil.h> >>>>>> typedef int (*sasl_callback_ft)(void); >>>>>> # endif /* SASL == 2 || SASL >= 20000 */ >>>>>> >>>>>> The code line :281 is the line after the else. >>>>>> >>>>>> contrib/sendmail/ has not changed after 2025-10-09 . >>>>>> >>>>>> My guess is that previously SASL was 0 or undefined in your context. >>>>>> >>>>>> For reference in the context I looked at: >>>>>> >>>>>> # find -s / -name sasl.h -print >>>>>> # >>>>>> >>>>>> My understanding is that such has always or long been the case. >>>>>> >>>>>> I've no clue how your build ended up with SASL defined, much less with a >>>>>> value for which the else clause was used. >> >> You answered how SASL has a way to be defined in your context. >> >> You appear to be set up for having buildworld depend on a FreeBSD port >> in order for outgoing forwarding to authenticate. > > The puzzle then is what invoked authentication. I didn't, I simply used > sendmail because it will honor a .forward file in /root so the mail goes > to my usual mail-reading host and username. Was it using port 25 vs. some other port? What receiving MTA is in use? > Far as I know, DMA doesn't > use .forward files. > > Here's a clue, maybe.... > > # pkg info -a finds: > > p5-Authen-SASL-2.2100 Perl5 module for SASL authentication That makes no sense by itself for the base system sendmail: it is pure perl and sendmail is C expecting C and you have the lines for building C, not anything perl based. Something like: # pkg info -r p5-Authen-SASL might give you a clue what was using p5-Authen-SASL . (Some transitive closure like exploration might be required?) perl can have bindings that wrap the cyrus-sasl C library but sendmail would not use perl for that as far as I can tell. > > installed. I didn't invoke it intentionally. Could that installation > have made the change to /etc/make.conf? FreeBSD ports do not ever modify /etc/make.conf as far as I know. The /usr/local/etc/ area is not the same thing. It appears that at some point someone hand edited /etc/make.conf . > > For what it's worth, commenting out the > SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL > line seems to be allowing buildworld to continue past its > former stopping point. Expected, as you undefined SASL by doing so. The question is if you are using port 25 directly vs. authenticating with a relay host as far as I can tell. > > The way dependency trees in ports can grow is quite amazing. > Has anybody found a way to sanity-test them? It's really a > question for the freebsd-ports mailing list..... > > Thanks for writing! > > bob prohaska > > > -- === Mark Millard marklmi at yahoo.com -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<a4c4934f-4010-4f96-b362-68481e0f0391@yahoo.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<awZcV-cR-Y7tKqBp@www.zefox.net> <>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Mark Millard <marklmi@yahoo.com> Newsgroups: muc.lists.freebsd.current Subject: Re: fatal error: 'sasl.h' file not found Date: Tue, 24 Nov 2026 22:09:20 -0800 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <a4c4934f-4010-4f96-b362-68481e0f0391@yahoo.com> References: <awZcV-cR-Y7tKqBp@www.zefox.net> <> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="7391"; mail-complaints-to="news-admin@muc.de" User-Agent: Mozilla Thunderbird DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795586996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=QbxSn/Art2FtKxf1xOYr3vY0zwDj/AF+agmt8m7dzHg=; b=TJ2c0ZXM/EBPXjoJcOKSOBSZD3AaPBYPDdPC7DE0qcfjXMhu0cLQ6G6wBDVymxkH4wkg1E qoQwd+bxjl2R0XmrD3Ds0ft7Z1GkN1SLaA0n2yWMHYLsrVrM0bUg7VzlMhMWBXTSgmlV31 9Ak1aY6Nk0Wde7uIVYoHwwiYZKZ4+SltwKJ7WolGJ98IIvvC1junJDGiEzmPidC7WoCSet lNxGsM3gW5koXNphx+3Ks5rOtN5GBD9HqQ/uS2x23T7zxD+BGia6ERmItISH71WJwDaAbz vbywUtNVoR8btZJU1zcCOAG5S2XmjMmH3ha/O9fRduDid7J8Vw77J3UySTA5yA== X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=HrKe5RKE; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 34.2.70.26 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1795586963; bh=QbxSn/Art2FtKxf1xOYr3vY0zwDj/AF+agmt8m7dzHg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:Content-Type:From:Subject:Reply-To:Content-Type; b=HrKe5RKEd7ElKy5AVOnWdShFhxyyR1+xnnccbmRgO2/VUkcdU3+a/ZIFr/K0N4vBs5Cj7TfkqJN7zpmNsP8z//UyNrZS0du17YJ5qrpFV+nweAFH0+dBez1a9sWr4tnKINakaOAwpJmrSSHroePCrtnaec54wbbieOgHLjSU/JAeFWW5BpjaZXbwWVly3dY7mrMrxuGfEHjx79UDuFoFqKeSxWAqQiJmBBHYp6Ni6bYj8AD42UCtELLa8AVoIH1sdVhlEXJdmRocayU5Q+jeXjyYyOTsEi0eM69d6fI3RDqUb2S9NwdKqHWWUupuFJktPSuN2jm+3wcckrROT+c3Lw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1795586963; bh=svSDUJF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_bBzPlNTpChn8f26KWZ .W3ZFu0ylR3RtcOC7bA9ICJCLAuuqkI.gPMdr.BelPZdfMK0kp2Nqgy5eZb9RUjxoJyqgoA.na3d paPE.LNJtinYfMBk69gXAXGyWW3wUQMhHIPOrPSb9lO5UcjMaS09_2AkPNmYyq1aV0t4onizLMTH XEC7Xqh.NXww8FlGCz2aCEGw6R24WNVe5bgxrtDrSQ3F47.L1fGMBHlRo65w2Fy3furaPevGWBIb rbz__K.CC3QqgM5KKnODZULx2GNekYVFuEXYQfK1.3m3Mo7NwzQzNeQtxooSnbs5Fqy.XifiKZ9Q dqhEb0UZUHf8QGH7SxpvSg9RAhtgSiux5eyYQ3F2TyjJKTdMBLCFXVXZJEzo- X-Sonic-MF: <marklmi@yahoo.com> X-Sonic-ID: a9acb2aa-2276-4e0d-95ec-aa6f2c8860a4 Precedence: list Content-Language: en-US In-Reply-To: <awZcV-cR-Y7tKqBp@www.zefox.net> X-Rspamd-Queue-Id: 4jZ8QY4FrRz4n8K X-Spamd-Bar: - X-Spamd-Result: default: False [-1.20 / 15.00]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_VERYGOOD(-0.20)[34.2.70.26:from]; R_SPF_ALLOW(-0.20)[+ip4:34.2.64.0/19]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:34.2.70.0/23, country:US]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[34.2.70.26:from]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+] X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes