model-writtenrun 2243 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Lakshmi Narayana Velayudam reported that PostgreSQL 17.2 failed to compile on macOS with -std=c11 because explicit_bzero.c called an undeclared memset_s function, and noted a similar earlier report in #1.
- Tom Lane reproduced the failure and identified the missing C11 feature macro __STDC_WANT_LIB_EXT1__, also raising concern that configure and Meson probes could overlook available implementations in #2.
- Tom Lane supplied a lightly tested patch against HEAD that defines the feature macro before including headers and changes both build systems to test for the memset_s declaration in #3.
- The patch landed as 9bc2d37cca with the same core fix and light adaptations for older build infrastructure; its commit message specifies backpatching through PostgreSQL 13.
- Tom Lane confirmed the push and back-branch adjustments in #4, explaining that buildfarm evidence showed actual use of this memset_s fallback only on macOS because FreeBSD and Solaris already provided explicit_bzero; the thread ended with the fix committed and effects on other platforms unconfirmed.