kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
5d50544f77
commit
beb0aaef5b
|
@ -7824,7 +7824,7 @@ $as_echo_n "checking for proper SNMP version... " >&6; }
|
||||||
if test "$SNMP_CONFIG_PATH" != "no" ; then
|
if test "$SNMP_CONFIG_PATH" != "no" ; then
|
||||||
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
|
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
|
||||||
vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
|
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_LIBS=`$SNMP_CONFIG_PATH --libs`
|
||||||
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
|
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
@ -7833,8 +7833,8 @@ $as_echo "yes" >&6; }
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$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:${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.5, your version is $snmp_version" >&2;}
|
$as_echo "$as_me: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&2;}
|
||||||
with_snmp="no"
|
with_snmp="no"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
@ -158,14 +158,14 @@ else
|
||||||
if test "$SNMP_CONFIG_PATH" != "no" ; then
|
if test "$SNMP_CONFIG_PATH" != "no" ; then
|
||||||
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
|
snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
|
||||||
vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
|
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_LIBS=`$SNMP_CONFIG_PATH --libs`
|
||||||
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
|
SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
with_snmp="yes"
|
with_snmp="yes"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
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"
|
with_snmp="no"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Ładowanie…
Reference in New Issue