Issue 3370: Failure to build on OS X: error: use of undeclared identifier 'RONLY'
Status:  Invalid
Owner: ----
Closed:  May 2015
Reported by mag...@gmail.com, May 14, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1. Checkout Github asterisk/asterisk @ 1ba7845851f5b5cf952276dd7f1f1591c1190b23
2. configure --prefix=/opt (dependencies satisfied by https://brew.sh
3. make -j8

What is the expected output? What do you see instead?
Lots of these throughout agent.c:
snmp/agent.c:827:43: error: use of undeclared identifier 'RONLY'
                {ASTVERSTRING,           ASN_OCTET_STR, RONLY, ast_var_Version,             2, {ASTVERSION, ASTVERSTRING}},
                                                        ^
snmp/agent.c:828:43: error: use of undeclared identifier 'RONLY'
                {ASTVERTAG,              ASN_UNSIGNED,  RONLY, ast_var_Version,             2, {ASTVERSION, ASTVERTAG}},
                                                        ^
snmp/agent.c:829:43: error: use of undeclared identifier 'RONLY'
                {ASTCONFUPTIME,          ASN_TIMETICKS, RONLY, ast_var_Config,              2, {ASTCONFIGURATION, ASTCONFUPTIME}},


Workaround:

Add the following to agent.c:
#define RONLY 1

ProductName:	Mac OS X
ProductVersion:	10.10.3
BuildVersion:	14D136
Xcode 6.3.1
Build version 6D1002
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

May 15, 2015
Project Member #1 David.Os...@gmail.com
Wrong issue tracker.
Status: Invalid