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"
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
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
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 ....
Hi .. and ?
Did what I asked gave any results? Are you still interested in getting this solved ?
running that command gives me /usr/lib/libaspell.la /usr/lib/libpspell.la
there's a script in /usr/portage/sys-devel/gcc/files called fixlibtool or some such. Just run that, and all will be well.
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.