[asterisk-bugs] [Asterisk 0011437]: Compiling Asterisk --with-imap support fails
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Dec 3 18:01:22 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11437
======================================================================
Reported By: blitzrage
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 11437
Category: Applications/app_voicemail
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 90471
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 12-02-2007 20:35 CST
Last Modified: 12-03-2007 18:01 CST
======================================================================
Summary: Compiling Asterisk --with-imap support fails
Description:
When compiling against the imap-2006k library on CentOS 5, 64-bit, I get
the following:
[CC] app_voicemail.c -> app_voicemail.o
In file included from /usr/local/src/imap-2006k/c-client/osdep.h:63,
from /usr/local/src/imap-2006k/c-client/c-client.h:42,
from app_voicemail.c:84:
/usr/local/src/imap-2006k/c-client/env_unix.h:71: warning: function
declaration isnâ??t a prototype
app_voicemail.c: In function â??apply_optionâ??:
app_voicemail.c:719: error: too few arguments to function â??ast_logâ??
app_voicemail.c:733: warning: passing argument 3 of â??ast_logâ?? makes
integer from pointer without a cast
app_voicemail.c:733: warning: passing argument 4 of â??ast_logâ?? makes
pointer from integer without a cast
app_voicemail.c:733: error: too few arguments to function â??ast_logâ??
app_voicemail.c:739: error: too few arguments to function â??ast_logâ??
app_voicemail.c:743: warning: passing argument 3 of â??ast_logâ?? makes
integer from pointer without a cast
app_voicemail.c:743: warning: passing argument 4 of â??ast_logâ?? makes
pointer from integer without a cast
...etc...
make[1]: *** [app_voicemail.o] Error 1
make: *** [apps] Error 2
======================================================================
----------------------------------------------------------------------
blitzrage - 12-03-07 18:01
----------------------------------------------------------------------
After talking with Paul about this, he noticed that because we're including
logger.h in asterisk.h, when we do the IMAP_STORAGE in app_voicemail.c, it
seems to be overwriting what Asterisk thinks the LOG_WARNING should be
defined as, and thus changing the format that is being passed to
ast_log().
If I moved the #ifdef IMAP_STORAGE block to ABOVE #include asterisk.h,
then app_voicemail.c compiles with no errors. I do end up with:
In file included from /usr/local/src/imap-2006k/c-client/osdep.h:63,
from /usr/local/src/imap-2006k/c-client/c-client.h:42,
from app_voicemail.c:73:
/usr/local/src/imap-2006k/c-client/env_unix.h:71: warning: function
declaration isnâ??t a prototype
app_voicemail.c: In function â??forward_messageâ??:
app_voicemail.c:4287: warning: passing argument 3 of
â??imap_retrieve_fileâ?? discards qualifiers from pointer target type
[LD] app_voicemail.o -> app_voicemail.so
Not sure if that is an issue or not. I haven't tried connecting with any
IMAP servers yet, so we'll see what happens.
Is this a real fix?
Issue History
Date Modified Username Field Change
======================================================================
12-03-07 18:01 blitzrage Note Added: 0074720
======================================================================
More information about the asterisk-bugs
mailing list