Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247969 - net-fs/autofs: fails with forced --as-needed
Summary: net-fs/autofs: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefaan De Roeck (RETIRED)
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
: 247258 278608 (view as bug list)
Depends on:
Blocks: as-needed 253412
  Show dependency tree
 
Reported: 2008-11-21 13:51 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-07-21 20:35 UTC (History)
3 users (show)

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


Attachments
Build log (net-fs:autofs-5.0.3-r6:20081121-134453.log,32.48 KB, text/plain)
2008-11-21 13:52 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch to add -lpthread to the LIBS line in daemon/Makefile (autofs-5.0.3-fix-as-needed.patch,350 bytes, patch)
2009-01-02 04:46 UTC, Kevin Pyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 13:51:36 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 13:52:13 UTC
Created attachment 172691 [details]
Build log
Comment 2 Kevin Pyle 2009-01-02 04:46:27 UTC
Created attachment 177056 [details, diff]
Patch to add -lpthread to the LIBS line in daemon/Makefile

The Makefile rule was mostly correct.  The failure reported in comment #0 is because the Makefile incorrectly uses LDFLAGS to add -lpthread, so the library option is too far left in the command line.  This patch adds -lpthread to LIBS, so that it is reiterated in the correct place after the linker encounters a dependency on pthread functions.  My patch for bug #253412 will remove the inappropriate use of -lpthread in LDFLAGS.  Applying this patch without that one should be harmless, since it will merely result in referencing libpthread twice.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-01-02 21:04:26 UTC
*** Bug 247258 has been marked as a duplicate of this bug. ***
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2009-01-04 12:39:01 UTC
Patch applied in net-fs/autofs-5.0.4
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-07-21 20:35:33 UTC
*** Bug 278608 has been marked as a duplicate of this bug. ***