I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Check the attached build log. Thanks, Diego
Created attachment 172668 [details] Build log
Diego, this particular bug happens because /usr/lib/libncurses.so actually contains this: /* GNU ld script Since Gentoo has critical dynamic libraries in /lib, and the static versions in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we run into linking problems. See bug http://bugs.gentoo.org/4411 for more info. */ OUTPUT_FORMAT ( elf32-i386 ) GROUP ( /lib/libncurses.so ) and of course /lib/libncurses.so contains the missing symbols. I don't know how I should go about fixing this; do you?
No the ldscript is fine, the problem is that the linking order is wrong: gcc -O2 -pipe -lncurses -o ethstatus ethstatus.c -lncurses is passed before any object, so it's automatically discarded; the --as-needed fixing guides already contains a section about linking order.
touché :-) Fixed in Portage...