https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-gfx/azpainter-3.0.4 fails to compile (CLANG-STRICTER-SYSTEM). Discovered on: amd64 (internal ref: guru_tinderbox) NOTE: (CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types See also: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 https://wiki.gentoo.org/wiki/Modern_C_porting
Created attachment 840979 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: mlk/libmlk.a(mlk_zlib.o): undefined reference to symbol 'deflateInit_' collect2: error: ld returned 1 exit status
Created attachment 854026 [details, diff] Adds -lz to LIBS I'm getting the same problem, but with gcc 11. This patch solved it for me.