magicolor: backend needs net-snmp 5.6 for snmp auto-detection

In net-snmp 5.5 the UDP transport does not provide a public-API way to extract the originating IP of the
response to the SNMP auto-detection broadcast request... The structure that stores that information
was moved to the public include/library/snmp_transport.h header only in 5.6 :(
merge-requests/1/head
Reinhold Kainhofer 2011-01-31 14:26:46 +01:00
rodzic 5d50544f77
commit beb0aaef5b
2 zmienionych plików z 5 dodań i 5 usunięć

6
configure vendored
Wyświetl plik

@ -7824,7 +7824,7 @@ $as_echo_n "checking for proper SNMP version... " >&6; }
if test "$SNMP_CONFIG_PATH" != "no" ; then
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
if test -n "$vers" && test "$vers" -ge 5005; then
if test -n "$vers" && test "$vers" -ge 5006; then
SNMP_LIBS=`$SNMP_CONFIG_PATH --libs`
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@ -7833,8 +7833,8 @@ $as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need at least net-snmp 5.5, your version is $snmp_version" >&5
$as_echo "$as_me: WARNING: You need at least net-snmp 5.5, your version is $snmp_version" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&5
$as_echo "$as_me: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&2;}
with_snmp="no"
fi
else

Wyświetl plik

@ -158,14 +158,14 @@ else
if test "$SNMP_CONFIG_PATH" != "no" ; then
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
if test -n "$vers" && test "$vers" -ge 5005; then
if test -n "$vers" && test "$vers" -ge 5006; then
SNMP_LIBS=`$SNMP_CONFIG_PATH --libs`
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
AC_MSG_RESULT(yes)
with_snmp="yes"
else
AC_MSG_RESULT(no)
AC_MSG_WARN([You need at least net-snmp 5.5, your version is $snmp_version])
AC_MSG_WARN([You need at least net-snmp 5.6, your version is $snmp_version])
with_snmp="no"
fi
else