gentoo.LinuxHowtos.org
During emerge you get the error message libstc++.la is missing?
Fix/Answer
run fix_libtool_files.shthe old gcc version can be seen in the error message of the compiler line.
After a few seconds (or minutes) your libtool files are fixed.
Description:
During your gcc update there have been a few (sometimes dozen) libtool files left with the gcc path hardcoded in them. When you compile a program that uses those libtool files, the path is wrong and you get your missing libstc++ error message.
From the fix_libtool_files.sh help:
Usage: fix_libtool_files.sh[--oldarch ]
Whereis the version number of the
previous gcc version. For example, if you updated to
gcc-3.2.1, and you had gcc-3.2 installed, run:
# fix_libtool_files.sh 3.2
If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
but you now have CHOST as i686-pc-linux-gnu, run:
# fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu
Note that if only the CHOST and not the version changed, you can run
it with the current version and the '--oldarch' arguments,
and it will do the expected:
# fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu
current rating: no votes yet
Your rating: