Hello! dev-lang/php fails on cross-compilation, because it assumes that the compiler is 'gcc', so between different arches this causes problems during the compilation. If you execute ./configure --help you can see this message: 'To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables.' So, with a simple 'tc-export CC' in src_compile() works for me. I attach a patch for php-4.4.2.ebuild. Good bye!
Created attachment 85277 [details, diff] php-4.4.2.ebuild.patch
This was fixed in the eclasses now, so it's effective for all dev-lang/php ebuilds. Thanks for pointing this out and the fix for it! Best regards, CHTEKK.