I'm trying to emerge openoffice on a freshly installed, completely up-to-date, gcc3.1-only Gentoo system. Compilation fails with dmake: Error -- `/var/tmp/portage/openoffice-1.0.0-r2/work/oo_1.0_src/solver/641/unxlngi4.pro/lib/libstdc++.so.4.0.1' not found, and can't be made ---* RULES.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.0.0-r2/work/oo_1.0_src/product/util dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *--- The last (working?) line before that was ln -s libgcc_s.so.1 ../unxlngi4.pro/bin/udk3.0.1/linux/lib/libgcc_s.so
I believe I've found the problem (not sure yet - the emerge is still running): My system had both gcc 3.1 and gcc 3.1.1 installed. Hence, your src_compile found a /usr/lib/libstdc++.so.4 (from gcc 3.1) and copied the libs from /usr/lib/, not from /usr/lib/gcc-lib/.../3.1.1/. However, libstdc++.so..4.0.1 (from gcc 3.1.1) is in .../3.1.1 and hence did not get copied. I did an "emerge clean world", this should solve the problem - still running...
Solved - unmerging the old gcc 3.1 did the trick! OO compiles and runs fine.