[asterisk-bugs] [Asterisk 0011045]: compiling with MTX_PROFILE broken

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Oct 25 11:20:01 CDT 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11045 
====================================================================== 
Reported By:                snuffy
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   11045
Category:                   Core/*
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 86572 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-21-2007 21:45 CDT
Last Modified:              10-25-2007 11:20 CDT
====================================================================== 
Summary:                    compiling with MTX_PROFILE broken
Description: 
   [CC] ast_expr2.c -> ast_expr2.o
In file included from
/home/bradl/asterisk-latest/include/asterisk/linkedlists.h:23,
                 from
/home/bradl/asterisk-latest/include/asterisk/frame.h:37,
                 from
/home/bradl/asterisk-latest/include/asterisk/channel.h:146,
                 from
/home/bradl/asterisk-latest/include/asterisk/pbx.h:27,
                 from ../main/ast_expr2.y:202:
/home/bradl/asterisk-latest/include/asterisk/lock.h: In function
`__ast_pthread_mutex_lock':
/home/bradl/asterisk-latest/include/asterisk/lock.h:318: error: `mtx_prof'
undeclared (first use in this function)
/home/bradl/asterisk-latest/include/asterisk/lock.h:318: error: (Each
undeclared identifier is reported only once
/home/bradl/asterisk-latest/include/asterisk/lock.h:318: error: for each
function it appears in.)
make[1]: *** [ast_expr2.o] Error 1
make: *** [utils] Error 2

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 10-25-07 11:20  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 87024

U   trunk/main/ast_expr2.c
U   trunk/main/ast_expr2.y
U   trunk/res/res_config_sqlite.c

------------------------------------------------------------------------
r87024 | murf | 2007-10-25 11:19:58 -0500 (Thu, 25 Oct 2007) | 1 line

closes issue http://bugs.digium.com/view.php?id=11045 - each file needs to
define ASTERISK_FILE_VERSION, if
you are going to set MTX_PROFILE in the compiler flags; the problem was
that the fixes were getting made to the generated .c file, and erased the
next time someone regenerated that file from the corresponding .y or .flex
file. Moral of story: keep your eyes open and make mods to the .y (or flex
input file) and re-run bison (or flex) as the Makefile directs for that
file, and then check in both. Also, res_config_sqlite was kinda missed, and
has the same issue.
------------------------------------------------------------------------ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-25-07 11:20  svnbot         Checkin                                      
10-25-07 11:20  svnbot         Note Added: 0072508                          
10-25-07 11:20  svnbot         Status                   acknowledged => assigned
======================================================================




More information about the asterisk-bugs mailing list