[asterisk-bugs] [Asterisk 0012067]: Configure Script does not properly test for net-snmp.

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Feb 25 20:34:40 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12067 
====================================================================== 
Reported By:                juggie
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12067
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             02-25-2008 15:41 CST
Last Modified:              02-25-2008 20:34 CST
====================================================================== 
Summary:                    Configure Script does not properly test for
net-snmp.
Description: 
The asterisk configure script does not test net-snmp properly, in my case
this resulted in a compile error because lm_sensors-devel was not
installed.

File had me run the following:
[root at DONNY-CENTOS ~]# net-snmp-config --agent-libs
-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

He thought that configure should be doing a test compile of snmp with
these libs before saying it was ok, however the configure script does
only:
configure:35732: checking for net-snmp-config
configure:35748: found /usr/bin/net-snmp-config
configure:35759: result: net-snmp-config

The end result of course being:
make[1]: Entering directory
`/root/asterisk-2008/asterisk-NoLossCDR-Redux/res'
   [LD] res_snmp.o snmp/agent.o -> res_snmp.so
/usr/bin/ld: cannot find -lsensors
collect2: ld returned 1 exit status
make[1]: *** [res_snmp.so] Error 1
====================================================================== 

---------------------------------------------------------------------- 
 juggie - 02-25-08 20:34  
---------------------------------------------------------------------- 
Sorry to reopen, just had additional information.

The sensors lib is a dependancy, but lm_sensors-devel is not (of net
snmp)

File seemed to think you could take the output of, net-snmp-config
--agent-libs and then do a test to make sure a compile & link works with
those link parameters, basically to make sure the net snmp environment is
sane. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-25-08 20:34  juggie         Note Added: 0082941                          
======================================================================




More information about the asterisk-bugs mailing list