Compiling PHP 5.1.0b3 on Solaris

If you are compiling PHP 5.1.0b[123] and you get errors like:

ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status

What you need to do is recompile the offending library/application and make certain that -fPIC is set in the compiler flags (usually CFLAGS).
From the GCC documentation:
If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, PowerPC and SPARC.

Hope this helps someone… it caused me a bit of grief for a little while!