Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280705 - sys-fs/encfs: fails with forced --as-needed
Summary: sys-fs/encfs: fails with forced --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Marcelo Goes (RETIRED)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2009-08-07 22:47 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-27 20:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Build log (encfs-1.5:20090807-224630.log,42.85 KB, text/plain)
2009-08-07 22:48 UTC, Diego Elio Pettenò (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-07 22:47:52 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out for details).

Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too.

Check the attached build log.

Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-07 22:48:11 UTC
Created attachment 200548 [details]
Build log
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-03-21 13:59:02 UTC
That should be fixed by:
  16 Mar 2009; Tiziano Müller <>
  Properly fix --as-needed bug.

After applying ^^ patch my linking phase looks like that:
i686-pc-linux-gnu-g++ -shared -nostdlib <lots of *.o>  /usr/lib/ -lssl -lcrypto -ldl -lz -lboost_serialization-1_41 -lboost_filesystem-1_41 -lboost_system-1_41 <snip> -march=i686 -pthread -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-O1 -pthread -Wl,-soname -Wl, -o .libs/

as it should be...
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-06-27 20:57:28 UTC
encfs-1.6 in portage, builds fine here with forced asneeded, gcc-4.5.0, and boost-1.42.0-r1.