Thread View: muc.lists.freebsd.current
8 messages
8 total messages
Started by bob prohaska
Mon, 23 Nov 2026 15:51
fatal error: 'sasl.h' file not found
Author: bob prohaska
Date: Mon, 23 Nov 2026 15:51
Date: Mon, 23 Nov 2026 15:51
25 lines
3289 bytes
3289 bytes
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
.....
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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: fatal error: 'sasl.h' file not found
Author: Mark Millard
Date: Mon, 23 Nov 2026 18:52
Date: Mon, 23 Nov 2026 18:52
68 lines
8258 bytes
8258 bytes
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 > > ..... > 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 /* 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. -- === 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
Re: fatal error: 'sasl.h' file not found
Author: bob prohaska
Date: Mon, 23 Nov 2026 22:34
Date: Mon, 23 Nov 2026 22:34
82 lines
5281 bytes
5281 bytes
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 > > > > ..... > > 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 > /* 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. Might something along the lines of -DSASL=0 on the buildworld line be a workaround? Apologies for getting in waaaay over my head, bob prohaska -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: fatal error: 'sasl.h' file not found
Author: Mark Millard
Date: Tue, 24 Nov 2026 01:58
Date: Tue, 24 Nov 2026 01:58
135 lines
10678 bytes
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
Re: fatal error: 'sasl.h' file not found
Author: bob prohaska
Date: Tue, 24 Nov 2026 17:08
Date: Tue, 24 Nov 2026 17:08
168 lines
8231 bytes
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
Re: fatal error: 'sasl.h' file not found
Author: Mark Millard
Date: Wed, 25 Nov 2026 02:45
Date: Wed, 25 Nov 2026 02:45
227 lines
14000 bytes
14000 bytes
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
> 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"
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 ?
>
> 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?)
> 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 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
>
>
--
===
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
Re: fatal error: 'sasl.h' file not found
Author: bob prohaska
Date: Wed, 25 Nov 2026 03:56
Date: Wed, 25 Nov 2026 03:56
201 lines
9577 bytes
9577 bytes
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" > > sendmail_submit_enable="YES" > > sendmail_outbound_enable="YES" > > 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?) > > > 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. 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 installed. I didn't invoke it intentionally. Could that installation have made the change to /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. 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 -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: fatal error: 'sasl.h' file not found
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads