[asterisk-dev] res_snmp/Asterisk 1.4/net snmp problems

Kristian Kielhofner kristian.kielhofner at gmail.com
Wed Nov 28 22:46:11 CST 2007


Hello,

  I'm trying to compile Asterisk 1.4.14 for AstLinux.  I have Net-SNMP
v5.3.1 compiled and installed in my environment.  The full set of
configure and build options can be found here:

http://astlinux.svn.sourceforge.net/viewvc/*checkout*/astlinux/branches/asterisk-beta/package/netsnmp/netsnmp.mk?revision=1396

  Anyways, with a little massaging I can get Asterisk 1.4.14 to build
with res_snmp.  So far so good.  However, trying to start up Asterisk
with autoload=yes results in the following error:

pbx tmp # asterisk -c
Asterisk 1.4.14, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'
for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Nov 29 04:45:05] NOTICE[1878]: cdr.c:1362 do_reload: CDR simple
logging enabled.
[Nov 29 04:45:05] NOTICE[1878]: loader.c:831 load_modules: 144 modules
will be loaded.
..asterisk: can't resolve symbol 'netsnmp_ncompare_netsnmp_index'
pbx tmp #

  Uh oh.  That's not good.  I ran Asterisk with strace and put the
relevant output up here:

http://pastebin.ca/801320

  Looking at it, everything looks good.  Even looking at the relevant
libs reveals the proper symbols (I think):

pbx lib # for i in `ls libnetsnmp*`
> do
> echo $i ; strings $i | grep netsnmp_ncompare_netsnmp_index
> done
libnetsnmp.so
netsnmp_ncompare_netsnmp_index
libnetsnmp.so.10
netsnmp_ncompare_netsnmp_index
libnetsnmp.so.10.0.1
netsnmp_ncompare_netsnmp_index
libnetsnmpagent.so
libnetsnmpagent.so.10
libnetsnmpagent.so.10.0.1
libnetsnmphelpers.so
netsnmp_ncompare_netsnmp_index
libnetsnmphelpers.so.10
netsnmp_ncompare_netsnmp_index
libnetsnmphelpers.so.10.0.1
netsnmp_ncompare_netsnmp_index
libnetsnmpmibs.so
libnetsnmpmibs.so.10
libnetsnmpmibs.so.10.0.1


  I guess that isn't conclusive proof it's built and enabled, but it
looks pretty good.  I've been trying to look through the net snmp
source for a #define or something I might be missing (configured by
autoconf/configure or otherwise) but I haven't found anything so far.

  Any ideas?  What am I missing?

Thanks!

-- 
Kristian Kielhofner



More information about the asterisk-dev mailing list