CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

Failure to build on OS X: error: use of undeclared identifier 'RONLY' #3370

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*****************************************************************
*****                                                       *****
***** !!!! 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

Original issue reported on code.google.com by mag...@gmail.com on 15 May 2015 at 5:42

GoogleCodeExporter commented 9 years ago
Wrong issue tracker.

Original comment by David.Os...@gmail.com on 15 May 2015 at 7:38