From: Olivier Houchard Date: Wed, 28 Oct 2026 16:05:19 +0000 (+0100) Subject: BUILD: sym: Fix build on recent glibc X-Git-Tag: v3.5-dev11~96 X-Git-Url: https://git.kaiwu.me/$%7BGITURL%7D$%7Bcid%7D?a=commitdiff_plain;h=463527ba1e19c4fafae96fd16d1ff56ce979a698;p=haproxy.git BUILD: sym: Fix build on recent glibc With a recent glibc, as found on Ubuntu 26.04, with the default locale, sort and comm do not always agree on the ordering of all characters, notably punctuation characters, and comm will thus fail when reading the output of sort, producing a warning, and prevent the minidebug section from being created. Just force them to use the C locale, where this is not a problem. --- diff --git a/Makefile b/Makefile index 6bb0ff353..3b3109af5 100644 --- a/Makefile +++ b/Makefile @@ -1107,7 +1107,7 @@ endif # non-empty target # implementations lack the long ones, and undefined symbols are told by their # type in awk instead of --defined-only, which these implementations lack too. define make_minidebug - $(call qinfo, MINIDBG)cp -f $@ $@.noxz; \ + $(call qinfo, MINIDBG)LC_ALL=C; export LC_ALL; cp -f $@ $@.noxz; \ if ! ( \ $(NM) -D -P $@ | awk '$$2 != "U" && $$2 != "w" { print $$1 }' | sort > $@.dsyms && \ $(NM) -P $@ | awk '$$2 == "T" || $$2 == "t" { print $$1 }' | sort > $@.fsyms && \