Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25176

Summary: mod_php-r4 fails 'configure': configure: error: can not run test program while cross compiling
Product: Gentoo Linux Reporter: Ronald Moesbergen <r.moesbergen>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ronald Moesbergen 2003-07-24 05:02:34 UTC
When I try to emerge mod_php-r4, it fails the 'configure' stage with the 
following error:

... <snip>
checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for fopencookie... yes
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.2-r4 failed.
!!! Function econf, Line 320, Exitcode 1
!!! econf failed


Reproducible: Always
Steps to Reproduce:
1. emerge mod_php
2. -> error
3.

Actual Results:  
... <snip>
checking for utime.h... yes
checking for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for fopencookie... yes
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.2-r4 failed.
!!! Function econf, Line 320, Exitcode 1
!!! econf failed

Expected Results:  
a compiled mod_php.
Comment 1 Ronald Moesbergen 2003-07-24 05:04:09 UTC
Oops, forgot to include 'emerge info':

Portage 2.0.48-r5 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8)
=================================================================
System uname: 2.4.21 i686 Pentium III (Katmai)
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 pam ssl mmx crypt mysql freetds xml gd png tiff jpeg gdbm ldap pdflib apache2"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://172.30.10.246/gentoo-portage"
FEATURES="sandbox ccache"
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-24 05:12:58 UTC

*** This bug has been marked as a duplicate of 24362 ***
Comment 3 Ronald Moesbergen 2003-07-24 05:42:44 UTC
I searched for 'mod_php' on the main page and looked at every result. The mentioned bug was not in the list ... maybe someone should fix that to avoid further duplicates?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-24 10:33:48 UTC
Enter the number of the bug, or edit the search and turn on resolved, verified and closed bugs.