[Bug 227891] print/cups: -Wl,-R/usr/local/lib returned by cups-config changes library search order
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue May 1 09:52:22 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227891
Bug ID: 227891
Summary: print/cups: -Wl,-R/usr/local/lib returned by
cups-config changes library search order
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: tijl at FreeBSD.org
Reporter: lantw44 at gmail.com
Flags: maintainer-feedback?(tijl at FreeBSD.org)
Assignee: tijl at FreeBSD.org
This causes gnome-control-center and gnome-settings-daemon to fail to build in
JHBuild because it overrides the library search order specified by LDFLAGS.
gnome-control-center linking failure:
[305/307] Linking target tests/printers/test-canonicalization.
FAILED: tests/printers/test-canonicalization
clang -o tests/printers/test-canonicalization
'tests/printers/tests at printers@@test-canonicalization at exe/test-canonicalization.c.o'
-L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib -Wl,--no-undefined
-Wl,--as-needed -march=corei7 -B/home/lantw44/.local/bin -pipe -g3 -O0
-Wl,--start-group panels/printers/libprinters.a
-L/home/lantw44/gnome/devinstall/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
-L/home/lantw44/gnome/devinstall/lib -lglib-2.0 -lintl
-L/home/lantw44/gnome/devinstall/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
-L/home/lantw44/gnome/devinstall/lib -lgthread-2.0 -pthread -lglib-2.0 -lintl
-L/home/lantw44/gnome/devinstall/lib -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 -L/home/lantw44/gnome/devinstall/lib -lgio-2.0
-lgobject-2.0 -lglib-2.0 -lintl -L/home/lantw44/gnome/devinstall/lib -lglib-2.0
-lintl -L/home/lantw44/gnome/devinstall/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
-lintl -L/home/lantw44/gnome/devinstall/lib -lgthread-2.0 -pthread -lglib-2.0
-lintl -L/home/lantw44/gnome/devinstall/lib -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 -Wl,-R/usr/local/lib -L/usr/local/lib -lcups
-lm -L/usr/local/lib -lpolkit-gobject-1 -L/home/lantw44/gnome/devinstall/lib
-lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/lib/samba4 -lsmbclient
-Wl,--end-group
/home/lantw44/gnome/devinstall/lib/libpango-1.0.so: undefined reference to
`fribidi_get_par_embedding_levels_ex'
/home/lantw44/gnome/devinstall/lib/libpango-1.0.so: undefined reference to
`fribidi_get_bracket'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gnome-settings-daemon linking failure:
FAILED: plugins/print-notifications/gsd-printer
clang -o plugins/print-notifications/gsd-printer
'plugins/print-notifications/plugins at print-notifications@@gsd-printer at exe/gsd-printer.c.o'
-L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib -Wl,--no-undefined
-Wl,--as-needed -march=corei7 -B/home/lantw44/.local/bin -pipe -g3 -O0
-Wl,--start-group gnome-settings-daemon/libgsd.so -Wl,-R/usr/local/lib
-L/usr/local/lib -lcups -L/home/lantw44/gnome/devinstall/lib -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 -Wl,--end-group
-L/home/lantw44/gnome/devinstall/lib -lnotify -lgdk_pixbuf-2.0 -lgio-2.0
-lgobject-2.0 -lglib-2.0 -lintl
'-Wl,-rpath,$ORIGIN/../../gnome-settings-daemon:XXXXXXXXXXXXXXXXXXXXXXXXX'
-Wl,-rpath-link,/home/lantw44/gnome/build/gnome-settings-daemon/gnome-settings-daemon
/home/lantw44/gnome/devinstall/lib/libpango-1.0.so: undefined reference to
`fribidi_get_par_embedding_levels_ex'
/home/lantw44/gnome/devinstall/lib/libpango-1.0.so: undefined reference to
`fribidi_get_bracket'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
JHBuild sets LDFLAGS to '-L/home/lantw44/gnome/devinstall/lib
-L/usr/local/lib', which means the linker is expected to search libraries in
the JHBuild prefix before the prefix managed by FreeBSD ports. However,
cups-config adds '-Wl,-R/usr/local/lib' to the command line, and the linker
searches paths specified by -R and -rpath options before paths specified by -L
options. This causes undefined reference error because it picks the old version
of fribidi installed by FreeBSD ports instead of the newer one installed in the
JHBuild prefix.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list