[asterisk-bugs] [Asterisk 0016991]: [patch] Can't build asterisk using just --with-netsnmp... seems to always want to use CONFIG_NETSNMP
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jun 16 14:13:27 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16991
======================================================================
Reported By: pprindeville
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16991
Category: Core/BuildSystem
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
Asterisk Version: 1.6.2.5
JIRA: SWP-1063
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-03-08 14:42 CST
Last Modified: 2010-06-16 14:13 CDT
======================================================================
Summary: [patch] Can't build asterisk using just
--with-netsnmp... seems to always want to use CONFIG_NETSNMP
Description:
It's issue 15714 all over again, only with netsnmp instead of curl this
time.
If you've built a different version of netsnmp (or patched it) and you
want to build against that, you can't.
Configure will attempt to find net-snmp-config and run that... which
might not be in any place it will likely be discovered... and ignores where
you've told 'configure' to actually find the headers and libraries.
======================================================================
----------------------------------------------------------------------
(0123494) twilson (administrator) - 2010-06-16 14:13
https://issues.asterisk.org/view.php?id=16991#c123494
----------------------------------------------------------------------
I've been researching this, and I'm not entirely sure that it is a bug--or
at least one that is easily fixable. We use the net-snmp-config utility (as
we should) and it returns all kinds of things for the agent-libs. On my
machine:
terry at cesium:~/src/digium/asterisk/trunk$ net-snmp-config
--agent-libs-Wl,-Bsymbolic-functions -L/usr/lib -lnetsnmpagent
-lnetsnmphelpers -lnetsnmpmibs -lnetsnmp -Wl,-E
The purpose of using this utility is so complex things like this do not
have to be hard-coded anywhere. The only way I could see to make this work
with a passed in directory would be to do some kind of search and replace
on the net-snmp-config output--which seems quite brittle.
I think the real solution to this issue is to run configure with your
PATH=/path/to/new/net-snmp-config:$PATH so that the proper net-snmp-config
is found and the proper options can be set.
With that said, I'm attaching a patch that makes the AST_EXT_TOOL_CHECK
take the directory passed via --with-*=${dir} and search for the *-config
app in ${dir}/bin. This *should* find the correct installation of the
library.
Please apply the batch, run ./bootstrap && ./configure
--with-netsnmp=/your/path/to/netsnmp and test it out for me.
Issue History
Date Modified Username Field Change
======================================================================
2010-06-16 14:13 twilson Note Added: 0123494
======================================================================
More information about the asterisk-bugs
mailing list