Summary: | x11-libs/cairo with USE="glitz" causes problems with forced --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hanno Böck <hanno> |
Component: | Current packages | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cardoe, compnerd, flameeyes, loki_val, spock255 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 |
Description
Hanno Böck
![]() This is still a problem of cairo, libcairo should link against libglitz I guess. ldd /usr/lib/libcairo.so <snip> libglitz-glx.so.1 => /usr/lib/libglitz-glx.so.1 (0x00007f5fd348b000) <snip> libglitz.so.1 => /usr/lib/libglitz.so.1 (0x00007f5fd1ce7000) <snip> It does and I build my system with as-needed.. LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu" $ scanelf -n /usr/lib64/libcairo.so TYPE NEEDED FILE ET_DYN libpixman-1.so.0,libfreetype.so.6,libfontconfig.so.1,libglitz-glx.so.1,libpng12.so.0,libxcb-render-util.so.0,libxcb-render.so.0,libxcb.so.1,libXrender.so.1,libX11.so.6,libz.so.1,libm.so.6,libc.so.6 /usr/lib64/libcairo.so libglitz-glx.so is the Glitz implementation we use on Linux and it's in there for me. cardoe, this is with a system with forced as-needed in the gcc profile, see: http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed Runnning eautoreconf on an ~amd64 system solves this, FWIW. this is also on a system with forced as-needed: angelos@odin ~ % scanelf -n /usr/lib64/libcairo.so TYPE NEEDED FILE ET_DYN libpixman-1.so.0,libfreetype.so.6,libfontconfig.so.1,libpng12.so.0,libXrender.so.1,libX11.so.6,libz.so.1,libm.so.6,libc.so.6 /usr/lib64/libcairo.so angelos@odin ~ % ldd /usr/lib/libcairo.so|grep glitz angelos@odin ~ % no glitz in there, same result as comment #0 also solved by removing export glitz_LIBS=-lglitz-glx from the ebuild (line 71, cairo-1.8.4) That was added when James Cloos, who's involved in upstream filed bug #166343. I'd have to evaluate the impact of removal. (In reply to comment #8) > That was added when James Cloos, who's involved in upstream filed bug #166343. > I'd have to evaluate the impact of removal. Just change it to: glitz_LIBS="$(pkg-config --libs glitz-glx)" The only thing glitz_LIBS contains is, AFAICT, the output of pkg-config --libs glitz but that's a subset of the above. This is fixed with cairo 1.8.6 |