Additional information, looking at png.c the offending commit appears to be: https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/1fbe312f4f7a52615b948919910b77f803590f15 The previous commit to png.c doesn't show the problem: https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/a7a31a9eadd9d45213a8042b48633f7b1367a422
GraphicsMagick >= 1.3.48 broke png conversion
This shouldn't have anything to do with GCC(?). At least for my tests hdparm 9.64 with the patch applied compiled fine on two systems, one with glibc 2.35 and one with glibc 2.36 where it failed to build without the patch.
Patch: Do not hardcode the pkg-config command
Works fine with the patch you've pushed to master, thanks!
Allow overriding of CC/CXX
Makefile patch fixing various build related issues
0.34.0 fails to compile tests