On Tue, Dec 24, 2019 at 02:11:53PM +0000, Stuart Henderson wrote:
> > > > g-ir-scanner: link: cc -pthread -o
> > > > /usr/obj/ports/libgweather-3.34.0/build-powerpc/tmp-introspecty_ix5pqn/GWeather-3.0
> > > > -O2 -pipe
> > > > /usr/obj/ports/libgweather-3.34.0/build-powerpc/tmp-introspecty_ix5pqn/GWeather-3.0.o
> > > > -L. -Wl,-rpath,. -Wl,--no-as-needed
> > > > -L/usr/obj/ports/libgweather-3.34.0/build-powerpc/libgweather
> > > > -Wl,-rpath,/usr/obj/ports/libgweather-3.34.0/build-powerpc/libgweather
> > > > -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
> > > > -Wl,-rpath,/usr/local/lib -lgweather-3 -lm -lgtk-3 -lgdk-3
> > > > -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo
> > > > -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lsoup-2.4
> > > > -lxml2 -lgeocode-glib -L/usr/local/lib -Wl,--export-dynamic -pthread
> > > > -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
> > >
> > > > /usr/bin/ld: warning: libpixman-1.so.38.4, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libfontconfig.so.13.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libfreetype.so.30.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libxcb-shm.so.1.1, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libxcb.so.4.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libxcb-render.so.1.1, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libXrender.so.6.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libX11.so.17.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libXext.so.13.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libXinerama.so.6.0, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libXi.so.12.1, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > /usr/bin/ld: warning: libXrandr.so.7.1, needed by
> > > > /usr/local/lib/libgtk-3.so.2201.0, not found (try using -rpath or
> > > > -rpath-link)
> > > > ...
> > >
> > > > looks like binutils really wants -L/usr/X11R6/lib in there.
> > >
> > > > (link line is the same on amd64, but it links)
> > >
> > > Exact same failures I was mentioning on sparc64.
> > >
> > > Making this change fixed a bunch of GNOME ports. may want something more
> > > generic because it is happening on KDE stuff and then ports that are
> > > neither.
> >
> > Can't we fix the underlying issue instead?
>
> Does anyone know what the underlying issue *is*?
>
> Neither ld.bfd nor ld.lld default to searching in ${X11BASE}/lib.
Notice that none of the X11 libraries are directly mentionned in that link
line.
I'm pretty sure the libraries involved have a recorded rpath pointing
to /usr/X11R6/lib.
ld.lld heeds that information, but ld.bfd does not.
I have looked a bit, I can't seem to find anything in any of those libraries
though ;(