[asterisk-bugs] [JIRA] (ASTERISK-26205) clang: BlocksRuntime does not link on Fedora 23
Corey Farrell (JIRA)
noreply at issues.asterisk.org
Mon Jul 18 18:02:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Corey Farrell updated ASTERISK-26205:
-------------------------------------
Attachment: 0001-RAII_VAR-Fix-configure-for-clang-on-Fedora-23.patch
[~gjoseph]: I've attached the patch I came up with (it's against 13 HEAD). Asterisk builds but doesn't run. I tried running testsuite {{tests/manager/originate}}, it produced a bunch of runtime errors that seem to be added by clang. This does not appear to be related to BlocksRuntime.
In any case the patch does allow use of scan-build static analyzer from Fedora 23.
> clang: BlocksRuntime does not link on Fedora 23
> -----------------------------------------------
>
> Key: ASTERISK-26205
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26205
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/BuildSystem
> Affects Versions: SVN, 11.22.0-rc1, 13.9.1
> Reporter: Corey Farrell
> Severity: Minor
> Attachments: 0001-RAII_VAR-Fix-configure-for-clang-on-Fedora-23.patch
>
>
> Fedora 23 with clang / llvm installed, also libBlocksRuntime.a from https://github.com/mackyle/blocksruntime. Configure Asterisk with:
> {{CC=clang ./configure --enable-dev-mode}}
> This fails because {{-lBlocksRuntime}} does not work correctly. For some reason on Fedora 23 you must use {{-Wl,-lBlocksRuntime}}. Although both options pass {{-lBlocksRuntime}} to the linker, the {{-Wl,}} variant adds the parameter last.
> I'll post a patch once I've had a chance to do some testing on the build result from clang.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list