[ UPDATE to a previous post ]
If you are compiling PHP 5.1.2 and you get errors like:
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
Another alternative that you can pursue it to compile with CFLAGS=-mimpure-text on the make command.
Hope this helps someone… it caused me a bit of grief for a little while!