Summary: | ASTERISK-10457: Enabling MTX Profile causes * not to compile | ||
Reporter: | snuffy (snuffy) | Labels: | |
Date Opened: | 2007-10-05 10:45:27 | Date Closed: | 2007-10-08 10:51:52 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 10898-mtx_prof.diff | |
Description: | Was trying out the various compiler flags when I found this... If you try to use 'mtx_profile' compiler flag, it complains about __MTX_PROF definition is missing and aborts compile. I could not see why it is wrong as it looked correct to me. ****** STEPS TO REPRODUCE ****** [CC] ast_expr2.c -> ast_expr2.o In file included from /usr/source/asterisk-latest/include/asterisk/linkedlists.h:23, from /usr/source/asterisk-latest/include/asterisk/frame.h:37, from /usr/source/asterisk-latest/include/asterisk/channel.h:146, from /usr/source/asterisk-latest/include/asterisk/pbx.h:27, from ../main/ast_expr2.y:286: /usr/src/asterisk-latest/include/asterisk/lock.h: In function `__ast_pthread_mutex_lock': /usr/src/asterisk-latest/include/asterisk/lock.h:274: error: `mtx_prof' undeclared (first use in this function) /usr/source/asterisk-latest/include/asterisk/lock.h:274: error: (Each undeclared identifier is reported only once /usr/src/asterisk-latest/include/asterisk/lock.h:274: error: for each function it appears in.) make[1]: *** [ast_expr2.o] Error 1 make: *** [utils] Error 2 | ||
Comments: | By: Jason Parker (jparker) 2007-10-05 14:09:49 I think I've worked through most of the errors. I'll upload a patch shortly. By: Jason Parker (jparker) 2007-10-05 14:53:14 Give that a shot. murf approved the ael/utils changes. By: snuffy (snuffy) 2007-10-05 16:40:12 This now compiles correctly. By: Digium Subversion (svnbot) 2007-10-08 10:51:52 Repository: asterisk Revision: 85025 U trunk/main/ast_expr2.c U trunk/res/res_limit.c U trunk/utils/check_expr.c U trunk/utils/conf2ael.c U trunk/utils/hashtest2.c ------------------------------------------------------------------------ r85025 | file | 2007-10-08 10:51:50 -0500 (Mon, 08 Oct 2007) | 6 lines Fix up tree so that it compiles when MTX Profiling is enabled. (closes issue ASTERISK-10457) Reported by: snuffy Patches: 10898-mtx_prof.diff uploaded by qwell (license 4) ------------------------------------------------------------------------ |