On 26/11/2025 09:37, Wietse Venema via Postfix-users wrote:
n-line version of this announcement will be available at
https://www.postfix.org/announcements/postfix-3.10.5.html]

That should probably be 3.10.6 above, 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;
      |             ^~~~
./mail_params.h:17:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
./mail_params.h:17:1: warning: useless type name in empty declaration
   17 | typedef int bool;
      | ^~~~~~~
*** Error code 1

Which looked like a simple, "comment it out and we're fine", and we'll get past it, (it'll need clever #if to do properly), but then:
...
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 mail_params.c mail_params.c:257:9: error: conflicting types for ‘var_helpful_warnings’; have ‘int’
  257 | int     var_helpful_warnings;
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from mail_params.c:242:
./mail_params.h:39:13: note: previous declaration of ‘var_helpful_warnings’ with type ‘_Bool’
   39 | extern bool var_helpful_warnings;
      |             ^~~~~~~~~~~~~~~~~~~~
mail_params.c:283:9: error: conflicting types for ‘var_dont_remove’; have ‘int’
  283 | int     var_dont_remove;
      |         ^~~~~~~~~~~~~~~
./mail_params.h:2588:13: note: previous declaration of ‘var_dont_remove’ with type ‘_Bool’
 2588 | extern bool var_dont_remove;
      |             ^~~~~~~~~~~~~~~
mail_params.c:306:9: error: conflicting types for ‘var_disable_dns’; have ‘int’
  306 | int     var_disable_dns;
      |         ^~~~~~~~~~~~~~~
./mail_params.h:259:13: note: previous declaration of ‘var_disable_dns’ with type ‘_Bool’
  259 | extern bool var_disable_dns;
      |             ^~~~~~~~~~~~~~~
mail_params.c:307:9: error: conflicting types for ‘var_soft_bounce’; have ‘int’
  307 | int     var_soft_bounce;
      |         ^~~~~~~~~~~~~~~
./mail_params.h:2595:13: note: previous declaration of ‘var_soft_bounce’ with type ‘_Bool’
 2595 | extern bool var_soft_bounce;
      |             ^~~~~~~~~~~~~~~
mail_params.c:309:9: error: conflicting types for ‘var_ownreq_special’; have ‘int’
  309 | int     var_ownreq_special;
      |         ^~~~~~~~~~~~~~~~~~
./mail_params.h:2602:13: note: previous declaration of ‘var_ownreq_special’ with type ‘_Bool’
 2602 | extern bool var_ownreq_special;
      |             ^~~~~~~~~~~~~~~~~~
mail_params.c:348:9: error: conflicting types for ‘var_disable_mime_input’; have ‘int’
  348 | int     var_disable_mime_input;
      |         ^~~~~~~~~~~~~~~~~~~~~~
./mail_params.h:3085:13: note: previous declaration of ‘var_disable_mime_input’ with type ‘_Bool’
 3085 | extern bool var_disable_mime_input;
      |             ^~~~~~~~~~~~~~~~~~~~~~
mail_params.c:349:9: error: conflicting types for ‘var_disable_mime_oconv’; have ‘int’
  349 | int     var_disable_mime_oconv;
      |         ^~~~~~~~~~~~~~~~~~~~~~
./mail_params.h:3089:13: note: previous declaration of ‘var_disable_mime_oconv’ with type ‘_Bool’
 3089 | extern bool var_disable_mime_oconv;
      |             ^~~~~~~~~~~~~~~~~~~~~~
mail_params.c:350:9: error: conflicting types for ‘var_strict_8bitmime’; have ‘int’
  350 | int     var_strict_8bitmime;
      |         ^~~~~~~~~~~~~~~~~~~
./mail_params.h:3097:13: note: previous declaration of ‘var_strict_8bitmime’ with type ‘_Bool’
 3097 | extern bool var_strict_8bitmime;
      |             ^~~~~~~~~~~~~~~~~~~
mail_params.c:351:9: error: conflicting types for ‘var_strict_7bit_hdrs’; have ‘int’
  351 | int     var_strict_7bit_hdrs;
      |         ^~~~~~~~~~~~~~~~~~~~
./mail_params.h:3101:13: note: previous declaration of ‘var_strict_7bit_hdrs’ with type ‘_Bool’
 3101 | extern bool var_strict_7bit_hdrs;
      |             ^~~~~~~~~~~~~~~~~~~~
mail_params.c:352:9: error: conflicting types for ‘var_strict_8bit_body’; have ‘int’
  352 | int     var_strict_8bit_body;
      |         ^~~~~~~~~~~~~~~~~~~~
./mail_params.h:3105:13: note: previous declaration of ‘var_strict_8bit_body’ with type ‘_Bool’
 3105 | extern bool var_strict_8bit_body;
      |             ^~~~~~~~~~~~~~~~~~~~
mail_params.c:353:9: error: conflicting types for ‘var_strict_encoding’; have ‘int’
  353 | int     var_strict_encoding;
      |         ^~~~~~~~~~~~~~~~~~~
./mail_params.h:3109:13: note: previous declaration of ‘var_strict_encoding’ with type ‘_Bool’
 3109 | extern bool var_strict_encoding;
      |             ^~~~~~~~~~~~~~~~~~~
mail_params.c:354:9: error: conflicting types for ‘var_verify_neg_cache’; have ‘int’
  354 | int     var_verify_neg_cache;
      |         ^~~~~~~~~~~~~~~~~~~~
./mail_params.h:2956:13: note: previous declaration of ‘var_verify_neg_cache’ with type ‘_Bool’
 2956 | extern bool var_verify_neg_cache;
      |             ^~~~~~~~~~~~~~~~~~~~
mail_params.c:355:9: error: conflicting types for ‘var_oldlog_compat’; have ‘int’
  355 | int     var_oldlog_compat;
      |         ^~~~~~~~~~~~~~~~~
./mail_params.h:3131:13: note: previous declaration of ‘var_oldlog_compat’ with type ‘_Bool’
 3131 | extern bool var_oldlog_compat;
      |             ^~~~~~~~~~~~~~~~~
mail_params.c: In function ‘mail_params_init’:
mail_params.c:751:55: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types] 751 | VAR_DAEMON_OPEN_FATAL, DEF_DAEMON_OPEN_FATAL, &var_daemon_open_fatal,
      |                                                       ^
mail_params.c:751:55: note: (near initialization for ‘first_bool_defaults[0].target’) mail_params.c:752:57: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types] 752 | VAR_DNS_NCACHE_TTL_FIX, DEF_DNS_NCACHE_TTL_FIX, &var_dns_ncache_ttl_fix,
      |                                                         ^
mail_params.c:752:57: note: (near initialization for ‘first_bool_defaults[1].target’) mail_params.c:759:57: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types] 759 | VAR_RESPECTFUL_LOGGING, DEF_RESPECTFUL_LOGGING, &var_respectful_logging,
      |                                                         ^
mail_params.c:759:57: note: (near initialization for ‘first_nbool_defaults[2].target’) mail_params.c:882:45: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types]
  882 |         VAR_MULTI_ENABLE, DEF_MULTI_ENABLE, &var_multi_enable,
      |                                             ^
mail_params.c:882:45: note: (near initialization for ‘bool_defaults[13].target’) mail_params.c:883:49: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types] 883 | VAR_LONG_QUEUE_IDS, DEF_LONG_QUEUE_IDS, &var_long_queue_ids,
      |                                                 ^
mail_params.c:883:49: note: (near initialization for ‘bool_defaults[14].target’) mail_params.c:885:45: error: initialization of ‘int *’ from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types]
  885 |         VAR_ENABLE_ORCPT, DEF_ENABLE_ORCPT, &var_enable_orcpt,
      |                                             ^
mail_params.c:885:45: note: (near initialization for ‘bool_defaults[16].target’)
*** Error code 1


Yeah, that's a bit of a bigger problem.

        Cheers,
                Gary    B-)
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to