<div dir="ltr">I have Net-SNMP 5.7.2 installed, with the header files located at /usr/include/net-snmp<font face="yw-189c7d3a1e0ac948a986eaea8caa03a9473eaacf-44435bb9fd65707ac093f46ee867c67f--o" style></font><div><br></div>
<div>The function <span style="font-family:arial,sans-serif;font-size:13px">init_asterisk_mib seems to be non-existent on the header files. </span></div><div><br></div><div><div>Lees-MacBook-Pro:asterisk hanxue$ grep init_asterisk_mib /usr/include/net-snmp/*.h</div>
<div>Lees-MacBook-Pro:asterisk hanxue$ grep init_asterisk_mib /usr/include/net-snmp/agent/*.h</div></div><div><br></div><div><br></div><div>Can anyone shed some light on this? Can I build without SNMP using autoconf arguments? I have tried --without-snmp but seems to have no effects. </div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 12, 2013 at 3:31 AM, Hanxue Lee <span dir="ltr"><<a href="mailto:hanxue.developer@gmail.com" target="_blank">hanxue.developer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<font face="yw-189c7d3a1e0ac948a986eaea8caa03a9473eaacf-2167ecd3f096379020410491eb32cba6--o"></font><div>
<br></div><div><br></div><div>I am trying to build Asterisk 11.5.1 on OSX 10.8.5, and ended up with this error message:</div>
<div><br></div><div>...</div><div>...</div><div><div>res_odbc.c: In function ‘acf_transaction_write’:</div><div>res_odbc.c:1677: warning: ‘SQLSetConnectAttr’ is deprecated (declared at /usr/include/sql.h:1083)</div><div>
res_odbc.c:1679: warning: ‘SQLGetDiagField’ is deprecated (declared at /usr/include/sql.h:1006)</div>
<div>res_odbc.c:1681: warning: ‘SQLGetDiagRec’ is deprecated (declared at /usr/include/sql.h:1016)</div><div> [CC] res_rtp_multicast.c -> res_rtp_multicast.o</div><div> [CC] res_security_log.c -> res_security_log.o</div>
<div> [CC] res_smdi.c -> res_smdi.o</div><div> [CC] res_snmp.c -> res_snmp.o</div><div> [CC] snmp/agent.c -> snmp/agent.o</div><div> [CC] res_speech.c -> res_speech.o</div><div>snmp/agent.c: In function ‘init_asterisk_mib’:</div>
<div>snmp/agent.c:817: error: ‘RONLY’ undeclared (first use in this function)</div><div>snmp/agent.c:817: error: (Each undeclared identifier is reported only once</div><div>snmp/agent.c:817: error: for each function it appears in.)</div>
<div>make[1]: *** [snmp/agent.o] Error 1</div><div>make[1]: *** Waiting for unfinished jobs....</div><div>make: *** [res] Error 2</div><div>make: *** Waiting for unfinished jobs....</div><div> [LD] chan_sip.o sip/config_parser.o sip/dialplan_functions.o sip/reqresp_parser.o sip/sdp_crypto.o sip/security_events.o sip/srtp.o sip/utils.o -> chan_sip.so</div>
</div><div><br></div><div><br></div><div><br></div><div>Any idea what may be causing this error?</div><div><br></div><div><br></div><div>Full log of Make is available at <a href="http://hastebin.com/yocesikube" target="_blank">http://hastebin.com/yocesikube</a></div>
</div>
</blockquote></div><br></div>