🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#231
From: Mark Millard
Date: Tue, 24 Nov 2026 01:58
135 lines
10678 bytes
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? Do you have
security/cyrus-sasl or the like installed? Do you have related
/etc/make.conf file lines like:

SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

(including in poudriere *make*.conf equivalent places)?

>>>
>>> .....
>>> 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.)


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.)

> 
> Apologies for getting in waaaay over my head,
> 
> 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: <97ab7c71-ea6a-499a-bb65-63f8926f4e5d@yahoo.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <awS_YhKba3LjAEej@www.zefox.net> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!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: Mon, 23 Nov 2026 17:58:58 -0800
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <97ab7c71-ea6a-499a-bb65-63f8926f4e5d@yahoo.com>
References: <awS_YhKba3LjAEej@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="98871"; 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=1795485572;
	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=dZE3m+iynED5Vyt4qHBUGd5qG56OOQz7fArGAJBF4yU=;
	b=Lj9fUhsPPNTJXnJP4nJH9bH6QjMvdIRVTXdlWrTeYh5f/2ou096oIZFWTyLTuzmJu3VHzy
	CLqXzGwvkV7Xhra7WfLumr/e81WthM8K9lgrYcK4g3WG3YJaW7aNFQCIQbl5WylYKHLEdp
	bqN2/9cM7d4wpKblZN0GMwbVYo47r5JhriNqGqfQirEnvD7WJllsib8Sexh9FTlsmtZ36x
	lhT6QNweIHXay4Y+VtUPNdo6h4Tf3wweNjpSR/iroAWPNmRxK2VLJzYglRzvmE0n/YZK/x
	1fCjLKgAIqE/xhEKD5S2TV9GNagNKxAGXcg8xwk/5Jy6OqlIZILNRIWjAHCgfg==
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=omGHlgPE;
	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=1795485545; bh=dZE3m+iynED5Vyt4qHBUGd5qG56OOQz7fArGAJBF4yU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:Content-Type:From:Subject:Reply-To:Content-Type; b=omGHlgPEyvZsXHwMtP3yxHJo6UfwIG7Qc/72oD2yqMe2wHo9B9pFgBOyHjONDQzAJ3l+SDzfAH5esfl09iBuNFUwow55aNXYiLtZqSk8eE2AjMW89pPvuCxFLBx1nevB1LkGHAIZJJTAJu3tt5nmPp75y6RB2qBDegFoyFRJaPEC/c0Nmhyn+N+I+5iqMSKTvNyuFi6CsMlhekqqkaDNtp/qf8KJ5GJW09zuTPxBEEfmxua9vwDZBcGqZVw7Ql02CVe8pjoQWwaAVRaKDgSuRD6TcLk93ILrgxiC6CTIuneLBwlSgURn+WvrUC15PKt0KeffCGK0+kMdS+JWuVYaTA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1795485545; bh=qvsMUfnxCt9tODwG7/BHzF9BHQ3YgDV7sKS4IKxCkHo=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=pPZ6BQKDSK6iWo20Feg9lVwsaDr9FLLdlwxJVeQa37D6FMM/hB0/Y++kN+dodAB0x7J3UqKL17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qu.Q1Xf.9DKSGfldIw42x3SOcvZiwZZCMTICTOXSwXLiaGK_eziGtM9
 HB8veRZIR4xR_ClQLce9iD7UxNQ0pJax2SrG7cUzKU_R8nmZyUUZzalsTJRD3YHYZX0lQ0AkE342
 Xbpe2RVXCLrZXADo_CwkCmjN0vkvY395gJ5xAjE1ooOfCNIvS6jUkJ85exbg559_OLoY8wDWEcIz
 SjzckxJLGrGP2Ezq8wzSa1.K2TlseZTExOYqB3GIzLEHhzSITSbj4jepxaTA-
X-Sonic-MF: <marklmi@yahoo.com>
X-Sonic-ID: fbf79350-25f0-4bb5-88e4-0deed66c202b
Precedence: list
Content-Language: en-US
In-Reply-To: <awS_YhKba3LjAEej@www.zefox.net>
X-Rspamd-Queue-Id: 4jYQwC2bQ9z4fcM
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:+];
	FREEMAIL_ENVFROM(0.00)[yahoo.com];
	FREEMAIL_FROM(0.00)[yahoo.com];
	MID_RHS_MATCH_FROM(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-current@freebsd.org];
	RCPT_COUNT_TWO(0.00)[2];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[34.2.70.26:from];
	RCVD_COUNT_TWO(0.00)[2];
	DWL_DNSWL_NONE(0.00)[yahoo.com:dkim];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	DKIM_TRACE(0.00)[yahoo.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes