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

Bug 24499

Summary: mod_php won't emerge becasue it thinks I'm using a cross compiler
Product: Gentoo Linux Reporter: Jeremy Huddleston (RETIRED) <eradicator>
Component: [OLD] DevelopmentAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeremy Huddleston (RETIRED) gentoo-dev 2003-07-14 21:38:52 UTC
$ emerge mod_php
...
 * Building IMAP with SSL support.
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
Updated main/php_version.h
checking for gcc... gcc
checking whether the C compiler (gcc -march=pentium2 -mcpu=pentium2 -O3 -pipe
-fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 )
works... yes
checking whether the C compiler (gcc -march=pentium2 -mcpu=pentium2 -O3 -pipe
-fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 ) is a
cross-compiler... yes
checking whether we are using GNU C... yes
...
checking for fopencookie... yes
configure: error: can not run test program while cross compiling

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


When I cd to the source directory and manually ./configure, it says 'no' when
detecting if it's a cross compiler.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Celeron (Mendocino)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/local/download/portage/distfiles"
PKGDIR="/usr/local/download/portage/packages-pentium2"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/download/portage"
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas bonobo svga ggi
tcltk java guile ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python
esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2 snmp cdr
scanner acl acpi apache2 atlas curl dga doc dvb dvd emacs ethereal evo fbcon
flash gb gd gnomedb gps gtk2 icc imap innodb ipv6 jikes junit kerberos krb4 lcms
ldam leim libgda mbox mozaccess mozcalendar mozinterfaceinfo mozsvg mozxmlterm
mpi mule objc odbc pcmcia pda pic plotutils pnp samba sasl slp socks5 tiff
trusted usb wmf Xaw3d xinerama xml -3dnow"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe -fomit-frame-pointer
-falign-functions=4 -falign-jumps=4 -falign-loops=4"
CXXFLAGS="-march=pentium2 -mcpu=pentium2 -O3 -pipe -fomit-frame-pointer
-falign-functions=4 -falign-jumps=4 -falign-loops=4"
ACCEPT_KEYWORDS="x86 jer"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://localhost/gentoo-portage"
FEATURES="ccache sandbox buildpkg userpriv usersandbox"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-07-14 22:37:48 UTC

*** This bug has been marked as a duplicate of 24362 ***