I've had the same problem with openssl but at least openssl can be compiled in a chroot with linux32. php fails to compile with/withou linux32 and/or chroot when running on a x86-64 host. Note: I am trying to compile it for 32-bit which is why this bug is filed under x86... The profile is x86 selinux enabled (2004.3) Reproducible: Always Steps to Reproduce: on a x86-64 host, run a chrooted x86 install (or UML) then try to upgrade php and you get: emerge -u php (...) checking for dlfcn.h... yes checking for fopencookie... yes configure: error: can not run test program while cross compiling !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/php-4.3.11/work/php-4.3.11/config.log !!! ERROR: dev-php/php-4.3.11 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Actual Results: Build fails Expected Results: Build should use the architecture and not rely on /proc/cpuinfo or whatever it is using. These things used to work with UML with the honeypot /proc which allows you to pretend to be running a x86 cpu inside the uml, but this is broken at present. There is no workaround... I've tried running without selinux (no difference - and since chroot didn't help, that makes sense) I can provide root access on a UML instance for whoever wants to see it break.
please provide the /var/tmp/portage/php-4.3.11/work/php-4.3.11/config.log as directed by the emerge error! also 'emerge info' output!
Created attachment 57948 [details] emerge info
Created attachment 57949 [details] /var/tmp/portage/php-4.3.11/temp/eclass-debug.log Couldn't find a config.log, but this looks useful too...
nope, I need the config.log file. run 'emerge php' and when it fails it will give you the exact path to the file. usually something like /var/tmp/portage/php-*/work/php-*/config.log
Created attachment 57968 [details] /var/tmp/portage/php-4.3.11/work/php-4.3.11/config.log I just noticed this (which could be due to selinux enabled) - don't know if it is relevant: /usr/lib/portage/bin/ebuild.sh: line 1882: 10054 Segmentation fault chown portage:portage "${T}/environment" >&/dev/null /usr/lib/portage/bin/ebuild.sh: line 1882: 10055 Segmentation fault chmod g+w "${T}/environment" >&/dev/null
your libs are screwed up. use rev-revdep rebuild. /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: warning: libmysqlclient.12, needed by /usr/lib/libxmlparse.so, not found (try using -rpath or -rpath-link) - it's a warning here, but's a more serious problem later.
libxmlparse is part of net-libs/libwww, rebuild that and see if it helps.