Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 247969

Summary: net-fs/autofs: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Stefaan De Roeck (RETIRED) <stefaan>
Status: RESOLVED FIXED    
Severity: normal CC: elprespufferfish, jlec, net-fs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/proj/en/qa/asneeded.xml
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413, 253412    
Attachments: Build log
Patch to add -lpthread to the LIBS line in daemon/Makefile

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. ***