So I decided to do a little maintenance on my system today and upgrade a few outdated ports... what a brilliant idea that wasn't.

I attempted to use portmaster to upgrade my php5 packages, and the whole thing went south on me with no hint of what's actually wrong. Basically the whole upgrade breaks when it gets to the part where it tries to install php-5.2.10 after building it. Here are the last lines before the dreaded "error code 1" messages:

To give an extra level of difficulty, this appears to have occurred after the old php5 port was removed, so I can no longer use portversion to verify any of the other packages (due to missing dependencies for a bunch of packages). And it doesn't appear that there is a backup of the previous php version (5.2.8 I think). I've done a portupgrade on libtool already so I know it is in fact there. This box has been up and running for years now and has gone through all sorts of software upgrades without this sort of problem cropping up. And yes I did make sure that php5-pcre was not installed either as a package or a port.

Has anyone else been coming up against this issue? is it just a matter of apxs looking for libtool in the nonexistent /usr/local/build-1/ directory (?), and how do I steer it in the right direction (/usr/local/bin)?