Following this guide
http://fedoranews.org/contributors/tony_smith/mysql/
Finally got all dependencies sorted and starting the following step
rpmbuild -ba mysql4.1.spec [ENTER]
But after a few mins of compiling it drops out with the following error:
cc1plus: error: invalid option `tune=pentium4'
make[2]: *** [my_new.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.8/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-4.1.8'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.1311 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.1311 (%build
-----
Not a programmer so no idea how to solve this