[asterisk-bugs] [Asterisk 0011392]: Using Net-SNMP (RPM) to compile Asterisk with SNMP on CentOS 4 not possible.
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Nov 28 09:39:36 CST 2007
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=11392
======================================================================
Reported By: merlinthemagic
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 11392
Category: Resources/res_snmp
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Asterisk Version: 1.4.14
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 11-27-2007 19:04 CST
Last Modified: 11-28-2007 09:39 CST
======================================================================
Summary: Using Net-SNMP (RPM) to compile Asterisk with SNMP
on CentOS 4 not possible.
Description:
Cant compile Asterisk on CentOS 4 using a RPM based Net-SNMP tried 5.1.2
and 5.4.3.
Configure dies with message:
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for snmp_register_callback in -lnetsnmp... no
configure: ***
configure: *** The Net-SNMP installation on this system appears to be
broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-netsnmp
A change to the configure file fixes the config issue.
Change line 21667 in the configure file.
NETSNMP_libs=`${NETSNMP_CONFIG} –agent-libs`
CHANGE to:
NETSNMP_libs=`${NETSNMP_CONFIG} –libs`
This will allow the configure to go through without issue, and compile
asterisk.
But problems persist when starting asterisk:
Here is the output from running asterisk -vvvgcT
[Nov 27 16:31:51] == Starting Agent
asterisk: symbol lookup error: /usr/lib/asterisk/modules/res_snmp.so:
undefined symbol: init_agent
Compiling Net-SNMP from source works no problem.
======================================================================
----------------------------------------------------------------------
file - 11-28-07 09:39
----------------------------------------------------------------------
This is a distro specific issue. Check the output of net-snmp-config
--agent-libs and make sure all libraries mentioned are present. There was
an issue previously where this was not true and they had to be installed
separately. If I remember correctly it was on CentOS.
Issue History
Date Modified Username Field Change
======================================================================
11-28-07 09:39 file Status new => resolved
11-28-07 09:39 file Resolution open => no change
required
11-28-07 09:39 file Assigned To => file
11-28-07 09:39 file Note Added: 0074478
======================================================================
More information about the asterisk-bugs
mailing list