|The perl guys apparently added a definition for U64 which conflicts with
the one in int64.h. Is it possible to add #ifdef guards to one
definition or the other, or if one is used in a limited scope can the
name be changed? In file included from
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv.h:629:0,
from
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/perl.h:3783,
from snmp_perl.c:6:
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_siphash_2_4':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:213:13:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U64 k0 = ((U64*)seed)[0]; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:214:13:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U64 k1 = ((U64*)seed)[1]; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_superfast':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:272:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed) + (U32)len; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_murmur3':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:376:16:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 h1 = *((U32*)seed); ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:121:31:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] #define U8TO32_LE(ptr) (*((U32*)(ptr))) ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:413:18:
note: in expansion of macro 'U8TO32_LE' k1 = U8TO32_LE(ptr); ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:121:31:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] #define U8TO32_LE(ptr) (*((U32*)(ptr))) ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:420:21:
note: in expansion of macro 'U8TO32_LE' carry = U8TO32_LE(ptr); ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:121:31:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] #define U8TO32_LE(ptr) (*((U32*)(ptr))) ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:428:21:
note: in expansion of macro 'U8TO32_LE' carry = U8TO32_LE(ptr); ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:121:31:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] #define U8TO32_LE(ptr) (*((U32*)(ptr))) ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:436:21:
note: in expansion of macro 'U8TO32_LE' carry = U8TO32_LE(ptr); ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_djb2':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:470:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed) + (U32)len; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_sdbm':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:480:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed) + (U32)len; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_one_at_a_time':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:506:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed) + (U32)len; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_one_at_a_time_hard':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:521:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed) + (U32)len; ^
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:
In function 'S_perl_hash_old_one_at_a_time':
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/hv_func.h:556:18:
warning: cast discards 'const' qualifier from pointer target type
[-Wcast-qual] U32 hash = *((U32*)seed); ^ 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: At top level:
../include/net-snmp/library/int64.h:8:30: error: conflicting types for
'U64' typedef struct counter64 U64; ^ In file included from
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/perl.h:2679:0,
from snmp_perl.c:6:
/home/rdrake/perl5/perlbrew/perls/perl-5.23.4/lib/5.23.4/x86_64-linux/CORE/handy.h:179:17:
note: previous declaration of 'U64' was here typedef U64TYPE U64; ^
Makefile:99: recipe for target 'snmp_perl.lo' failed make[1]: ***
[snmp_perl.lo] Error 1 |
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders