Summary: | print/cups: -Wl,-R/usr/local/lib returned by cups-config changes library search order | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Ting-Wei Lan <lantw44> |
Component: | Individual Port(s) | Assignee: | Tijl Coosemans <tijl> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(tijl) |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Ting-Wei Lan
2018-05-01 09:52:19 UTC
Does removing -Wl,-R... from cups-config fix the problem? It's also possible there's something wrong with libpango.so. What is the output of "objdump -p /home/lantw44/gnome/devinstall/lib/libpango-1.0.so"? Yes, both gnome-settings-daemon and gnome-control-center can be successfully built if I remove -Wl,-R options with this command: sed -i.bak 's/-Wl,-R[^ ]*//g' build.ninja Here is the output of objdump. There is no RPATH or RUNPATH set on pango-1.0.so. $ objdump -p /home/lantw44/gnome/devinstall/lib/libpango-1.0.so /home/lantw44/gnome/devinstall/lib/libpango-1.0.so: file format elf64-x86-64-freebsd Program Header: LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21 filesz 0x0000000000055c90 memsz 0x0000000000055c90 flags r-x LOAD off 0x0000000000056000 vaddr 0x0000000000256000 paddr 0x0000000000256000 align 2**21 filesz 0x00000000000029d0 memsz 0x0000000000002ca0 flags rw- DYNAMIC off 0x0000000000057b88 vaddr 0x0000000000257b88 paddr 0x0000000000257b88 align 2**3 filesz 0x00000000000001e0 memsz 0x00000000000001e0 flags rw- EH_FRAME off 0x000000000004f248 vaddr 0x000000000004f248 paddr 0x000000000004f248 align 2**2 filesz 0x0000000000001794 memsz 0x0000000000001794 flags r-- STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4 filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw- Dynamic Section: NEEDED libgobject-2.0.so.0 NEEDED libglib-2.0.so.0 NEEDED libm.so.5 NEEDED libfribidi.so.0 NEEDED libc.so.7 SONAME libpango-1.0.so.0 INIT 0x000000000000e978 FINI 0x0000000000042868 HASH 0x0000000000000158 GNU_HASH 0x00000000000012a0 STRTAB 0x0000000000005600 SYMTAB 0x0000000000001f58 STRSZ 0x000000000000363b SYMENT 0x0000000000000018 PLTGOT 0x0000000000257e78 PLTRELSZ 0x0000000000002178 PLTREL 0x0000000000000007 JMPREL 0x000000000000c800 RELA 0x0000000000009110 RELASZ 0x00000000000036f0 RELAENT 0x0000000000000018 VERNEED 0x00000000000090d0 VERNEEDNUM 0x0000000000000002 VERSYM 0x0000000000008c3c RELACOUNT 0x0000000000000228 Version References: required from libm.so.5: 0x077a28b0 0x00 03 FBSD_1.0 required from libc.so.7: 0x077a28b0 0x00 02 FBSD_1.0 A commit references this bug: Author: tijl Date: Tue May 1 16:24:38 UTC 2018 New revision: 468766 URL: https://svnweb.freebsd.org/changeset/ports/468766 Log: - Update to 2.2.7. - Remove -Wl,-R flag from cups-config output to fix out of tree builds of Gnome. The -R flag takes precedence over -L flags when the linker searches for dependencies of libraries listed on the command line which can be unexpected. Therefore, config scripts like this should only provide -L flags. An rpath is then typically generated automatically by the build system (cmake, libtool,...). [1] PR: 227891 [1] Reported by: Ting-Wei Lan <lantw44@gmail.com> Changes: head/print/cups/Makefile head/print/cups/distinfo head/print/cups/files/patch-configure (In reply to commit-hook from comment #3) Thanks for your patch. I just confirmed that this update does fix build issues for both gnome-settings-daemon and gnome-control-center. |