In file included from app_voicemail.c:106: /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:37:35: error: asterisk/optional_api.h: No such file or directory In file included from app_voicemail.c:106: /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:88: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_interface_unref’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:88: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:89: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:89: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:89: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:101: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_md_message_pop’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:102: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:102: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:102: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:102: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:102: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:89: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:116: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_md_message_wait’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:117: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:117: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:117: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:117: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:117: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:89: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:128: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_md_message_putback’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:129: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:130: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:130: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:130: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:142: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_message_pop’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:143: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:143: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:143: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:143: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:143: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:130: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:157: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_message_wait’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:160: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:161: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:161: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:161: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:161: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:130: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:172: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_message_putback’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:173: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:184: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_interface_find’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:185: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:185: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:185: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:185: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:185: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:192: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_set’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:193: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:194: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:194: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:194: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:194: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:201: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_unset’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:202: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:202: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:202: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:202: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:202: error: conflicting types for ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:174: error: previous declaration of ‘AST_OPTIONAL_API’ was here /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:205: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_md_message_destroy’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:206: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:206: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:206: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:206: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:209: error: expected declaration specifiers or ‘...’ before ‘ast_smdi_mwi_message_destroy’ /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:210: error: expected declaration specifiers or ‘...’ before ‘(’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:210: error: expected declaration specifiers or ‘...’ before ‘{’ token /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:210: warning: data definition has no type or storage class /home/pj/src/asterisk-161-r188019/include/asterisk/smdi.h:210: warning: type defaults to ‘int’ in declaration of ‘AST_OPTIONAL_API’ app_voicemail.c: In function ‘run_externnotify’: app_voicemail.c:4815: warning: implicit declaration of function ‘ast_smdi_mwi_set’ app_voicemail.c:4817: warning: implicit declaration of function ‘ast_smdi_mwi_unset’ app_voicemail.c:4819: warning: implicit declaration of function ‘ast_smdi_mwi_message_wait_station’ app_voicemail.c:4819: warning: assignment makes pointer from integer without a cast app_voicemail.c:4826: warning: implicit declaration of function ‘ast_smdi_mwi_message_destroy’ app_voicemail.c: In function ‘load_config’: app_voicemail.c:10487: error: ‘ast_smdi_interface_find’ undeclared (first use in this function) app_voicemail.c:10487: error: (Each undeclared identifier is reported only once app_voicemail.c:10487: error: for each function it appears in.) app_voicemail.c:10487: warning: implicit declaration of function ‘ast_smdi_interface_find’ make[1]: *** [app_voicemail.o] Error 1 make: *** [apps] Error 2