libzvt has unresolved symbols provided by libutil. This prevent building x11-libs/vte with -Wl,--as-needed. This patch fixes that.
Created attachment 85883 [details, diff]
Created attachment 85884 [details, diff]
patch for the ebuild
*** Bug 135773 has been marked as a duplicate of this bug. ***
Your patch fixed it; thanks, TGL.
I have libzvt and gnomesu (the only thing I have that deps on it) both built with --as-needed, and neither has a problem. vte doesn't depend on libzvt (and I have that built with --as-needed too). Which version of binutils do you have installed?
I had "sys-devel/binutils: 2.16.93", now I have 2.17 installed. As I can see, vte doesn't depend on libzvt, but it somehow didn't want to build because of "/usr/lib/libzvt-2.0.so: undefined reference to `login_tty'". See my bug 135773
gnome-terminal-2.14.2 depends on vte.
(In reply to comment #6)
> vte doesn't depend on libzvt
There is some automagic crap in the configure.in of vte:
# If we can find libzvt on the system, set up to build a variant of "reflect"
# which uses it.
if pkg-config --exists libzvt-2.0 ; then
Probably it should be made configurable, or maybe even simply patched out.
As for the unresolved symbols not being reported as an error on your system, it depends on the binutils version: it's a check which has been introduced by a 2.16.9x version (i don't remember which one exactly).
*** Bug 143085 has been marked as a duplicate of this bug. ***
There is a patch at  to remove libzvt from vte. It was applied upstream. The patch can be modified a bit to apply to vte-0.12.2 (the failed hunk is in ChangeLog)
Fixed upstream. :) Thanks