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

Bug 44199

Summary: Portage using wrong gcc version building mod_php
Product: Gentoo Linux Reporter: Scott Porter <scott>
Component: New packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED INVALID    
Severity: blocker CC: mholzer, rac
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Scott Porter 2004-03-09 17:44:25 UTC
Upgraded gcc to 3.3.2 some time back. Have since built other packages using portage. However, attempts to build mod_php (using "emerge -u mod_php") fail with an error related to the path to gcc libs. Looks like the build is looking for the old compiler libs (3.2.3). Machine has not bee rebooted since gcc was updated, but can't see how that could be the problem here. Information about my system follows:


emerge info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-custom-1)
=================================================================
System uname: 2.4.20-custom-1 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow aalib apm arts avi berkdb crypt cups curl encode esd fastcgi foomaticdb gd
gdbm gif gnome gpm gtk gtk2 guile imagemagick imap imlib innodb java jikes jpeg kde
libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl php plotutils png python qt quicktime readline samba sasl sdl slang snmp spell
ssl svga tcpd tiff truetype wmf x86 xml xml2 xmms xv zlib"


Trying to build:

dev-php/mod_php-4.3.4-r4 [4.3.3-r3]


Using gcc:

3.3.2


/etc/env.d/05gcc

PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
CC="gcc"
CXX="g++"
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2"


Error message:

grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-php/mod_php-4.3.4-r4 failed.
!!! Function php-sapi_src_compile, Line 450, Exitcode 2
!!! compile problem
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-03-10 23:39:19 UTC
use /sbin/fix_libtool_files.sh
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-03-19 01:41:49 UTC
see comment #1