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

Bug 247067

Summary: dev-libs/log4cpp: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
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-16 14:34:40 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-16 14:35:03 UTC
Created attachment 171982 [details]
Build log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-06-29 19:10:24 UTC
To be honest, I couldn't reproduce this. It's using the same .m4 macro as 'protobuf', so presumably this should fix it:

+  29 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +files/1.0-asneeded.patch, log4cpp-1.0.ebuild:
+  Fix building with -Wl,--as-needed wrt #247067 by Diego E. Pettenò and
+  Kacper Kowalik.