🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.current
Article #233

Re: fatal error: 'sasl.h' file not found

#233
From: bob prohaska
Date: Tue, 24 Nov 2026 17:08
168 lines
8231 bytes
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
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"
sendmail_submit_enable="YES"
sendmail_outbound_enable="YES"
sendmail_msp_queue_enable="YES"



> Do you have
> security/cyrus-sasl or the like installed? 

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.
I'm tempted to comment it out.
I didn't put it there intentionally.

> SENDMAIL_LDADD=-lsasl2
is absent.


> (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.
> > 
> > The image used to set the system up was 
> > FreeBSD-16.0-CURRENT-arm-armv7-GENERICSD-20261102-cfbf11308b58-290542.img
> > 
> > Might this be a preliminary step toward configuring sendmail to operate
> > in a secure mode? There's a section in the sendmail README directory
> > headed
> > +------------------------------------+
> > | SASL COMPILATION AND CONFIGURATION |
> > +------------------------------------+
> > but no guidance on how to turn the feature off.
> 
> As far as I can tell, FreeBSD never turned the feature on by default
> when that "#if SASL" line existed and did not have all the files
> required for being enabled to actually build.
> 
> > 
> > Might something along the lines of -DSASL=0 on the buildworld
> > line be a workaround?
> 
> FreeBSD OS never had a sasl.h as far as I can tell and so never could
> build with SASL enabled as long as the text that I quoted was in place
> --unless some other context was provided and made accessible that did
> provide such a file.
> 
> -DSASL=0 correctly propagated to the C/C++ commands may be a workaround
> but it appears to me that ending up with SASL defined (and non-zero)
> needs an explanation --or whatever is going on.
> 
> Do you have any lines with -DSASL in /etc/make.conf or /etc/src.conf or
> the like? (poudriere has its own places for *make*.conf types of files.)
Only the example in /etc/make.conf found above..

> 
> Have you checked if the involved:
> 
> /usr/src/contrib/sendmail/src/sendmail.h
> 
> is as I described? Might the file be corrupt (given recent file
> corruption history you have had)? (So, may be the logic ended up
> different than what I copied.)
>
This is a fresh install on a different disk, so hopefully not! 

It's also the first from-scratch setup of a Pi2 since armv7 was
demoted to tier-2 status, which changed the setup sequence for
self-hosting. 

Thanks for writing!

bob prohaska


--
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: <awXEfCYhcfwHZR8q@www.zefox.net>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <97ab7c71-ea6a-499a-bb65-63f8926f4e5d@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bob prohaska <fbsd@www.zefox.net>
Newsgroups: muc.lists.freebsd.current
Subject: Re: fatal error: 'sasl.h' file not found
Date: Tue, 24 Nov 2026 09:08:12 -0800
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <awXEfCYhcfwHZR8q@www.zefox.net>
References: <> <97ab7c71-ea6a-499a-bb65-63f8926f4e5d@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="50726"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795539929;
	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:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=Q53WsOm+GmQzyltLhJKJaLdmYvgurWciW5AYLXD+Vxc=;
	b=C5guUN9WgOCWYl6fwDXBwUZVpwRzCjyAXMYrmTIu0LeJQtQWShYweZTO3LyE5JpZsBrUbI
	OAsN2OISd0+OQamPtvbH6iVol8M07+XpIfc87+IDb7HYpB+7Or2/FvTxHg5nFQVGZEQeil
	kF+1o/OEB0rfemFgtF26gyRkemMJlohljaalYUEDYZCWJwHQGSzwGTFEv4KdwEF07luzSr
	n41m20l3M64veTcATFH4fH3WAvuTDfGfNsbWVtxtowRrsQzX/IIGmX6XdM/AEsxobU18JL
	ozVWJ8cGZxiH4D+ldMktolE5/0yKWYJCBgQ4PTZpOgDKPrpuCrAa/7mv6RkkQg==
X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=none;
	dmarc=none;
	spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net
Precedence: list
Content-Disposition: inline
In-Reply-To: <97ab7c71-ea6a-499a-bb65-63f8926f4e5d@yahoo.com>
X-Rspamd-Queue-Id: 4jYq1W4MMkz3FKg
X-Spamd-Bar: +
X-Spamd-Result: default: False [1.90 / 15.00];
	AUTH_NA(1.00)[];
	MID_RHS_WWW(0.50)[];
	WWW_DOT_DOMAIN(0.50)[];
	MIME_GOOD(-0.10)[text/plain];
	RCVD_TLS_LAST(0.00)[];
	FREEMAIL_TO(0.00)[yahoo.com];
	RCPT_COUNT_TWO(0.00)[2];
	ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US];
	ARC_NA(0.00)[];
	MIME_TRACE(0.00)[0:+];
	MISSING_XM_UA(0.00)[];
	MID_RHS_MATCH_FROM(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-current@freebsd.org];
	TO_DN_SOME(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	R_DKIM_NA(0.00)[];
	RCVD_COUNT_TWO(0.00)[2];
	DNSWL_BLOCKED(0.00)[50.1.20.27:from];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	DMARC_NA(0.00)[zefox.net];
	R_SPF_NA(0.00)[no SPF record]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes