make fails on ubuntu 17.04 (Desktop)
commands are:
make
Output:
perl.c -fPIC -DPIC -o .libs/snmp_perl.o
In file included from ../include/net-snmp/utilities.h:42:0,
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.24/CORE/perl.h:2684:0,
from snmp_perl.c:6:
/usr/lib/x86_64-linux-gnu/perl/5.24/CORE/handy.h:179:17: note: previous declaration of 'U64' was here
typedef U64TYPE U64;
^~~
Makefile:98: die Regel für Ziel „snmp_perl.lo“ scheiterte
make[1]: *** [snmp_perl.lo] Fehler 1
make[1]: Verzeichnis „/home/jack/projects/net-snmp/agent“ wird verlassen
Makefile:852: die Regel für Ziel „installsubdirlibs“ scheiterte
make: *** [installsubdirlibs] Fehler 1
perl is 5.24.1
What release of net-snmp? Check the output of './configure --help' and see if the --disable-U64 options is available.
The same thing is happening to me with version 5.7.2 (OS ubuntu)
Leo, did you ever get 5.7.2 to install on Ubuntu?
I'm having the same issue in version 5.7.3 on Deabian. Tried ./configure --disable-U64, --disable-U64 not available.
In file included from ../include/net-snmp/utilities.h:42:0,
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.24/CORE/perl.h:2684:0,
from snmp_perl.c:6:
/usr/lib/x86_64-linux-gnu/perl/5.24/CORE/handy.h:179:17: note: previous declaration of 'U64' was here
typedef U64TYPE U64;
^~~
Makefile:98: recipe for target 'snmp_perl.lo' failed
This ticket should be changed to closed as it was fixed in commit 31613e and is part of 5.8.