[asterisk-dev] Building asterisk on OSX 10.8.5 fails

Hanxue Lee hanxue.developer at gmail.com
Fri Oct 11 15:44:49 CDT 2013


I have Net-SNMP 5.7.2 installed, with the header files located at
/usr/include/net-snmp

The function init_asterisk_mib seems to be non-existent on the header
files.

Lees-MacBook-Pro:asterisk hanxue$ grep init_asterisk_mib
/usr/include/net-snmp/*.h
Lees-MacBook-Pro:asterisk hanxue$ grep init_asterisk_mib
/usr/include/net-snmp/agent/*.h


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.





On Sat, Oct 12, 2013 at 3:31 AM, Hanxue Lee <hanxue.developer at gmail.com>wrote:

> Hello,
>
>
> I am trying to build Asterisk 11.5.1 on OSX 10.8.5, and ended up with this
> error message:
>
> ...
> ...
> res_odbc.c: In function ‘acf_transaction_write’:
> res_odbc.c:1677: warning: ‘SQLSetConnectAttr’ is deprecated (declared at
> /usr/include/sql.h:1083)
> res_odbc.c:1679: warning: ‘SQLGetDiagField’ is deprecated (declared at
> /usr/include/sql.h:1006)
> res_odbc.c:1681: warning: ‘SQLGetDiagRec’ is deprecated (declared at
> /usr/include/sql.h:1016)
>    [CC] res_rtp_multicast.c -> res_rtp_multicast.o
>    [CC] res_security_log.c -> res_security_log.o
>    [CC] res_smdi.c -> res_smdi.o
>    [CC] res_snmp.c -> res_snmp.o
>    [CC] snmp/agent.c -> snmp/agent.o
>    [CC] res_speech.c -> res_speech.o
> snmp/agent.c: In function ‘init_asterisk_mib’:
> snmp/agent.c:817: error: ‘RONLY’ undeclared (first use in this function)
> snmp/agent.c:817: error: (Each undeclared identifier is reported only once
> snmp/agent.c:817: error: for each function it appears in.)
> make[1]: *** [snmp/agent.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [res] Error 2
> make: *** Waiting for unfinished jobs....
>    [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
>
>
>
> Any idea what may be causing this error?
>
>
> Full log of Make is available at http://hastebin.com/yocesikube
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131012/e78b98e6/attachment.html>


More information about the asterisk-dev mailing list