[Home]

Summary:ASTERISK-06387: app_skel.c does not compile
Reporter:Fabian Mueller (fmueller)Labels:
Date Opened:2006-02-21 15:57:06.000-0600Date Closed:2006-02-21 20:06:48.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The compilation of app_skel.c breaks with this message:

gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686         -fomit-frame-pointer  -fPIC   -c -o app_skel.o app_skel.c
app_skel.c:56: error: Syntaxerror before '{' token
app_skel.c: In function »app_exec«:
app_skel.c:98: Warnung: implicit declaration of function `ast_parseoptions'
app_skel.c:98: error: `app_opts' undeclared (first use in this function)
app_skel.c:98: error: (Each undeclared identifier is reported only once
app_skel.c:98: error: for each function it appears in.)
make[1]: *** [app_skel.o] error 1
make[1]: leaving directory »/home/fabian/src/asterisk/tmp/asterisk-1.2.4/apps«
make: *** [subdirs] error 1

This happens because ast_parseoptions() is nowhere defined and because AST_DECLARE_OPTIONS is nowhere defined. app_skel can be compiled when you delete

AST_DECLARE_OPTIONS(app_opts,{
['a'] = { OPTION_A },
['b'] = { OPTION_B, 1 },
['c'] = { OPTION_C, 2 }
});

and

ast_parseoptions(app_opts, &flags, opts, options);

By the way: you probably should add a category for app_skel in this tracker.

****** ADDITIONAL INFORMATION ******

This problem also occurs in 1.2.4
Comments:By: Tilghman Lesher (tilghman) 2006-02-21 20:06:47.000-0600

Fixed in trunk