[asterisk-bugs] [Asterisk 0013605]: [patch] Compile error with IMAP_STORAGE due to removed autoconfig.h in Makefile

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Oct 5 06:17:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13605 
====================================================================== 
Reported By:                tomo1657
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13605
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 146007 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-02 15:56 CDT
Last Modified:              2008-10-05 06:17 CDT
====================================================================== 
Summary:                    [patch] Compile error with IMAP_STORAGE due to
removed autoconfig.h in Makefile
Description: 
The removal of autoconfig.h in the Makefile at revision 144993 prevents
app_voicemail.c from compiling with the IMAP_STORAGE flag. 

Optimally we would want to #include "asterisk.h" before the IMAP includes,
but as the comments show, this creates other compile issues involving the
logger.

The quick solution seems to be to keep "asterisk.h" after the IMAP
includes, but additionally include "asterisk/autoconfig.h above the other
includes when IMAP_STORAGE flag is enabled.

#ifdef IMAP_STORAGE
#include "asterisk/autoconfig.h"    // <-- include autoconfig.h line
http://bugs.digium.com/view.php?id=72
#include <ctype.h>
#include <signal.h>
...

I've attached a patch for this but there may be a more elegant solution.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0013604 error: ‘PTHREAD_MUTEX_RECURSIVE’ un...
====================================================================== 

---------------------------------------------------------------------- 
 (0093181) seanbright (manager) - 2008-10-05 06:17
 http://bugs.digium.com/view.php?id=13605#c93181 
---------------------------------------------------------------------- 
I am trying to determine if there is a cleaner fix, but your patch does
clear up the compile problems others are having as well. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-05 06:17 seanbright     Note Added: 0093181                          
======================================================================




More information about the asterisk-bugs mailing list