today's glory idea: downgrade from gcc-3.4 to gcc-3.3. done. switch to gcc-3.3 recompile system bash failed (see bug # can't find it -- the browser is dying): make[1]: Leaving directory `/var/tmp/portage/bash-3.0-r5/work/bash-3.0/lib/glob' rm -f bash gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -rdynamic -march=athlon-xp -O2 -pipe -fstack-protector-all -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomp lib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -Wl,-Bstatic -lcurses -Wl,-Bdynamic -lglob -ltilde -ldl /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcurses collect2: ld returned 1 exit status 20594 make: *** [bash] Error 1 !!! ERROR: app-shells/bash-3.0-r5 failed. !!! Function src_compile, Line 122, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. ncurses-5.4-r5 failed: --- !targe sym /usr/bin/captoinfo --- !targe sym /lib/libncurses.so.5 --- !targe sym /lib/libncurses.so --- !targe sym /etc/terminfo/v/vt200 /var/tmp/portage/homedir postrm [ncurses-5.4-r5] bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory /bin/tee: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory !!! FAILED postrm: 127 .... that's the point where everything dies slowly :).... Well ln -s lib/libncurses.so.5 lib/libncursesw.so.5 is my first-aid. So what's next? Bugnumber (not) mentioned above is #63594. BTW: This system is heavily using /etc/portage/packages.{,un}mask. But i think the problem is not related to this. Reproducible: Didn't try Steps to Reproduce: USE="unicode" emerge =sys-libs/ncurses-5.4-r5 emerge $everything_which_makes_it_your_gnu_linux_system now the disaster: USE="-unicode" emerge =sys-libs/ncurses-5.4-r5 Actual Results: $ ls ls: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory Expected Results: $ ls #.Xdefaults# gscmxx-0.4.1-destdir.diff ... Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6. 8-ck7 i686) ================================================================= System uname: 2.6.8-ck7 i686 AMD Duron(tm) processor Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector-all" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3. 3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config / usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/ share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector-all" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa apache2 avi berkdb bitmap-fonts cdr crypt cups dvd encode foomaticdb freetype gdbm gif gtk2 imap imlib jpeg libwww lirc mad maildir mmx motif mpeg ncurses nls nptl nvidia oggvorbis opengl pam pdflib perl png pnp python quicktime readline sasl sdl slang spell sse ssl svga tcltk tcpd tetex truetype type1 unicode v4l x86 xine xml xml2 xprint xv zlib video_cards_nvidia linguas_de"
i can reproduce it. ncurses not using unicode: libncurses.so -> libncurses.so.5 libncurses.so.5 -> libncurses.so.5.4 libncurses.so.5.4 ncurses using unicode: /lib/libncurses.so -> /lib/libncursesw.so /lib/libncurses.so.5 -> /lib/libncursesw.so.5 /lib/libncurses.so.5.4 -> /lib/libncursesw.so.5.4 /lib/libncursesw.so -> libncursesw.so.5 /lib/libncursesw.so.5 -> libncursesw.so.5.4 /lib/libncursesw.so.5.4 # ldd /bin/ls linux-gate.so.1 => (0xffffe000) librt.so.1 => /lib/librt.so.1 (0x40023000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x4002c000) libc.so.6 => /lib/libc.so.6 (0x4007f000) libpthread.so.0 => /lib/libpthread.so.0 (0x4018f000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>Well >ln -s lib/libncurses.so.5 lib/libncursesw.so.5 >is my first-aid. So what's next? well, that "works" in the sense that you've applied a tourniquet. (Not a good long-term solution, but most of the shells use the termcap interface). Both libncurses and libncursesw supply the same identical termcap interface (but up/down from that point, the binary interfaces are different).
ok, we've got a few things here ... the fact that '-lcurses' wasnt found is Bug 63594 the fact that your bash is linked against curses is what i tried to fix but triggered Bug 63594 the fact that you emerged ncurses with unicode support and then emerged it again without unicode support and in the process broke a lot of things --> NOTABUG *** This bug has been marked as a duplicate of 63594 ***
I think problem in ncurses install procedure. Then user add into USE unicode flag then he having some big troubles. Some programs (I don't have any thinks why?) using not libncurses.so.(*) This program using libncursesw.so.(*). And then user delete unicode from USE and rebuild ncurses (but why? may be using emerge -e system ) he has trouble with this some programms. I think we may remove unicode flag from ncurses and always build ncurses with unicode. Or remove symlinks of libncurses.so.(*) and using only libncurses.so.(*) on unicode and on not unicode system. I think last way it's bad becouse we MUST rewriting some ebuilds.