I'm not sure if this is an aspell problem or a larger problem with my developement env in general. A few months ago I did an emerge world because I wanted to get the latest KDE (3.2.3). I was able to successfully emerge every KDE pkg but kdeedu. I thought there may be some unresolved dependencies with the older dev tools on my system so I did an "emerege --update --deep world" to get all the pkgs up to date. evrything built except for kdeedu and the game frozen-bubble. This did not bother me too much as I never play frozen-bubble and never use the apps in kdeedu. Tonight I tried to emerge gaim and the aspell ebuild keeps failing on me. This is the third app that fails so now I'm beginning to suspect my developement env but not being a developer I could be way off base. Reproducible: Always Steps to Reproduce: 1.emerege aspell 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) app-text/aspell-0.50.5-r2 to / >>> md5 src_uri ;-) aspell-0.50.5.tar.gz gpm >>> Unpacking source... >>> Unpacking aspell-0.50.5.tar.gz to /var/tmp/portage/aspell-0.50.5-r2/work * Applying aspell-buffer-fix.patch... [ ok ] * Applying aspell-quotechar-fix.patch... [ ok ] >>> Source unpacked. * Patching ${S}/ltmain.sh... * Applying portage-1.4.1.patch... * Applying max_cmd_len-1.5.0.patch... * Applying sed-1.4.3.patch... * Applying fix-relink-1.4.0.patch... configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-pc-linux-gnu-g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking for i686-pc-linux-gnu-g77... no checking for i686-pc-linux-gnu-f77... no checking for i686-pc-linux-gnu-xlf... no checking for i686-pc-linux-gnu-frt... no checking for i686-pc-linux-gnu-pgf77... no checking for i686-pc-linux-gnu-fort77... no checking for i686-pc-linux-gnu-fl32... no checking for i686-pc-linux-gnu-af77... no checking for i686-pc-linux-gnu-f90... no checking for i686-pc-linux-gnu-xlf90... no checking for i686-pc-linux-gnu-pgf90... no checking for i686-pc-linux-gnu-epcf90... no checking for i686-pc-linux-gnu-f95... no checking for i686-pc-linux-gnu-fort... no checking for i686-pc-linux-gnu-xlf95... no checking for i686-pc-linux-gnu-ifc... no checking for i686-pc-linux-gnu-efc... no checking for i686-pc-linux-gnu-pgf95... no checking for i686-pc-linux-gnu-lf95... no checking for i686-pc-linux-gnu-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse nm output from gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... no checking for ar... ar checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking if file locking and truncating is supported... yes checking if mmap and friends is supported... yes checking if file ino is supported... yes checking if posix locals are supported... yes checking for initscr in -lcurses... yes checking if standard curses include sequence will work... yes checking for STL rel_ops pollution... no configure: creating ./config.status config.status: creating Makefile config.status: creating common/Makefile config.status: creating lib/Makefile config.status: creating data/Makefile config.status: creating auto/Makefile config.status: creating modules/Makefile config.status: creating modules/filter/Makefile config.status: creating modules/tokenizer/Makefile config.status: creating modules/speller/Makefile config.status: creating modules/speller/default/Makefile config.status: creating interfaces/Makefile config.status: creating interfaces/cc/Makefile config.status: creating scripts/Makefile config.status: creating examples/Makefile config.status: creating prog/Makefile config.status: creating manual/Makefile config.status: creating manual/man-html/Makefile config.status: creating manual/man-text/Makefile config.status: creating manual/dev-html/Makefile config.status: creating manual/dev-text/Makefile config.status: creating common/settings.h config.status: executing depfiles commands Making all in auto make[1]: Entering directory `/var/tmp/portage/aspell-0.50.5-r2/work/aspell-0.50.5/auto' make[1]: Nothing to be done for `all'. ----ALL KINDS OF GOOD STUFF HAPPENING HERE, AND THEN---- creating libaspell.la (cd .libs && rm -f libaspell.la && ln -s ../libaspell.la libaspell.la) /bin/sh ../libtool --mode=link g++ -O3 -mcpu=i686 -funroll-loops -pipe -lgpm -o libpspell.la -rpath /usr/lib -version-info 15:3:0 dummy.lo libaspell.la g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/crtbeginS.o .libs/dummy.o -Wl,--rpath -Wl,/var/tmp/portage/aspell-0.50.5-r2/work/aspell-0.50.5/lib/.libs -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../.. -L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -L/usr/i686-pc-linux-gnu/lib -L/usr/i686-pc-linux-gnu/bin -lgpm ./.libs/libaspell.so /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../crtn.o -mcpu=i686 -Wl,-soname -Wl,libpspell.so.15 -o .libs/libpspell.so.15.0.3 (cd .libs && rm -f libpspell.so.15 && ln -s libpspell.so.15.0.3 libpspell.so.15) (cd .libs && rm -f libpspell.so && ln -s libpspell.so.15.0.3 libpspell.so) creating libpspell.la (cd .libs && rm -f libpspell.la && ln -s ../libpspell.la libpspell.la) make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.5-r2/work/aspell-0.50.5/lib' Making all in examples make[1]: Entering directory `/var/tmp/portage/aspell-0.50.5-r2/work/aspell-0.50.5/examples' if gcc -DHAVE_CONFIG_H -I. -I. -I../common -I../interfaces/cc/ -O3 -mcpu=i686 -funroll-loops -pipe -MT example-c.o -MD -MP -MF ".deps/example-c.Tpo" -c -o example-c.o example-c.c; \ then mv -f ".deps/example-c.Tpo" ".deps/example-c.Po"; else rm -f ".deps/example-c.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I../common -I../interfaces/cc/ -O3 -mcpu=i686 -funroll-loops -pipe -MT list-dicts.o -MD -MP -MF ".deps/list-dicts.Tpo" -c -o list-dicts.o list-dicts.c; \ then mv -f ".deps/list-dicts.Tpo" ".deps/list-dicts.Po"; else rm -f ".deps/list-dicts.Tpo"; exit 1; fi /bin/sh ../libtool --mode=link gcc -O3 -mcpu=i686 -funroll-loops -pipe -lgpm -o list-dicts list-dicts.o ../lib/libaspell.la mkdir .libs gcc -O3 -mcpu=i686 -funroll-loops -pipe -o .libs/list-dicts list-dicts.o -lgpm ../lib/.libs/libaspell.so ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(unsigned, char)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__cxa_rethrow@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::__default_alloc_template<(bool)1, (int) 0>::allocate(unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::__throw_out_of_range(char const*)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `operator new(unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__cxa_end_catch@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__gxx_personality_v0@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `operator delete[] (void*)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__cxa_bad_typeid@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `std::istrstream::istrstream[in-charge](char const*)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned) const@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[in-charge] (std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__cxa_begin_catch@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned, char)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[in-charge] (std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_leak_hard()@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[not-in-charge] (std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `__dynamic_cast@CXXABI_1.2' ../lib/.libs/libaspell.so: undefined reference to `operator new[] (unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[not-in-charge] (char const*, unsigned, std::allocator<char> const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::istrstream::~istrstream [in-charge]()@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned, unsigned, char const*, unsigned)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned) const@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::allocator<char>::~allocator [in-charge]()@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[not-in-charge] (char const*, std::allocator<char> const&)@GLIBCPP_3.2' ../lib/.libs/libaspell.so: undefined reference to `operator delete(void*)@GLIBCPP_3.2' collect2: ld returned 1 exit status make[1]: *** [list-dicts] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.5-r2/work/aspell-0.50.5/examples' make: *** [all-recursive] Error 1 !!! ERROR: app-text/aspell-0.50.5-r2 failed. !!! Function src_compile, Line 43, Exitcode 2 !!! (no error message) Sorry if this too much info, I figured too much would be better then too little. Expected Results: Successfully emerged Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.22_pre2-gss-2) ================================================================= System uname: 2.4.22_pre2-gss-2 i686 Intel(R) Pentium(R) III Mobile CPU 1133MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -funroll-loops -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="-O3 -mcpu=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa apm arts avi berkdb crypt cups dvd encode fbcon foomaticdb gdbm gif gpm gtk2 imap imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline samba sasl sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
It seems to be linking with the wrong c++ library. Did you upgrade from gcc 2.95 to gcc 3.3 or something like that? Make sure that gcc-config is set to the correct compiler in case you upgraded.
That was indeed the problem. The /usr/lib/libstdc++.so.5 was linked of into LaLa land (dead link). Simply deleting the link allowed a successful emerge. Odd, but I could download the stock aspell-0.50.5 from http://aspell.net and successfully build it with that dead link in place. I'm also a little surprised that of the 200 some odd ebuilds on my system, only two were effected by this link. Isn't libstdc++.so.5 one of the more common libraries linked to? Anyway, I did another "emerge sync; emerge --update --deep world" and after 2 1/2 days, everything rebuilt without a hitch. Case Closed. Thanks very much.
libstdc++.so.5 is only used for C++ applications and libraries. Most of the software for unix is written in C so its quite possible that only two packages was affected by this. KDE is one of the major free software C++ projects. Glad that it now works for you.
*** Bug 126286 has been marked as a duplicate of this bug. ***
Erm, it STILL doesn't work for me. I still can't emerge aspell nor kde, which is driving me nuts. Could someone explain this to me in babytalk please. localhost lib # ls -al libstdc++* -rwxr-xr-x 1 root root 262980 mar 12 23:35 libstdc++-libc6.1-1.so.2 lrwxrwxrwx 1 root root 14 mar 12 23:35 libstdc++.so.2.9 -> libstdc++.so.6 -rw-r--r-- 1 root root 737816 mar 12 23:32 libstdc++.so.5 -rwxr-xr-x 1 root root 3772 mar 12 23:35 libstdc++.so.6 libstdc++-v3: total 804 drwxr-xr-x 2 root root 4096 mar 12 23:35 . drwxr-xr-x 103 root root 65536 mar 15 15:56 .. lrwxrwxrwx 1 root root 18 mar 12 23:35 libstdc++.so.5 -> libstdc++.so.5.0.6 -rwxr-xr-x 1 root root 745108 mar 12 23:35 libstdc++.so.5.0.6
gcc-config -l [1] i686-pc-linux-gnu-3.4.5 * [2] i686-pc-linux-gnu-3.4.5-hardened [3] i686-pc-linux-gnu-3.4.5-hardenednopie [4] i686-pc-linux-gnu-3.4.5-hardenednopiessp [5] i686-pc-linux-gnu-3.4.5-hardenednossp