Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17650 - mod_php will not compile with gcc 3
Summary: mod_php will not compile with gcc 3
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-16 17:08 UTC by simprix
Modified: 2003-04-06 11:18 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 simprix 2003-03-16 17:08:34 UTC
When i try to emerge mod_php i get this error about gcc-i586

-lpspell -lmysqlclient -lmhash -lmcrypt -lltdl -lz -ldb -lgdbm -lbz2 -lz -lcrypt
-lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lxml2 -lz -lm  -o libphp4.la
grep: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such file or
directory
sed: can't read /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such
file or directory
libtool: link: `/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la' is not a
valid libtool archive
make: *** [libphp4.la] Error 1

!!! ERROR: dev-php/mod_php-4.3.1 failed.
!!! Function src_compile, Line 221, Exitcode 2
!!! compile problem


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

Actual Results:  
-lpspell -lmysqlclient -lmhash -lmcrypt -lltdl -lz -ldb -lgdbm -lbz2 -lz -lcrypt
-lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lxml2 -lz -lm  -o libphp4.la
grep: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such file or
directory
sed: can't read /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such
file or directory
libtool: link: `/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la' is not a
valid libtool archive
make: *** [libphp4.la] Error 1

!!! ERROR: dev-php/mod_php-4.3.1 failed.
!!! Function src_compile, Line 221, Exitcode 2
!!! compile problem


Expected Results:  
compiled

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Lin
    ux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
    g /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm imlib kde libg++ mikmo
    d mmx motif mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl spell
svg     a truetype xml2 xmms xv zlib gdbm berkdb slang readline java tcpd pam
libwww ssl      perl python jpeg -qt -X -gtk mysql -gnome -alsa"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-16 17:43:41 UTC
Do an 'emerge rsync', and make sure /usr/portage/sys-devel/gcc/ChangeLog
contains:

--------------------------------
  09 Mar 2003; Martin Schlemmer <azarah@gentoo.org> gcc-3.2.2*.ebuild :
  Fix handling of fix_libtool_files.sh to be more $FILESDIR independant.
  We basically install it to /sbin now, and then call it from there.  Also
  export LD_LIBRARY_PATH with new gcc library path in it to prevent gcc-config
  from borking when run.  This will hopefully fix bugs #15288, #16632, #16797.
--------------------------------

Then run:

  # fix_libtool_files.sh 3.2.1
Comment 2 simprix 2003-03-16 23:53:52 UTC
grep: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
sed: can't read /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.1/libstdc++.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1

!!! ERROR: dev-php/mod_php-4.3.1 failed.
!!! Function src_compile, Line 221, Exitcode 2
!!! compile problem


same thing,
I may be doing something wrong
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-17 12:40:19 UTC
The problem is that some or other libtool linker script (.la file) still have
references to gcc-3.2.1's libs.  This is what the 'fix_libtool_files.sh 3.2.1'
command is for ... to look for all files with references to gcc-3.2.1, and fix
them.

If running it did not fix it, do something like:

  # find / -type f -name '*.la' -exec grep -l 'i586-pc-linux-gnu\/3\.2\.1' {} \;

And edit that file.  Please let me know which one it was ....
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-21 03:05:04 UTC
Hi .. and ?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-30 02:45:57 UTC
Did what I asked gave any results?  Are you still interested in getting this
solved ?
Comment 6 simprix 2003-03-30 16:12:40 UTC
running that command gives me 
/usr/lib/libaspell.la
/usr/lib/libpspell.la
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-04-03 17:28:35 UTC
there's a script in /usr/portage/sys-devel/gcc/files called fixlibtool or some such.
Just run that, and all will be well.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-06 11:18:47 UTC
From comment #6 I gather that

  # fix_libtool_files.sh 3.2.1

was not run, else it would have fixed aspell's libtool linker scripts.

Please run this and reopen if still issues.