Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 May 2018 09:52:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 227891] print/cups: -Wl,-R/usr/local/lib returned by cups-config changes library search order
Message-ID:  <bug-227891-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227891

            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@FreeBSD.org
          Reporter: lantw44@gmail.com
             Flags: maintainer-feedback?(tijl@FreeBSD.org)
          Assignee: tijl@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=20
clang  -o tests/printers/test-canonicalization
'tests/printers/tests@printers@@test-canonicalization@exe/test-canonicaliza=
tion.c.o'
-L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib -Wl,--no-undefined
-Wl,--as-needed -march=3Dcorei7 -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 -li=
ntl
-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 -li=
ntl
-L/home/lantw44/gnome/devinstall/lib -lgthread-2.0 -pthread -lglib-2.0 -lin=
tl
-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 -lsmbclie=
nt
-Wl,--end-group=20=20
/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 invocat=
ion)

gnome-settings-daemon linking failure:
FAILED: plugins/print-notifications/gsd-printer=20
clang  -o plugins/print-notifications/gsd-printer
'plugins/print-notifications/plugins@print-notifications@@gsd-printer@exe/g=
sd-printer.c.o'
-L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib -Wl,--no-undefined
-Wl,--as-needed -march=3Dcorei7 -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-setti=
ngs-daemon=20
/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 invocat=
ion)

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 ver=
sion
of fribidi installed by FreeBSD ports instead of the newer one installed in=
 the
JHBuild prefix.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227891-7788>