[asterisk-bugs] [JIRA] (ASTERISK-25956) Compilation error in conditionally compiled code in config_options.c

Chris Trobridge (JIRA) noreply at issues.asterisk.org
Tue May 3 09:54:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230469#comment-230469 ] 

Chris Trobridge commented on ASTERISK-25956:
--------------------------------------------

The licence agreement has be made but I still cannot access Gerrit.
I am not totally sure what my user name should be for it but in any case it appears Gerrit may not be online.  I am following the instructions on https://gerrit.asterisk.org/.

This morning, the main site referenced (https://gerrit.asterisk.org/) yielded 503 "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later".

Accessing git via ssh gave "ssh: connect to host gerrit.asterisk.org port 29418: Connection refused".

I would like to work through Gerrit but, for now, I have attached the patch.


> Compilation error in conditionally compiled code in config_options.c
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-25956
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25956
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Configuration
>    Affects Versions: 13.8.2
>         Environment: Yocto 2.1
> AST_XML_DOCS not defined
>            Reporter: Chris Trobridge
>            Assignee: Unassigned
>         Attachments: fix-config_options.patch
>
>
> config_options.c contains an ifdef that does not completely contain an if statement, leading to syntax errors when AST_XML_DOCS is not defined.
> Current code section follows (config_options.c:195), swapping the last two lines fixes the compilation.
> {code}
> #ifdef AST_XML_DOCS
> 		if (!info->hidden && !opt->no_doc &&
> 			xmldoc_update_config_option(types, info->module, opt->name, type->name, opt->default_val, opt->match_type == ACO_REGEX, opt->type)) {
> #ifdef AST_DEVMODE
> 			opt->doc_unavailable = 1;
> #endif
> #endif
> 		}
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list