[Home]

Summary:ASTERISK-12738: Configure res_snmp failure
Reporter:Olle Johansson (oej)Labels:
Date Opened:2008-09-16 10:23:36Date Closed:2011-06-07 14:07:45
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_snmp
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Trying to compile on Centos 5, I've installed net-snmp and net-snmp-devel, but configure still complains that net-snmp is not found or not correctly installed. Checking in the config log file, I found this.

configure:22037: result: no
configure:22387: checking for initscr in -lncurses
configure:22422: gcc -o conftest -g -O2   conftest.c -lncurses    >&5
configure:22428: $? = 0
configure:22446: result: yes
configure:22609: checking for curses.h
configure:22614: result: yes
configure:22835: checking for net-snmp-config
configure:22853: found /usr/bin/net-snmp-config
configure:22865: result: /usr/bin/net-snmp-config
configure:23012: checking for snmp_register_callback in -lnetsnmp
configure:23047: gcc -o conftest -g -O2   conftest.c -lnetsnmp -L/usr/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm -lsensors -L/usr/lib/lib -lwrap -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc  >&5
/usr/bin/ld: cannot find -lsensors

Guess we need to add a check for the "sensors" library found in linux package lm_sensors and lm_sensors_devel
Comments:By: Russell Bryant (russell) 2008-10-05 16:39:44

This is a packaging bug on centos.

The net-snmp build tool tells Asterisk that building against this library requires libsensors.  However, the package is not dependent on it.

Feel free to report this upstream ...