On 3/10/25 4:27 AM, Stuart Henderson wrote:
gnugk:snmp.cxx:87:11: error: expected '(' for function-style cast or type construction trapOID[ OID_LENGTH(trapOID) - 1 ] = trapNumber; ^~~~~~~~~~~~~~~~~~~ /usr/local/include/net-snmp/library/asn1.h:65:56: note: expanded from macro 'OID_LENGTH' sizeof(int[-__builtin_types_compatible_p(typeof(x), typeof(&(x)[0]))])) ~~~~~~~~~^ snmp.cxx:87:11: error: expected '(' for function-style cast or type construction trapOID[ OID_LENGTH(trapOID) - 1 ] = trapNumber; ^~~~~~~~~~~~~~~~~~~
I can't reproduce this with the gnugk git master branch head. gitgk builds fine on my Linux workstation with the Net-SNMP master branch head. Thanks, Bart. _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
