There is a workaround for anyone trying to compile PHP 5.3.x on Mac OS 10.6.x.
Using the recently released PHP 5.3.1 source on Mac OS 10.6.2, I untar/ungzipped, and ran ./configure [options]. Afterwards, I made the following changes as posted on the php.net bug tracker:
1) Add "-lresolv" to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and EXTRA_LDFLAGS_PROGRAM in "Makefile" 2) Change "ext/iconv/iconv.c" 186c186 < #define iconv libiconv --- > #define iconv iconv
Finish it off with the make (and sudo make install) and it should compile just fine.
Comment on this post