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

Bug 247715

Summary: mail-filter/dk-milter: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED FIXED    
Severity: normal CC: net-mail+disabled
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    
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-20 13:35:46 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-20 13:36:37 UTC
Created attachment 172477 [details]
Build log
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2008-12-11 21:12:16 UTC
Diego, this package don't use LDFLAGS var, so it cannot possibly be influenced by --as-needed thingie. 

I've tested it again and in my case just works. Apparently you don't have pthread library on your system, so I'll close this bug as INVALID.
Feel free to reopen it if you find other reason for this failure.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-11 21:36:06 UTC
Please read http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed .

When the summary says "forced --as-needed", the bug is there, and it's just hidden by the fact that the package does not respect LDFLAGS (which is also a bug on its own). My method bypasses the LDFLAGS variable, and acts on the compiler itself.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-12-12 06:41:01 UTC
Fixed in version 1.0.1-r1.

I have no idea how you managed to pass --as-needed to the linker. Is there an LDOPTS environment variable used by ld?