the first thing you will need to do is install the legacy gcc 34
Code:
su -
yum search gcc
------------- then from that list should be 34--------------------
yum install compat-gcc-34 compat-gcc-34-c++
gcc 3.4 should be old enough it is what was in the cent 4.9 repo
then you have to install things where the OS
CAN NOT!!!!! FIND THEM!!!!!!!
the build folder
CAN NOT be in the $PATH and libs can NOT be in $LD_LIBRARY_PATH
Warning: that is VERY IMPORTANT!!!!!!!
cent6 can NOT see nor find or use any of the old programs !!!!!!!!
ONLY the program you are building can use them !!!!!!!!!!!
now
expect something like this a FULL WEEK if you know what you are doing and have done it many times
you are about to hit what is called
" Dependency HELL!!!"
and it is apply named
glibc 2.3 will need a ton of dependency's
so make a folder someplace ???
like
/usr/opt/TheProgramName/dep
replace"TheProgramName" with the real name
and install the dependency's into that "dep" folder
and PASS that location to the compiler for all the libs and and all the paths including packageconf *.pc files
this is best done using a build shell script because the "configure" and exports to "make" are going to get VERY LONG
this will take time
you might want to install KVM and install the dead and unsupported CentOS 4.9 into the KVM VM
that might be easier
just KEEP IT OFF LINE !!!!!!
4.9 has been unsupported for some time