[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
Thu Oct 2 15:56:32 CDT 2008


The following issue has been UPDATED. 
====================================================================== 
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-02 15:56 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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-02 15:56 tomo1657       Summary                  Compile error with
IMAP_STORAGE due to removed autoconfig.h in Makefile => [patch] Compile error
with IMAP_STORAGE due to removed autoconfig.h in Makefile
======================================================================




More information about the asterisk-bugs mailing list