I installed an amd64 2004.1 system. Later I modified my profile to gcc3.4-amd64 upgraded to gcc 3.4.1 and re-emerged everything. All went ok, except zlib-1.2.1 (also referred to as libz) did not correctly produce the shared library. The failure went unnoticed by the system, but later xorg-x11 failed when libz.so.1.2.1 was missing. The fix was to do a 'configure -s' in the work directly and 'make install'. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: zlib built and installed and quietly didn't installed the shared library version. Expected Results: libz.so.1.2.1 should have been built. This problem may only exist for people going through the upgrade path I did, so it might not be a big deal.
Have you already tried zlib-1.2.1-r2 ?
I emerged zlib-1.2.1-r2 and then emerged xorg-x11 and everything worked correctly. I tried to work backwards to find the point at which the error started but failed. At this point i have no idea why it was building with zlib-1.2.1. The errors I ran into were fixed in -r2
Ok, resolved as WORKSFORME