[asterisk-dev] Building asterisk on OSX 10.8.5 fails

David M. Lee dlee at digium.com
Mon Oct 14 12:57:56 CDT 2013


On Oct 11, 2013, at 3:44 PM, Hanxue Lee <hanxue.developer at gmail.com> wrote:

> 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. 

Try --without-netsnmp.

> 
> 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?


OS X has deprecated the version of OpenSSL provided by Xcode. You'll need to install your own version.

If you use homebrew, you can simply 'brew install openssl', and pass --with-ssl=/usr/local/opt/openssl to configure.

Here are some other tips that might help you - http://lists.digium.com/pipermail/asterisk-dev/2013-October/062893.html

-- 
David M. Lee
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131014/7b543805/attachment.html>


More information about the asterisk-dev mailing list