ubuntu 18.10 安装net-snmp时遇到错误,请各位大神帮忙看看如何解决
make的时候出现了下面的报错:
In file included from ../include/net-snmp/utilities.h:42,
from ../include/net-snmp/net-snmp-includes.h:71,
from snmp_perl.c:9:
../include/net-snmp/library/int64.h:8:30: error: conflicting types for 'U64'
typedef struct counter64 U64;
^~~
In file included from /usr/lib/x86_64-linux-gnu/perl/5.26/CORE/perl.h:2698,
from snmp_perl.c:6:
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/handy.h:179:17: note: previous declaration of 'U64' was here
typedef U64TYPE U64;
^~~
make[1]: *** [Makefile:98:snmp_perl.lo] 错误 1
make[1]: 离开目录“/home/z/下载/net-snmp-5.7.3/agent”
make: *** [Makefile:656:subdirs] 错误 1