Subject: new toolchain: broken ld(1)
To: None <port-i386@netbsd.org, tech-toolchain@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: port-i386
Date: 09/09/2001 12:47:44
[ this is a resend; the first version had an erroneous To: header. ]



while attempting to build kdelibs2 with the new toolchain, i came across
some link lossage:


/usr/bin/ld: warning: libXt.so.6, needed by /usr/X11R6/lib/libXmu.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXrender.so.1, needed by /usr/X11R6/lib/libXft.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libfreetype.so.6, needed by /usr/X11R6/lib/libXft.so, not found (try using -rpath or -rpath-link)


for the first case, in libXmu.so, libXt.so.6 is in NEEDED, the RPATH is
/usr/X11R6/lib.  ld is being passed -L and -R for /usr/X11R6/lib, but
it is not being passed -lXt.  adding the latter causes the problem to 
go away, but it was my understanding that this shouldn't happen and that
it's a supported configuration.  i copied a 1.5.1ish /usr/bin/ld to my
system and it works.  


so, it would seem that binutils 2.11.2 changes the way this works and
it's broken for us.



.mrg.