https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-apps/smartmontools-7.3 redefines _FORTIFY_SOURCE (HARDENED-SYSTEM). Discovered on: amd64 (internal ref: hardened_tinderbox) NOTE: (HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Created attachment 849768 [details] build.log build log and emerge --info
Does this happen with 7.4? I am unable to confirm that.
https://github.com/smartmontools/smartmontools/commit/ce89f3076f6922c1c7b7ea1246a165773140d7e6 fixes it (though it's still not ideal as a user may want to disable it in gcc, but whatever, it's fine, and I can't actually say it's *wrong* either, it's what AX_ADD_FORTIFY_SOURCE does).