Re: Net-SNMP 5.10.pre1 released for testing

Bart Van Assche via Net-snmp-coders <[email protected]> Sun, 16 Mar 2025 15:49:41 -0700
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
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.