Summary: | net-analyzer/net-snmp-5.4.1-r3 fails to configure with --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Holger Hoffstätte <holger> |
Component: | [OLD] Server | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | flameeyes |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker/index.php?func=detail&aid=1899762&group_id=12694&atid=312694 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: | log for failed configuration |
Description
Holger Hoffstätte
2008-05-30 18:09:08 UTC
Please post the generated config.log, that should tell what the problem is exactly. Created attachment 155829 [details]
log for failed configuration
(In reply to comment #1) > Please post the generated config.log, that should tell what the problem is > exactly. Done, see line 3666 for the link failure. Shouldn't the LDFLAGS come after the source file, not before? In any case thanks for looking into this. Okay, I can confirm it's a problem with net-snmp's configure.in, sigh, that project made me cry already quite some times :( At any rate, here it is the problem, I'll see if it doesn't make me cry further if I try to fix it later: if test "x$embed_perl" != "xno" ; then OLDLDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $netsnmp_perlldopts" [snip] the ldopts are reported by perl through ExtUtils::Embed: netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts` What perl reports is _mostly_ libraries, with the exception of -rdynamic -- which is correct to be passed _just_ for the following .a -- so it should be passed to LIBS rather than LDFLAGS. The patch should be pretty trivial if there are no further issues. I should have checked upstream tracker first, the patch was there, not like it took me more than two minutes to prepare, took more time to actually build net-snmp ;) Patch added to 5.4.1-r3. Just to make my point, look at bug 145960#c8, noticed anything interesting ? 'checked upstream tracker' you say... Err okay I did NOT notice that because I didn't see any other open bug. I hate when people close bugs when they aren't fixed yet (and filtering is not fixing). Thanks for the patch anyway :) Fix confirmed. Thanks guys, we all love you. =) Thank you Diego. I agree that filtering of --as-needed is not a solution. Just wanted to add that this is FIXED in net-snmp-5.4.1-r4, not -r3. |