Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145960 - net-analyzer/net-snmp-5.2.2-r3 doesn't build with --as-needed
Summary: net-analyzer/net-snmp-5.2.2-r3 doesn't build with --as-needed
Status: RESOLVED DUPLICATE of bug 152679
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 152873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-02 02:23 UTC by Rafał Mużyło
Modified: 2007-01-25 08:43 UTC (History)
2 users (show)

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


Attachments
The ebuild. (net-snmp-5.2.2-r3.ebuild,5.38 KB, patch)
2006-09-02 02:24 UTC, Rafał Mużyło
Details | Diff
Patch 1 (net-snmp-5.2.2-asneeded.patch,2.85 KB, patch)
2006-09-02 02:25 UTC, Rafał Mużyło
Details | Diff
Patch 2 (net-snmp-5.2.2-as-needed.patch,3.26 KB, patch)
2006-09-02 02:26 UTC, Rafał Mużyło
Details | Diff
Patch 2 (net-snmp-5.2.2-as-needed.patch,3.26 KB, patch)
2006-09-02 02:30 UTC, Rafał Mużyło
Details | Diff
modified, a lot less changes (net-snmp-5.2.2-asneeded.patch,3.58 KB, patch)
2006-09-12 04:48 UTC, Rafał Mużyło
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2006-09-02 02:23:55 UTC
I tried to build net-analyzer/net-snmp with -Wl,--as-needed but the patch in portage tree was not enough for me. After quite a few hours of work, I managed to build it with attached ebuild and patches. Warning - one of the files has the same name as the one in portage tree, but it has been modified. Futher, eautoreconf might be a little too much, but it worked, so I decided not to change it. Of course, those patches should be cleaned a little, as I lack the knowledge of m4 and libtool required to do it.
Last thing - useflags were:
"X doc elf ipv6 mfd-rewrites perl smux ssl tcpd -lm_sensors -minimal -rpm"
Comment 1 Rafał Mużyło 2006-09-02 02:24:46 UTC
Created attachment 95718 [details, diff]
The ebuild.
Comment 2 Rafał Mużyło 2006-09-02 02:25:28 UTC
Created attachment 95719 [details, diff]
Patch 1
Comment 3 Rafał Mużyło 2006-09-02 02:26:05 UTC
Created attachment 95720 [details, diff]
Patch 2
Comment 4 Rafał Mużyło 2006-09-02 02:30:16 UTC
Created attachment 95721 [details, diff]
Patch 2
Comment 5 Rafał Mużyło 2006-09-02 02:32:36 UTC
Comment on attachment 95721 [details, diff]
Patch 2

Sorry, double submit
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-02 02:45:44 UTC
Weird, it works just fine here. Can you try w/ 5.3.0.1 instead?
Comment 7 Rafał Mużyło 2006-09-02 03:14:45 UTC
I'll think about it ( Duron 650 MHz - so it takes some time).
The problem I had was with libwrap - for some reason it was not linked
into libraries, so one of the apps was failing during linking
and with perl - which was not linked in either.
Comment 8 Rafał Mużyło 2006-09-12 04:48:15 UTC
Created attachment 96783 [details, diff]
modified, a lot less changes

OK, I read more into the problem, and came up with a much simpler solution. Now, ebuild from the tree works, with this modified patch. The changes are small:
1. one of the checks in configure.in was adding perl libs to LDFLAGS instead of LIBS, that caused that check to be incorrect and cause compilation to fail in one of perl-related files
2. libnetsnmpagent needs @WRAPLIBS@ cause otherwise it seems to compile fine, but when later some programs are built, they fail at linking because of a missing symbol from libwrap
Comment 9 Rafał Mużyło 2006-09-12 04:49:51 UTC
Reopening with new info.
Comment 10 Markus Ullmann (RETIRED) gentoo-dev 2006-10-09 12:15:48 UTC
Have sent it upstream already? would be cool if they could include it in the next release
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-10-26 06:08:19 UTC
*** Bug 152873 has been marked as a duplicate of this bug. ***
Comment 12 Cédric Krier gentoo-dev 2006-11-26 13:49:17 UTC
Patch include in the version 5.4 but seems to not completly work
So as-needed ldflags is filter in ebuild until it will work
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-01-25 08:43:53 UTC
Moving this to Bug 129413; no need for multiple --as-needed bugs open for the same package.

*** This bug has been marked as a duplicate of bug 152679 ***