[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 22:28:25 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: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 02-25-2008 15:41 CST
Last Modified: 02-25-2008 22:28 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
======================================================================
----------------------------------------------------------------------
russell - 02-25-08 22:28
----------------------------------------------------------------------
what is in that package that we need? At a quick glance, I didn't see any
includes of headers from that lib ... Perhaps some of the netsnmp headers
include them? In any case, I still think this is a broken package. But,
if someone can determine what the test program should be, then I'm ok with
it.
If it's the devel package that was missing, simply linking a test program
against it isn't enough. We have to include the right thing.
What was the build error you got?
Issue History
Date Modified Username Field Change
======================================================================
02-25-08 22:28 russell Note Added: 0082943
======================================================================
More information about the asterisk-bugs
mailing list