Subject: | Compilation fails with perl 5.23.6 |
On a FreeBSD 10.1 and a Debian system with installed net-snmp resp. libsnmp-dev package compilation fails with perl 5.23.6. On the same systems compilation is successful with older perls (e.g. with 5.22.1, 5.20.3, 5.18.4).
Looking at the output it seems that there's a conflict with a (newly defined?) type U64:
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O -DVERSION=\"0.0002\" -DXS_VERSION=\"0.0002\" -DPIC -fPIC "-I/usr/perl5.23.6p/lib/5.23.6/amd64-freebsd/CORE" Translate.c
In file included from Translate.xs:16:
In file included from /usr/local/include/net-snmp/net-snmp-includes.h:71:
In file included from /usr/local/include/net-snmp/utilities.h:42:
/usr/local/include/net-snmp/library/int64.h:8:30: error: typedef redefinition with different types ('struct counter64' vs 'unsigned long')
typedef struct counter64 U64;
^
/usr/perl5.23.6p/lib/5.23.6/amd64-freebsd/CORE/handy.h:179:17: note: previous definition is here
typedef U64TYPE U64;
^
1 error generated.
*** Error code 1