libpng-1.6.29 compiles and installs fine. But revdep rebuild complains: revdep-rebuild.sh -p * Configuring search environment for revdep-rebuild * Checking reverse dependencies * Packages containing binaries and libraries broken by a package update * will be emerged. * Collecting system binaries and libraries * Generated new 1_files.rr * Collecting complete LD_LIBRARY_PATH * Generated new 2_ldpath.rr * Checking dynamic linking consistency [ 10% ] * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) [ 25% ] * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) [ 27% ] * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) [ 28% ] * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16.29.0 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) [ 29% ] * broken /usr/lib32/libpng16.so.16 (symbol inflateValidate, version ZLIB_1.2.9 not defined in file libz.so.1 with link time reference) [ 100% ] * Generated new 3_broken.rr * Assigning files to packages * !!! /usr/lib32/libgdk_pixbuf-2.0.so.0.2600.4 not owned by any package is broken !!! * /usr/lib32/libgdk_pixbuf-2.0.so.0.2600.4 -> (none) * /usr/lib32/libpng16.so.16 -> media-libs/libpng * /usr/lib32/libpng16.so.16.29.0 -> media-libs/libpng * Generated new 4_raw.rr and 4_owners.rr * Cleaning list of packages to rebuild * Generated new 4_pkgs.rr * Assigning packages to ebuilds * Generated new 4_ebuilds.rr * Evaluating package order * Generated new 5_order.rr * All prepared. Starting rebuild emerge --complete-graph=y --oneshot --jobs=12 --load-average=12 --pretend media-libs/libpng:0/16 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/libpng-1.6.29 It seems to be already reported in upstream: https://sourceforge.net/p/libpng/bugs/264/ But as a difference to this report a downgrade to 1.6.28 doesn't fix the problem. Installed is zlib-1.2.11 la /lib/libz.so.1* lrwxrwxrwx 1 root root 14 2. Jun 21:11 /lib/libz.so.1 -> libz.so.1.2.11 -rwxr-xr-x 1 root root 92464 2. Jun 21:11 /lib/libz.so.1.2.11 Seems there's still a dependency to libz 1.2.9 in libpng: LC_ALL=C grep ZLIB_1.2.9 /usr/lib/libpng* Binary file /usr/lib/libpng16.so matches Binary file /usr/lib/libpng16.so.16 matches Binary file /usr/lib/libpng16.so.16.29.0 matches Binary file /usr/lib/libpng.so matches
The update to libpng-1.6.30 didn't fix the problem. Tried to compile wine: /var/tmp/portage/app-emulation/wine-2.3/work/wine-2.3-abi_x86_32.x86/config.log configure:12493: x86_64-pc-linux-gnu-gcc -m32 -o conftest -march=corei7 -O2 -pipe -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -I/usr/incl ude/freetype2 -Wl,-O1 -Wl,--as-needed conftest.c -lfreetype -lfreetype >&5 /usr/lib32/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9' collect2: error: ld returned 1 exit status configure:12493: $? = 1
Created attachment 480766 [details] wine-2.3-abi_x86_32.x86/config.log /var/tmp/portage/app-emulation/wine-2.3/work/wine-2.3-abi_x86_32.x86/config.log
Found the problem: ldd /usr/lib/libpng16.so.16 referred to /lib32/libz.so.1.2.7 And this lib was an orphaned leftover from a previous zlib version. Removing this libz file and recompiling libpng solved the problem. So the problem was an unclean update process of libz (zlib-1.2.7).