libnetsnmpagent.so and libnetsnmpmibs.so are not build with the OSX's specific parameters. I needed to add -flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit in agent/Makefile.in for libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) and libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION).
Compilation works, but I soon I try to use the agent it fails with missing symbol.
What version og Net-SNMP and Darwin?
Unfortunately I only have access to a no quite recent Darwin version, but there it work for me with Net-SNMP 5.7.3.
Darwin XXXX 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
I took it from the daily git, main branch.
Right, so this is a new Darwin version, but the requirements seem to be the same. Could you try the attached patch, and see if it solves the problem?
Works for me.
Thanks for the heads up. The fix has been applied for the 5.7 patches branch and the master branch.