Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318135 - net-wireless/irda-utils: fails with forced --as-needed
Summary: net-wireless/irda-utils: 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: Mobile Herd (OBSOLETE)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2010-05-02 11:32 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-29 16:08 UTC (History)
2 users (show)

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

Build log (irda-utils-0.9.18-r3:20100501-230334.log,18.68 KB, text/plain)
2010-05-02 11:33 UTC, Diego Elio Pettenò (RETIRED)
adding patch to ebuild (irda-utils-0.9.18-r3.diff,414 bytes, patch)
2010-05-04 15:30 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details | Diff
fixing as-needed issues (irda-utils-0.9.18-asneeded.patch,415 bytes, patch)
2010-05-04 15:30 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
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 2010-05-02 11:32:57 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 2010-05-02 11:33:24 UTC
Created attachment 230013 [details]
Build log
Comment 2 Kevin Pyle 2010-05-02 18:29:55 UTC
This appears to be the standard mistake of specifying libraries too early in the link line, so they are searched before any symbols from them are known to be needed.  Moving the pkg-config call to the end of the line should solve the problem.  The offending line is irdadump/Makefile:43.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-05-04 15:30:10 UTC
Created attachment 230297 [details, diff]
adding patch to ebuild
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-05-04 15:30:24 UTC
Created attachment 230301 [details, diff]
fixing as-needed issues
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-06-29 16:08:43 UTC
+  29 Jun 2010; Samuli Suominen <>
+  irda-utils-0.9.18-r3.ebuild, +files/irda-utils-0.9.18-asneeded.patch:
+  Fix building with -Wl,--as-needed wrt #318135 by Kacper Kowalik.