Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19966 - mod_php-4.3.1-r2 C++ "configure error"
Summary: mod_php-4.3.1-r2 C++ "configure error"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-25 17:24 UTC by Jason Waldhelm
Modified: 2003-05-01 03:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Waldhelm 2003-04-25 17:24:03 UTC
upon emerge mod_php, the build (specifically, ./configure) gets as far as: 
"checking for c++... g++" 
 
and then promptly vomits: 
 
checking whether the C++ compiler (g++ -march=pentium4 -O3 -pipe 
-fomit-frame-pointer  -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic 
-L/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic 
-Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/server 
-L/opt/blackdown-jdk-1.3.1/jre/lib/i386/server 
-Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads 
-L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads 
-Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 
-Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no 
configure: error: installation or configuration problem: C++ compiler cannot create 
executables. 
 
!!! ERROR: dev-php/mod_php-4.3.1-r2 failed. 
!!! Function src_compile, Line 220, Exitcode 1 
!!! bad ./configure 
 
i noticed it was checking for the blackdown-jre/jdk, so i emerged that (which completed 
successfully) and then attempted to emerge mod_php again.  it failed in exactly the 
same place. 
 
earlier in the emerge, configure reports: 
checking Java Jar location... /opt/blackdown-jdk-1.3.1/bin/jar cf 
checking Java C location... /opt/blackdown-jdk-1.3.1/bin/javac 
checking Checking for libjava... /opt/blackdown-jdk-1.3.1/jre/lib/i386 
 
the point at which the emerge fails led me to believe it was a blackdown thing, but the 
./configure finds both the jdk and jre.  and the last time i looked, my C++ compiler was 
more than able to create executables. 
 

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



 # emerge info 
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.20-pfeifer-r1_pre7 i686 Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /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="/images/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/images/portage/overlay" 
USE="x86 oss 3dnow apm avi encode gif jpeg libg++ mikmod mmx mpeg ncurses nls 
pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts 
svga tcltk java guile sdl gpm tcpd pam libwww perl python esd imlib oggvorbis qt motif 
opengl mozilla cdr scanner X gtk cups alsa crypt acpi4linux kde postgres apache2 ssl 
-gnome" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync7.us.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-25 19:27:47 UTC
1. does 'USE="-java" emerge mod_php' work?
2. read make.conf, -march=pentium4 is broken. you'll need to recompile things there.
3. please re-emerge gcc and gcc-config and then re-run gcc-config
4. failing all of that, please try the masked mod_php-4.3.1-r3
Comment 2 Jason Waldhelm 2003-04-25 21:00:16 UTC
suggestion 1 worked. thanks. 
i thought it might have been that -march flag, but i didn't have to change it here. 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-25 21:45:20 UTC
you should probably run thru #2 and #3 anyway, and read the other bugs about Java and PHP together.
Comment 4 Ricardo Ferreira 2003-04-30 22:03:59 UTC
hmmm, i have the same problem with configure in mod_php-4.3.1-r2 and i'm using 
--march=pentium3. 
 
Maybe this bug should be reopened. 
 
I've found the config.log in /var/tmp/portage/mod_php-4.3.1-r2/work/php-4.3.1 full of these 
error messages: 
 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_se 
m_post' 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_wa 
itpid' 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_pt 
hread_sigmask' 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `fork1' 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_se 
m_wait' 
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_se 
m_init' 
collect2: ld returned 1 exit status 
 
 
I've tried re-emerging blackdown but that didnt fix it. 
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-30 22:28:58 UTC
everybody here that has had the bug and can still reproduce it.
please try to compare having blackdown-jdk-1.3.1 versus blackdown-jdk-1.4.1 installed and see if that affects it at all (merging with USE="java" enabled).
Comment 6 Ricardo Ferreira 2003-04-30 22:48:31 UTC
Well, i have blackdown-jdk 1.4.1 installed and i get the bug, i'll try emerging 1.3.1-r8 which is 
the latest non-masked 1.3.1 ebuild. 
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-01 01:19:17 UTC
your log showed it was using 1.3.1
so perhaps ensure that 1.3.1 is unmerged and only 1.4.1 is merged when you try it.
Comment 8 Ricardo Ferreira 2003-05-01 01:23:50 UTC
Mid-air collision detected! 
 
:) 
 
Just when i was posting that i did just that and rmed the leftovers from all blackdown-jdk in 
/opt. It now passed the configure stage. 
Comment 9 Ricardo Ferreira 2003-05-01 02:08:01 UTC
And compiled ok apparently. 
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-01 03:22:22 UTC
ok, i'll modify my new php stuff to force 1.4.1