On 2026/11/16 09:49, Stuart Henderson wrote: > On 2026/11/15 14:11, Bart Van Assche wrote: > > On 11/15/26 9:39 AM, Wes Hardaker wrote: > > > Bart Van Assche <[email protected]> writes: > > > > > > > That's unfortunate. > > > > > > I suspect a read-only failed to build bug is a big enough one to warrant > > > another RC with the fix in it. Specifically, a good number of people do > > > build with --read-only. > > > > Stuart, the read-only build should have been fixed on the master branch. > > Please help with retesting the master branch. > > Confirmed, read-only + standard builds are now working for me.
I've now run builds of ports which depend on net-snmp and ran into two issues: - snmp_sess_error() changed from void * to struct session_list * in 2f22405, I noticed because NUT failed to build - I think it's their error and they should have used snmp_error not snmp_sess_error in https://github.com/networkupstools/nut/blame/master/drivers/snmp-ups.c#L1792 - if so then that's not a problem for Net-SNMP to deal with, however while investigating I found that the netsnmp_sess_api.3 manpage still uses void *. - The stricter OID_LENGTH macro using __builtin_types_compatible_p in 589e9c5 results in build failures when used from C++ code. https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html says that the builtin is only available from C. Should the conditional have && !defined(__cplusplus) ? Seen here: https://github.com/willamowius/gnugk/blob/d0e15e12a20a0c769ab5d999bb2cf6f70d7e2772/snmp.cxx#L87 clang: snmp.cxx:87:11: error: expected '(' for function-style cast or type construction 87 | trapOID[ OID_LENGTH(trapOID) - 1 ] = trapNumber; | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/net-snmp/library/asn1.h:65:56: note: expanded from macro 'OID_LENGTH' 65 | sizeof(int[-__builtin_types_compatible_p(typeof(x), typeof(&(x)[0]))])) | ~~~~~~~~~^ gcc: snmp.cxx: In function 'void SendNetSNMPTrap(unsigned int, SNMPLevel, SNMPGroup, const PString&)': /usr/local/include/net-snmp/library/asn1.h:65:18: error: '__builtin_types_compatible_p' was not declared in this scope 65 | sizeof(int[-__builtin_types_compatible_p(typeof(x), typeof(&(x)[0]))])) _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
