Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53285 - Cannot compile php 4.3.6-r1
Summary: Cannot compile php 4.3.6-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 02:33 UTC by Gustav Schaffter
Modified: 2004-06-09 22:39 UTC (History)
0 users

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


Attachments
/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/config.log (config.log,91.59 KB, text/plain)
2004-06-08 11:08 UTC, Gustav Schaffter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustav Schaffter 2004-06-08 02:33:52 UTC
When trying to emerge dev-php/php-4.3.6-r1, the configuration bails out with the error message:

checking for c++... g++
checking whether the C++ compiler (g++ -march=pentium3 -Os -pipe -L/usr/lib -ldb-4.1  -ltiff -L/usr/lib -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/php-4.3.6-r1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed


Reproducible: Always
Steps to Reproduce:
1. emerge dev-php/php

Actual Results:  
The configuration fails with the mentioned error message.


Expected Results:  
Since I can compile most (all?) other packages on this computer, the php package
should be possible to compile as well. Especially since all known dependencies
are fullfilled on this PC.


Severity:
I classify this bug as "Major" since it stops me from installing php support on
this public Web server. (Installing dev-php/mod_php will first try to install
dev-php/php as a dependency, which fails.)



Additional information:
# emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.4.22-physmem-patch3-5um)
=================================================================
System uname: 2.4.22-physmem-patch3-5um i686 UML
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo-distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://mirror.bytemark.co.uk/gentoo"
USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm gtk2 imlib jpeg
libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib
perl png pwdb python qt quicktime readline ruby sdl slang spell ssl svga tcpd
truetype x86 xml2 xmms xv zlib"
 
#


If I can provide any additional info...
Biker
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-08 10:06:12 UTC
please attach the config.log file
(/var/tmp/portage/mod_php*/work/mod_php*/config.log)
Comment 2 Gustav Schaffter 2004-06-08 11:08:57 UTC
Created attachment 32921 [details]
/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/config.log
Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2004-06-08 12:21:46 UTC
I think you should run `revdep-rebuild` to rebuild broken libs and their dependencies.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-08 15:07:57 UTC
your libraries are in a really bad state. looks like you've either remove some packages from your system that were still needed, or broken something by breaking out in the middle of an upgrade somewhere.
revdep-rebuild (in gentoolkit) should fix up your system suitably, you might need to pass the -X argument to it.
Comment 5 Gustav Schaffter 2004-06-09 22:39:09 UTC
Hmm, revdep-rebuild, huh?

Nifty little tool that one. Whish I had used it before. It positively showed me that both qt and XFree were broken. A quick recompile of these packages and everything is fine.

As a result, I have now successfully compiled and installed php on this computer.

As a spin-off, I have a new tool to verify the status of installed software before I write a bug report. ;-)

Talking of which, I will close this bug report.

Thank you all for your help.
Much appreciated.
Biker