Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_php compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mastermnd
n00b
n00b


Joined: 24 Dec 2003
Posts: 69
Location: Espoo, Finland

PostPosted: Thu Jun 10, 2004 8:11 am    Post subject: mod_php compile error Reply with quote

I tried to 'emerge apache2 mod_php' and compiling php ended to this:
Code:

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.6-r2 failed.
!!! Function php-sapi_src_compile, Line 499, Exitcode 2
!!! compile problem

Any ideas?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 10, 2004 10:37 am    Post subject: Reply with quote

Please post the output of
Code:
emerge info
and
Code:
gcc-config -l

_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
mastermnd
n00b
n00b


Joined: 24 Dec 2003
Posts: 69
Location: Espoo, Finland

PostPosted: Thu Jun 10, 2004 3:09 pm    Post subject: Reply with quote

Okay, here they come:
Code:

> emerge info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-rc3-love2)
=================================================================
System uname: 2.6.5-rc3-love2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb crypt cups emacs encode esd fluxbox foomaticdb gd gdbm gif gphoto2 gpm gtk imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"

> gcc-config -l
[1] i686-pc-linux-gnu-3.3.2
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 10, 2004 3:36 pm    Post subject: Reply with quote

OK, see this post for a fix. For a quick-and-easy fix (aka dirty hack, the solution posted in that thread is much cleaner) do this (as root of course):
Code:
cd /usr/lib/gcc-lib/i686-pc-linux-gnu
ln -s 3.3.2 3.2.3

_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
dkaplowitz
Guru
Guru


Joined: 22 Nov 2003
Posts: 596
Location: Philadelphia, PA

PostPosted: Sat Jun 12, 2004 7:44 pm    Post subject: Reply with quote

I'm having a similar problem, as noted in this thread. I've tried a number of things to fix this error, including below:

moocha wrote:
Code:
cd /usr/lib/gcc-lib/i686-pc-linux-gnu
ln -s 3.3.2 3.2.3


But I can't seem to fix the problem that's causing this error. There's definitely something broken in my config, but I just can't seem to find out what it is.
_________________
http://dkap.info
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum