Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91248 - php-4.3.11 thinks it needs to cross-compile on a x86 UML guest on a x86-64 host
Summary: php-4.3.11 thinks it needs to cross-compile on a x86 UML guest on a x86-64 host
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 17:10 UTC by Antoine Martin
Modified: 2005-05-03 16:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge-info,1.49 KB, text/plain)
2005-05-03 11:55 UTC, Antoine Martin
Details
/var/tmp/portage/php-4.3.11/temp/eclass-debug.log (eclass-debug.log,3.49 KB, text/plain)
2005-05-03 11:56 UTC, Antoine Martin
Details
/var/tmp/portage/php-4.3.11/work/php-4.3.11/config.log (config.log,28.64 KB, text/plain)
2005-05-03 14:38 UTC, Antoine Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Martin 2005-05-02 17:10:32 UTC
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.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-03 02:54:26 UTC
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!
Comment 2 Antoine Martin 2005-05-03 11:55:51 UTC
Created attachment 57948 [details]
emerge info
Comment 3 Antoine Martin 2005-05-03 11:56:48 UTC
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...
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-03 12:33:47 UTC
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
Comment 5 Antoine Martin 2005-05-03 14:38:52 UTC
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
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-03 15:31:33 UTC
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.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-03 16:06:39 UTC
libxmlparse is part of net-libs/libwww, rebuild that and see if it helps.