Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276797 - dev-libs/libevent-1.4.11 fails to build with --as-needed --no-undefined
Summary: dev-libs/libevent-1.4.11 fails to build with --as-needed --no-undefined
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 17:06 UTC by Kevin Pyle
Modified: 2009-07-07 23:10 UTC (History)
0 users

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


Attachments
Patch to modify ebuild to extend sed expression to fix linking of libevent_extra.so (libevent-1.4.11.ebuild.patch,715 bytes, patch)
2009-07-06 17:07 UTC, Kevin Pyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pyle 2009-07-06 17:06:40 UTC
With LDFLAGS="-Wl,--as-needed,--no-undefined", libevent-1.4.11 fails to link libevent_extra.so because it uses symbols from libevent.so, but does not explicitly link to libevent.so.  Adding libevent.la to the LIBADD for libevent_extra allows libevent to compile successfully.
Comment 1 Kevin Pyle 2009-07-06 17:07:43 UTC
Created attachment 196929 [details, diff]
Patch to modify ebuild to extend sed expression to fix linking of libevent_extra.so
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-06 20:33:39 UTC
Could you additionally explain why your patch uses eautoreconf instead of elibtoolize?
Comment 3 Kevin Pyle 2009-07-07 01:56:09 UTC
The sed expression changes Makefile.am, so Makefile.in needs to be rebuilt.  It might be sufficient to use elibtoolize+eautomake, rather than letting eautoreconf do both.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-07 23:09:17 UTC
Thank you.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-07 23:09:43 UTC
It's in the tree, in -r1. I'll send it upstream as well.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-07-07 23:10:40 UTC
(In reply to comment #5)
> I'll send it upstream as well.

Never mind that - there isn't anything to send. :)