[asterisk-bugs] [JIRA] (ASTERISK-24975) Enabling 'DEBUG_THREADLOCALS' Causes the Build to Fail

Ashley Sanders (JIRA) noreply at issues.asterisk.org
Fri Apr 17 15:29:33 CDT 2015


Ashley Sanders created ASTERISK-24975:
-----------------------------------------

             Summary: 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: 13.3.2
            Reporter: Ashley Sanders


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