Commit graph

4 commits

Author SHA1 Message Date
3433f631aa fix: correct library linking order in Makefile
Move -lnetsnmp to end of link command (after source files).
In GCC/Clang, library flags must come after the object files that
reference them for proper symbol resolution.

This fixes 'undefined symbol: init_snmp' runtime errors on Linux.
2026-01-30 13:24:25 -06:00
522223c57c fix: define _DEFAULT_SOURCE and _BSD_SOURCE for BSD types
On newer glibc versions, BSD types like u_char are only available
when _DEFAULT_SOURCE or _BSD_SOURCE feature test macros are defined.

Define these macros before including any headers to ensure BSD types
are available for net-snmp headers.
2026-01-30 13:17:17 -06:00
bcba9e67a0 fix: include sys/types.h for BSD type definitions
Add #include <sys/types.h> before net-snmp headers to provide
u_char and other BSD-style type definitions required by net-snmp.

This fixes compilation errors in CI/Docker builds on Linux.
2026-01-30 13:11:24 -06:00
0214c2a100 complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00