our network recently made the switch to CentOS 6 from CentOS 5. Upon compiling with gcc we find that at linking time we find this error.
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
Now it seemed that in CentOS5 that our compiler would bypass that.
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
We are using a heavily modified SCons compiling tool (http://www.scons.org/). I can't figure out this bug and I have no idea where to start. The only difference in these errors is one machine is using centOS 5 and the other is using centOS6. Does anyone have any suggestions?
J