[asterisk-dev] Build error with fresh SVN trunk checkout

Brian Capouch brianc at palaver.net
Tue Aug 29 16:03:45 MST 2006


Kevin P. Fleming wrote:
> ----- Brian Capouch <brianc at palaver.net> wrote:
> 
>>chan_zap.c:11227:1: directives may not be used inside a macro
>>argument
>>chan_zap.c:11226:56: unterminated argument list invoking macro 
>>"AST_MODULE_INFO"chan_zap.c:11230: warning: type defaults to `int' in
>>declaration of `AST_MODULE_INFO'
>>chan_zap.c:11231: parse error before '.' token
>>make[1]: *** [chan_zap.o] Error 1
> 
> 
> Works fine for me with r41272. You didn't report a rev number so I don't know if you have an older one or not, but there haven't been any changes in that module lately either.
> 

It seems to be a compiler version issue.  I have probably missed 
somewhere a requirement for a "greater than" version number.

In my case, using gcc v 3.2.1.  I removed the #ifdef embedded in the 
macro and it compiled cleanly.

Next is to upgrade the compiler.

FYI.

B.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the asterisk-dev mailing list