[asterisk-bugs] [JIRA] (ASTERISK-24975) Enabling 'DEBUG_THREADLOCALS' Causes the Build to Fail
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu May 21 15:24:45 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team updated ASTERISK-24975:
-------------------------------------
Target Release Version/s: 11.18.0
> Enabling 'DEBUG_THREADLOCALS' Causes the Build to Fail
> ------------------------------------------------------
>
> Key: ASTERISK-24975
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24975
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: SVN, 11.17.1, 13.3.2
> Reporter: Ashley Sanders
> Assignee: Corey Farrell
> Target Release: 11.18.0, 13.4.0
>
> Attachments: threadstorage-fix.patch
>
>
> After I cloned the repository, I:
> 1. $ ./configure --enable-dev-mode
> 2. $ make menuselect
> 3. In menuselect, enabled Compiler Flags - Development -> DEBUG_THREADLOCALS.
> 4. $ make
> The build fails with the following message:
> {noformat}
> In file included from /home/ashley/dev/asterisk/src/include/asterisk/strings.h:31:0,
> from /home/ashley/dev/asterisk/src/include/asterisk/utils.h:869,
> from /home/ashley/dev/asterisk/src/include/asterisk/config.h:30,
> from /home/ashley/dev/asterisk/src/include/asterisk/channel.h:169,
> from logger.c:57:
> logger.c: In function ‘__cleanup_in_safe_log’:
> /home/ashley/dev/asterisk/src/include/asterisk/threadstorage.h:137:11: error: called object is not a function or function pointer
> c_cleanup(data); \
> ^
> /home/ashley/dev/asterisk/src/include/asterisk/threadstorage.h:88:2: note: in expansion of macro ‘AST_THREADSTORAGE_CUSTOM_SCOPE’
> AST_THREADSTORAGE_CUSTOM_SCOPE(name, NULL, NULL,)
> ^
> logger.c:110:1: note: in expansion of macro ‘AST_THREADSTORAGE_RAW’
> AST_THREADSTORAGE_RAW(in_safe_log);
> ^
> make[1]: *** [logger.o] Error 1
> make: *** [main] Error 2
> {noformat}
> After the build failed, I disabled the setting and re-built Asterisk. This time, the build succeeded.
> To verify enabling the flag is what failed my initial build, I retraced my steps and the build failed a second time.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list