The command clear failed because there is no $EPREFIX/usr/lib/libncursesw.5.dylib. Reproducible: Always Steps to Reproduce: 1. emerge ncurses-5.6-r2 2. run command clear on a terminal Actual Results: % clear dyld: Library not loaded: /Users/tetsushi/Gentoo/usr/lib/libncursesw.5.dylib Referenced from: /Users/tetsushi/Gentoo/usr/bin/clear Reason: image not found Trace/BPT trap Expected Results: clear the terminal screen clear requires $EPREFIX/usr/lib/libncursesw.5.dylib: tetsushi% otool -L /Users/tetsushi/Gentoo/usr/bin/clear /Users/tetsushi/Gentoo/usr/bin/clear: /Users/tetsushi/Gentoo/usr/lib/libncursesw.5.dylib (compatibility version 5.0.0, current version 5.0.0) /Users/tetsushi/Gentoo/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9) but there is no libncursesw.5.dylib in $EPREFIX/usr/lib: % ls -l ~/Gentoo/usr/lib/libncurses* -rw-r--r-- 1 tetsushi tetsushi 510988 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncurses++.a -rw-r--r-- 1 tetsushi tetsushi 513276 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncurses++w.a -rw-r--r-- 1 tetsushi tetsushi 433436 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncurses.a lrwxrwxrwx 1 tetsushi tetsushi 26 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncurses.dylib -> ../../lib/libncurses.dylib -rw-r--r-- 1 tetsushi tetsushi 502372 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncursesw.a lrwxrwxrwx 1 tetsushi tetsushi 27 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncursesw.dylib -> ../../lib/libncursesw.dylib It's in $EPREFIX/lib, on the other hand: % ls -l ~/Gentoo/lib/libncurses* -rwxr-xr-x 1 tetsushi tetsushi 279192 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncurses.5.dylib lrwxrwxrwx 1 tetsushi tetsushi 18 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncurses.dylib -> libncurses.5.dylib -rwxr-xr-x 1 tetsushi tetsushi 326420 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncursesw.5.dylib lrwxrwxrwx 1 tetsushi tetsushi 19 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncursesw.dylib -> libncursesw.5.dylib
Yes, this is a known issue, ncurses 5.6 *is* broken in that regard. thanks for opening a bug, anyway, because that was only discussed privately and should have been made public, which it now has. ncurses 5.6 has been masked again yesterday (in r8873[1]) for that reason. please sync and downgrade. [1] http://overlays.gentoo.org/proj/alt/changeset/8873
the bug doesn't need to be open because ncurses 5.6 is masked.
we should still fix it, because everyone has 5.6 but us.
Actual files that are installed: lib/libncursesw.5.dylib lib/libncurses.5.dylib so libncursesw.5.dylib *is* installed, rendering the summary of this bug incorrect. maybe it should go somewhere else, e.g. to /usr/lib, but it's certainly installed! there's also two links for each: usr/lib/libncurses.dylib lib/libncurses.dylib usr/lib/libncursesw.dylib lib/libncursesw.dylib none of the links is broken. what's important to note is that there's no libcurses or libcursesw - neither versioned nor unversioned. the output of otool on the two files is correct as well. (tested on darwin9). so what's the problem here? (I'm installing ncurses 5.6, I'll then re-emerge everything and see if something broke)
actually, what's installed is this: /lib/libcurses.dylib -> libncurses.5.dylib /lib/libncurses.5.dylib /lib/libncurses.dylib -> libncurses.5.dylib /lib/libncursesw.5.dylib /lib/libncursesw.dylib -> libncursesw.5.dylib /usr/lib/libcurses.a -> libncurses.a /usr/lib/libcurses.dylib -> ../../lib/libcurses.dylib /usr/lib/libcursesw.dylib -> ../../lib/libcursesw.dylib /usr/lib/libform.5.dylib /usr/lib/libform.a /usr/lib/libform.dylib -> libform.5.dylib /usr/lib/libformw.5.dylib /usr/lib/libformw.a /usr/lib/libformw.dylib -> libformw.5.dylib /usr/lib/libmenu.5.dylib /usr/lib/libmenu.a /usr/lib/libmenu.dylib -> libmenu.5.dylib /usr/lib/libmenuw.5.dylib /usr/lib/libmenuw.a /usr/lib/libmenuw.dylib -> libmenuw.5.dylib /usr/lib/libncurses++.a /usr/lib/libncurses++w.a /usr/lib/libncurses.a /usr/lib/libncurses.dylib -> ../../lib/libncurses.dylib /usr/lib/libncursesw.a /usr/lib/libncursesw.dylib -> ../../lib/libncursesw.dylib /usr/lib/libpanel.5.dylib /usr/lib/libpanel.a /usr/lib/libpanel.dylib -> libpanel.5.dylib /usr/lib/libpanelw.5.dylib /usr/lib/libpanelw.a /usr/lib/libpanelw.dylib -> libpanelw.5.dylib ( i only had a look at libncurses* before, my bad) of the above, *one* is a dead link: /usr/lib/libcursesw.dylib -> ../../lib/libcursesw.dylib that link is present in ncurses 5.5 as well though (and is dead there as well)
(In reply to comment #4) > so what's the problem here? (I'm installing ncurses 5.6, I'll then re-emerge > everything and see if something broke) The problem is that you forget what the problem is, which you had surely known before(comment #2). Though, I'm happy even if the problem suddenly disappears by a trick of leprechaun.
I remember that ncurses 5.6 was broken. The newly added install_name_tool changes to portage appear to solve/work around the issue though, apparently. Can you produce a dyld error with ncurses 5.6? That'd certainly persuade me that something is broken here (I'm not trying to make a problem into no problem -- I'm just no longer seeing one)
Now, I've just installed ncurses-5.6-r2 and see no problem. clear is linked to lib/libncursesw.5.dylib correctly. From my point of view as a user, it is just FIXED. I have no more infos. Thank you, anyway.