Not that I know how this thing gets libraries to link to but it seems that currently it links with different libraries than those in RDEPEND. Grepping the log: $ grep -o -- '-l[^ ]*' _log | sort -u -laudio -lc -lICE -lm -lSM -lX11 -lXau -lXaw -lXext -lXmu -lXpm -lXt with -laudio being part of nas, and -lc/-lm being part of libc. That would leave the deps as: RDEPEND="x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXau x11-libs/libXaw x11-libs/libXext x11-libs/libXmu x11-libs/libXpm x11-libs/libXt" So: ICE, SM, Xext, Xmu, Xpm added. Xp, Xres, XTrap removed. The new deps also make the package multilib-friendly since the latter libs aren't multilib :P.
fixed by using your ebuild from the other bug