After compiling GIT I got: git-update-cache: symbol lookup error: git-update-cache: undefined symbol: deflateBound Investigating further I've found that my version of /usr/lib/libz.so.1 links to 1.1.4, and it doesn't have deflateBound symbol. After some more checks I've found that it's due my real installed zlib bein in /lib/libz.so and the one in /usr/lib was left by portage, and Gentoo is linking against it. This bug may not have any solution within its ebuild, but should be stated to help other users with same problem. Reproducible: Always Steps to Reproduce:
So does it work after deleting the stale lib?
Yes it does. rm -f /usr/lib/libz.* and emerge dev-util/git again, it will work as expected.