<div dir="ltr">If you go to current issues with that latest Lumenvox release: <a href="http://www.lumenvox.com/help/speechEngineAsterisk/installation/current-issues.htm" target="_blank">http://www.lumenvox.com/help/speechEngineAsterisk/installation/current-issues.htm</a><br>
You will see they provided a fix to adjust the loader.c file in the Asterisk source code.<br><br>I went ahead and downloaded the lastest Source code using the following link:<br><a href="http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz" target="_blank">http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz</a><br>
<br>I then editied the file Exactly as instructed, I am including a snippet of that files AFTER adding the Lumenvox fix<br><br>In fact I am pasting before some of the code that comes before as well as after just in case the instructions were incorrect and that the IF statement needs to be modified or placed elsewhere<br>
<br> wants_global = ast_test_flag(mod->info, AST_MODFLAG_GLOBAL_SYMBOLS);<br><br> /* if we are being asked only to load modules that provide global symbols,<br> and this one does not, then close it and return */<br>
if (global_symbols_only && !wants_global) {<br> while (!dlclose(lib));<br> return NULL;<br> }<br> <br> if ( !strcmp(resource, "res_speech_lumenvox.so") )<br> {<br> ast_log(LOG_NOTICE, "sleeping 2 seconds before loading module %s.\n", resource);<br>
sleep(2);<br> }<br> <br> /* if the system supports RTLD_NOLOAD, we can just 'promote' the flags<br> on the already-opened library to what we want... if not, we have to<br> close it and start over<br>
*/<br>#if defined(HAVE_RTLD_NOLOAD) && !defined(__Darwin__)<br> if (!dlopen(fn, RTLD_NOLOAD | (wants_global ? RTLD_LAZY | RTLD_GLOBAL : RTLD_NOW | RTLD_LOCAL))) {<br> ast_log(LOG_WARNING, "Unable to promote flags on module '%s': %s\n", resource_in, dlerror());<br>
while (!dlclose(lib));<br> free(resource_being_loaded);<br> return NULL;<br> }<br>#else<br> while (!dlclose(lib));<br> resource_being_loaded = NULL;<br><br> /* start the load process again */<br>
<br> if (!(resource_being_loaded = ast_calloc(1, sizeof(*resource_being_loaded) + strlen(resource) + 1)))<br> return NULL;<br><br> strcpy(resource_being_loaded->resource, resource);<br><br> if (!(lib = dlopen(fn, wants_global ? RTLD_LAZY | RTLD_GLOBAL : RTLD_NOW | RTLD_LOCAL))) {<br>
ast_log(LOG_WARNING, "Error loading module '%s': %s\n", resource_in, dlerror());<br> free(resource_being_loaded);<br> return NULL;<br> }<br><br> /* since the module was successfully opened, and it registered itself<br>
the previous time we did that, we're going to assume it worked this<br> time too :) */<br>#endif<br><br> AST_LIST_LAST(&module_list)->lib = lib;<br> resource_being_loaded = NULL;<br><br> return AST_LIST_LAST(&module_list);<br>
}<br><br><br>After changing this I went to proceed with compiling<br><br>I went ahead and downloaded all the utilities needed to compile yum install automake gcc-c++ autoconf libtool<br><br>Then I do a ./confgure no problems<br>
Then I do a make, no problems<br>as soon as I do either make install or make bininstall (tried this as well on a seperate machine)<br><br>I get a ton of errors which go on forever, but the following is the very end where it quits<br>
<br>no such parameter<br>/usr/include/bits/types.h:45: error: declaration for parameter â__uint32_tâ but no such parameter<br>/usr/include/bits/types.h:44: error: declaration for parameter â__int32_tâ but n o such parameter<br>
/usr/include/bits/types.h:43: error: declaration for parameter â__uint16_tâ but no such parameter<br>/usr/include/bits/types.h:42: error: declaration for parameter â__int16_tâ but n o such parameter<br>
/usr/include/bits/types.h:41: error: declaration for parameter â__uint8_tâ but n o such parameter<br>/usr/include/bits/types.h:40: error: declaration for parameter â__int8_tâ but no such parameter<br>/usr/include/bits/types.h:37: error: declaration for parameter â__u_longâ but no such parameter<br>
/usr/include/bits/types.h:36: error: declaration for parameter â__u_intâ but no such parameter<br>/usr/include/bits/types.h:35: error: declaration for parameter â__u_shortâ but n o such parameter<br>/usr/include/bits/types.h:34: error: declaration for parameter â__u_charâ but no such parameter<br>
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h:214: error: declaration fo r parameter âsize_tâ but no such parameter<br>loader.c:1007: error: expected â{â at end of input<br>make[1]: *** [loader.o] Error 1<br>
make[1]: Leaving directory `/usr/src/asterisk-1.4.22/main'<br>make: *** [main-install] Error 2<br><br><br>Any ideas??? This is with the latest Bridge B22, following every direction in Lumenvox as well as using Asterisk 1.4 and lumenvox 8.5 Engine<br>
<br>NOTE:<br>Btw, if I remove the modification specified in by Lumenvox in the loader.c file, everything works with make install<br><br><br>I have also attached a zip file containing my loader.c file just in case (this is with the lumenvox modification to fix the Asterisk restarting problem)<br>
<br>Any help would be very appreciated<br><br></div>