Compile and Link for Compatibility With Older Versions of GLIBC
Posted on 2006-03-31
I thought this would be easy. I retired my old Linux 7.3 system and we now do our development on a brand new CentOS system (REL 3.4). Now, however, some of the things we compile generate an error when run on older Linux systems saying that GLIB_2_3 is required. I have spend a considerable amount of time researching this and have found no satisfactory solution and yet there must be an obvious one as all developers don't keep old Linux boxes around just to do compile and links or do they?
I tried using the compat-gcc-32 packages but the particular package I am compiling (a DBD-mysql-3.002 perl module in one case) generates compile errors I include these headers.
Would appreciate any input on best practices for compiling and linkingin a way that will be back compatible to at least Linux 7.x (say GLIBC 2.2.4).