Thanks, @xkaraman, `snmpstats` build fixed now.
Could you also check error with `-flto` options [Link 1](https://github.com/kamailio/kamailio/pull/4085#issuecomment-2606576084) [Link 2](https://github.com/kamailio/kamailio/pull/4085#issuecomment-2607162735)