Summary: | ASTERISK-09358: Asterisk fails to compile in app_amd | ||
Reporter: | seb7 (seb7) | Labels: | |
Date Opened: | 2007-05-01 05:21:55 | Date Closed: | 2011-06-07 14:03:22 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_amd |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | make clean make distclean svn update ./configure make menuselect make ... app_amd.c:310: error: conflicting types for 'ast_dsp_free' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:58: error: previous declaration of 'ast_dsp_free' was here app_amd.c:310: error: conflicting types for 'ast_dsp_free' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:58: error: previous declaration of 'ast_dsp_free' was here app_amd.c:310: warning: data definition has no type or storage class app_amd.c:312: error: syntax error before "return" {standard input}: Assembler messages: {standard input}:8435: Error: symbol `currentState' is already defined make[1]: *** [app_amd.o] Error 1 make: *** [apps] Error 2 ****** ADDITIONAL INFORMATION ****** [CC] app_alarmreceiver.c -> app_alarmreceiver.o [LD] app_alarmreceiver.o -> app_alarmreceiver.so [CC] app_amd.c -> app_amd.o app_amd.c: In function `isAnsweringMachine': app_amd.c:154: error: syntax error before '<<' token app_amd.c:157: error: syntax error before '==' token app_amd.c:91: warning: unused variable `res' app_amd.c:92: warning: unused variable `f' app_amd.c:93: warning: unused variable `silenceDetector' app_amd.c:94: warning: unused variable `dspsilence' app_amd.c:94: warning: unused variable `readFormat' app_amd.c:94: warning: unused variable `framelength' app_amd.c:95: warning: unused variable `inInitialSilence' app_amd.c:96: warning: unused variable `inGreeting' app_amd.c:97: warning: unused variable `voiceDuration' app_amd.c:98: warning: unused variable `silenceDuration' app_amd.c:99: warning: unused variable `iTotalTime' app_amd.c:100: warning: unused variable `iWordsCount' app_amd.c:101: warning: unused variable `currentState' app_amd.c:102: warning: unused variable `previousState' app_amd.c:103: warning: unused variable `consecutiveVoiceDuration' app_amd.c:104: warning: unused variable `amdCause' app_amd.c:104: warning: unused variable `amdStatus' app_amd.c: At top level: app_amd.c:170: warning: type defaults to `int' in declaration of `readFormat' app_amd.c:170: error: `chan' undeclared here (not in a function) app_amd.c:170: warning: data definition has no type or storage class app_amd.c:171: error: syntax error before "if" app_amd.c:173: error: syntax error before string constant app_amd.c:173: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:173: warning: function declaration isn't a prototype app_amd.c:173: error: conflicting types for 'pbx_builtin_setvar_helper' /usr/src/asterisk-1.4-svn/include/asterisk/pbx.h:770: error: previous declaration of 'pbx_builtin_setvar_helper' was here app_amd.c:173: error: conflicting types for 'pbx_builtin_setvar_helper' /usr/src/asterisk-1.4-svn/include/asterisk/pbx.h:770: error: previous declaration of 'pbx_builtin_setvar_helper' was here app_amd.c:173: warning: data definition has no type or storage class app_amd.c:174: error: syntax error before string constant app_amd.c:174: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:174: warning: function declaration isn't a prototype app_amd.c:174: warning: data definition has no type or storage class app_amd.c:181: error: syntax error before string constant app_amd.c:181: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:181: warning: function declaration isn't a prototype app_amd.c:181: warning: data definition has no type or storage class app_amd.c:182: error: syntax error before string constant app_amd.c:182: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:182: warning: function declaration isn't a prototype app_amd.c:182: warning: data definition has no type or storage class app_amd.c:187: warning: type defaults to `int' in declaration of `ast_dsp_set_threshold' app_amd.c:187: warning: parameter names (without types) in function declaration app_amd.c:187: error: conflicting types for 'ast_dsp_set_threshold' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:61: error: previous declaration of 'ast_dsp_set_threshold' was here app_amd.c:187: error: conflicting types for 'ast_dsp_set_threshold' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:61: error: previous declaration of 'ast_dsp_set_threshold' was here app_amd.c:187: warning: data definition has no type or storage class app_amd.c:190: error: syntax error before "while" app_amd.c:197: error: syntax error before string constant app_amd.c:197: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:197: warning: function declaration isn't a prototype app_amd.c:197: error: conflicting types for 'strcpy' app_amd.c:197: error: conflicting types for 'strcpy' app_amd.c:197: warning: data definition has no type or storage class app_amd.c:208: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:208: warning: parameter names (without types) in function declaration app_amd.c:208: error: conflicting types for 'ast_frfree' /usr/src/asterisk-1.4-svn/include/asterisk/frame.h:389: error: previous definition of 'ast_frfree' was here app_amd.c:208: warning: data definition has no type or storage class app_amd.c:209: error: syntax error before string constant app_amd.c:209: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:209: warning: function declaration isn't a prototype app_amd.c:209: warning: data definition has no type or storage class app_amd.c:210: error: syntax error before string constant app_amd.c:210: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:210: warning: function declaration isn't a prototype app_amd.c:210: error: conflicting types for 'sprintf' app_amd.c:210: note: a parameter list with an ellipsis can't match an empty parameter name list declaration app_amd.c:210: error: conflicting types for 'sprintf' app_amd.c:210: note: a parameter list with an ellipsis can't match an empty parameter name list declaration app_amd.c:210: warning: data definition has no type or storage class app_amd.c:215: warning: type defaults to `int' in declaration of `dspsilence' app_amd.c:215: warning: data definition has no type or storage class app_amd.c:216: error: syntax error before '&' token app_amd.c:216: warning: type defaults to `int' in declaration of `ast_dsp_silence' app_amd.c:216: warning: function declaration isn't a prototype app_amd.c:216: warning: data definition has no type or storage class app_amd.c:226: warning: type defaults to `int' in declaration of `currentState' app_amd.c:226: warning: data definition has no type or storage class app_amd.c:227: warning: type defaults to `int' in declaration of `consecutiveVoiceDuration' app_amd.c:227: warning: data definition has no type or storage class app_amd.c:228: error: syntax error before '}' token app_amd.c:234: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:234: warning: parameter names (without types) in function declaration app_amd.c:234: warning: data definition has no type or storage class app_amd.c:235: error: syntax error before string constant app_amd.c:235: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:235: warning: function declaration isn't a prototype app_amd.c:235: warning: data definition has no type or storage class app_amd.c:236: error: syntax error before string constant app_amd.c:236: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:236: warning: function declaration isn't a prototype app_amd.c:236: warning: data definition has no type or storage class app_amd.c:244: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:244: warning: parameter names (without types) in function declaration app_amd.c:244: warning: data definition has no type or storage class app_amd.c:245: error: syntax error before string constant app_amd.c:245: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:245: warning: function declaration isn't a prototype app_amd.c:245: warning: data definition has no type or storage class app_amd.c:246: error: syntax error before string constant app_amd.c:246: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:246: warning: function declaration isn't a prototype app_amd.c:246: warning: data definition has no type or storage class app_amd.c:260: warning: type defaults to `int' in declaration of `previousState' app_amd.c:260: error: initializer element is not constant app_amd.c:260: warning: data definition has no type or storage class app_amd.c:261: warning: type defaults to `int' in declaration of `currentState' app_amd.c:261: error: redefinition of 'currentState' app_amd.c:226: error: previous definition of 'currentState' was here app_amd.c:261: warning: data definition has no type or storage class app_amd.c:262: error: syntax error before '}' token app_amd.c:267: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:267: warning: parameter names (without types) in function declaration app_amd.c:267: warning: data definition has no type or storage class app_amd.c:268: error: syntax error before string constant app_amd.c:268: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:268: warning: function declaration isn't a prototype app_amd.c:268: warning: data definition has no type or storage class app_amd.c:269: error: syntax error before string constant app_amd.c:269: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:269: warning: function declaration isn't a prototype app_amd.c:269: warning: data definition has no type or storage class app_amd.c:276: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:276: warning: parameter names (without types) in function declaration app_amd.c:276: warning: data definition has no type or storage class app_amd.c:277: error: syntax error before string constant app_amd.c:277: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:277: warning: function declaration isn't a prototype app_amd.c:277: warning: data definition has no type or storage class app_amd.c:278: error: syntax error before string constant app_amd.c:278: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:278: warning: function declaration isn't a prototype app_amd.c:278: warning: data definition has no type or storage class app_amd.c:284: warning: type defaults to `int' in declaration of `inInitialSilence' app_amd.c:284: warning: data definition has no type or storage class app_amd.c:285: warning: type defaults to `int' in declaration of `inGreeting' app_amd.c:285: warning: data definition has no type or storage class app_amd.c:286: error: syntax error before '}' token app_amd.c:290: warning: type defaults to `int' in declaration of `ast_frfree' app_amd.c:290: warning: parameter names (without types) in function declaration app_amd.c:290: warning: data definition has no type or storage class app_amd.c:291: error: syntax error before '}' token app_amd.c:297: error: syntax error before string constant app_amd.c:297: warning: type defaults to `int' in declaration of `strcpy' app_amd.c:297: warning: function declaration isn't a prototype app_amd.c:297: warning: data definition has no type or storage class app_amd.c:298: error: syntax error before string constant app_amd.c:298: warning: type defaults to `int' in declaration of `sprintf' app_amd.c:298: warning: function declaration isn't a prototype app_amd.c:298: warning: data definition has no type or storage class app_amd.c:302: error: syntax error before string constant app_amd.c:302: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:302: warning: function declaration isn't a prototype app_amd.c:302: warning: data definition has no type or storage class app_amd.c:303: error: syntax error before string constant app_amd.c:303: warning: type defaults to `int' in declaration of `pbx_builtin_setvar_helper' app_amd.c:303: warning: function declaration isn't a prototype app_amd.c:303: warning: data definition has no type or storage class app_amd.c:310: warning: type defaults to `int' in declaration of `ast_dsp_free' app_amd.c:310: warning: parameter names (without types) in function declaration app_amd.c:310: error: conflicting types for 'ast_dsp_free' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:58: error: previous declaration of 'ast_dsp_free' was here app_amd.c:310: error: conflicting types for 'ast_dsp_free' /usr/src/asterisk-1.4-svn/include/asterisk/dsp.h:58: error: previous declaration of 'ast_dsp_free' was here app_amd.c:310: warning: data definition has no type or storage class app_amd.c:312: error: syntax error before "return" {standard input}: Assembler messages: {standard input}:8435: Error: symbol `currentState' is already defined make[1]: *** [app_amd.o] Error 1 make: *** [apps] Error 2 [root@IVRA3 asterisk-1.4-svn]# | ||
Comments: | By: Russell Bryant (russell) 2007-05-01 11:10:02 By the looks of the error messages, it looks like you had a conflict when you updated. Do you have local changes to the code? Try "svn revert apps/app_amd.c" and then build again. By: seb7 (seb7) 2007-05-01 11:27:10 Ah, there are a couple of minor changes to the code! I forgot that one of our developers had done some work about 6 months ago on this server trying to track down some memory leaks and IAX destroy deadlock issues: [root@IVRA3 asterisk-1.4-svn]# svn diff Index: channels/chan_iax2.c =================================================================== --- channels/chan_iax2.c (revision 62494) +++ channels/chan_iax2.c (working copy) @@ -1742,7 +1742,7 @@ if (owner) { if (ast_mutex_trylock(&owner->lock)) { - ast_log(LOG_NOTICE, "Avoiding IAX destroy deadlock\n"); + ast_log(LOG_NOTICE, "Avoiding IAX destroy deadlock, Callno %d\n", callno); ast_mutex_unlock(&iaxsl[callno]); usleep(1); ast_mutex_lock(&iaxsl[callno]); Index: apps/app_amd.c =================================================================== --- apps/app_amd.c (revision 62494) +++ apps/app_amd.c (working copy) @@ -151,8 +151,13 @@ maximumNumberOfWords = atoi(args.argMaximumNumberOfWords); if (!ast_strlen_zero(args.argSilenceThreshold)) silenceThreshold = atoi(args.argSilenceThreshold); +<<<<<<< .mine + } else + ast_log(LOG_DEBUG, "AMD using the default parameters.\n"); +======= } else if (option_debug) ast_log(LOG_DEBUG, "AMD using the default parameters.\n"); +>>>>>>> .r62494 /* Now we're ready to roll! */ if (option_verbose > 2) [root@IVRA3 asterisk-1.4-svn]# What are these: >>>>>>> .r62494 ? Did svn mark them as a conflict or something? By: Russell Bryant (russell) 2007-05-01 11:28:42 yes, svn marked them as conflicts. You will have to resolve them manually, or revert the changes with "svn revert". |