iPhone SDK makes building PHP tricky
This morning, I needed to rebuild PHP. I haven’t done it in months, but was sure it would be painless. I hadn’t counted on, however, that I’d installed the iPhone SDK at the beginning of this month. The iPhone SDK is Xcode 3.1, which I believe is beta (might not be, no real research.) I think that it also installs gcc 4.2. I forgot both of these facts before I tried to configure my php build. Upon my inital pass, I was greeted with the following error:
configure: warning: –with-zlib: invalid host type
configure: warning: –with-mysql=/usr/local/mysql: invalid host type
configure: error: can only configure for one host and one target at a time
I, of course, didn’t bother to properly troubleshoot the error, as I didn’t really have time to track down a solution. I did, however, manage to get a build in place. I removed the current install of my developer tools, ala:
sudo /Developer/Library/uninstall-devtools --mode=all
And then I proceeded to reinstall the tools on my Leopard DVD. I restarted for good measure, and was off to the races. Have any of you encountered this issue?