I am trying to compile and generate Asterisk from the source with snmp support.
I compiled netsnmp and have binaries in one folder. I tried to run Asterisk ./configure script with --with-libsnmp=“Folder of libsnmp” and -L"Folder of libsnmp" -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp, both didn’t work.
Since Asterisk is not getting compiled with libsnmp support res_snmp module is not getting generated.
checking for LOG_LPR in syslog.h… yes checking for LOG_MAIL in syslog.h… yes checking for LOG_NEWS in syslog.h… yes checking for LOG_SYSLOG in syslog.h… yes checking for LOG_UUCP in syslog.h… yes checking for mandatory modules: JANSSON NETSNMP… fail
**configure: ***** configure: *** The NETSNMP installation appears to be missing or broken. configure: *** Either correct the installation, or run configure configure: *** including --without-netsnmp.
The mandatory modules check seems to be done late, not immediately after the actual check for the modules, so you need to look further back for the relevant …no line.
Also, as already noted, you may need to look at config.log (or even configure itself) to find out exactly what was tested for.
net-snmp/net-snmp-config.h is missing. Look at the I options in the first line to see where it was looked for.
Also you seem to be using a “cert” version, but should normally only be doing so if you have a support contract with Sangoma. For normal use, you should be using 13.38.0, for Asterisk 13.
It is looking for net-snmp/net-snmp-config.h but net-snmp also appears as a directory component in some of the paths you are using, and others use similar. It seems unlikely that the same component would appear twice in a path. Please check the actual path name of the include file.