Well, zlib.h defines gzdirect, inflateGetheader and more, but zlib-1.2.2-mapfile.patch doesn't have them. Due to that many post-1.2.2 symbols are not exported, resulting in linker errors (undefined reference). I created zlib-1.2.3-mapfile.patch by reading zlib's Changelog and adding all functions listed as added post 1.2.2. Don't know if it's any good.
Created attachment 98690 [details, diff] Above mentioned patch It seems to work.
going the mapfile route isnt really maintainable ... i doubt most people who would bump zlib would even realize they need to update it i'll see about adding a visibility/hidden test to the configure script and then tagging all the symbols that arent supposed to be exported as hidden ...
should be fixed in 1.2.3-r1 now
*** Bug 151190 has been marked as a duplicate of this bug. ***
Could anyone please check if it's still needed on zlib-1.2.4 ?