On Wed, Nov 26, 2025 at 04:15:09PM +1100, Gary R. Schmidt via Postfix-users
wrote:
> ..., but also, on Solaris 11.4, using GCC 15.2.0:
> ...
> gcc -I. -I../../include -m32 -DHAS_LMDB -DUSE_TLS -DUSE_SASL_AUTH
> -DUSE_CYRUS_SASL -DHAS_DB -DEAI -I/usr/include/sasl -I/opt/local/include
> -DNO_NISPLUS -Dstrcasecmp=fix_strcasecmp -Dstrncasecmp=fix_strncasecmp
> -DHAS_DEV_URANDOM -DHAS_PCRE=2 -I/usr/include/pcre -DUSE_DYNAMIC_LIBS
> -UUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fno-common
> -fPIC -g -O -I. -I../../include -DSUNOS5 -c abounce.c
> In file included from abounce.c:195:
> ./mail_params.h:17:13: error: ‘bool’ cannot be defined via ‘typedef’
> 17 | typedef int bool;
> | ^~~~
This is known bitrot issue, and the known work-around is to add
"-std=gnu17" to your compiler flags. For example, My build
configuration script for Postfix as a result looks like:
PFIX=/opt/postfix
OSSL=/opt/openssl/3.5
OSSL_LDFLAGS="-Wl,-R,$OSSL/lib64 -L$OSSL/lib64 -lssl -lcrypto"
OSSL_CFLAGS="-I$OSSL/include"
make -f Makefile.init dynamicmaps=yes shared=yes pie=yes
openssl_path=/$OSSL/bin/openssl \
"CCARGS=$OSSL_CFLAGS "'-std=gnu17 -DNO_NIS -DUSE_SASL_AUTH
-I/usr/include/sasl -DHAS_PCRE=2 -DUSE_CYRUS_SASL -DUSE_TLS -DHAS_CDB
-DHAS_LMDB' \
"AUXLIBS=$OSSL_LDFLAGS "'-lsasl2 -ldb' \
'AUXLIBS_CDB=-lcdb' \
'AUXLIBS_PCRE=-lpcre2-8' \
'AUXLIBS_LMDB=-llmdb' \
command_directory=$PFIX/sbin \
config_directory=$PFIX/etc \
daemon_directory=$PFIX/libexec \
data_directory=/var/lib/postfix \
mailq_path=$PFIX/sbin/mailq \
newaliases_path=$PFIX/sbin/newaliases \
queue_directory=/var/spool/postfix \
sendmail_path=$PFIX/sbin/sendmail \
shlib_directory=$PFIX/lib64/MAIL_VERSION \
html_directory=no \
manpage_directory=$PFIX/man \
readme_directory=no \
makefiles
--
Viktor. 🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]