model-writtenrun 3641 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane traced caiman's build failures to libxml2 2.12's const-qualified error callback API and proposed explicit callback casts plus removal of an obsolete external-DTD setting in #1.
- Andrew Dunstan found the initial patch reasonable in #2, while Peter Eisentraut suggested conditional declarations analogous to PL/Tcl's compatibility macros in #3.
- Tom initially preferred casts unless compilers warned about them in #4, then recognized an existing nearby LIBXML_VERSION check and adopted the same technique to avoid adding a configure test in #5.
- The revised patch in #5 became 400928b83b unchanged; the other listed candidate, 3f8ac13b19, carries the same fix with older-branch context.
- The thread ends with the revised submission in #5, and the subsequent commits land both fixes; 400928b83b leaves the older branches' separate xmlSubstituteEntitiesDefault deprecation warning for possible later backpatching because it does not break the buildfarm.