<div class="gmail_quote"><div>Hello Tristan</div><div><br></div><div>CentOS 5, 64 bits</div><div><br></div><div>Thanks!</div><div><br></div><div>Javi</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
---------- Forwarded message ----------<br>From: "Tristan Mahé" <<a href="mailto:t.mahe@telemaque.fr">t.mahe@telemaque.fr</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Date: Tue, 10 May 2011 14:30:48 +0200<br>Subject: Re: [Freeswitch-users] invalid ELF header error in lua startup script<br>
<div bgcolor="#ffffff" text="#000000">
32bit module on a 64bit system or the opposite ?<br>
<br>
Le 10/05/2011 13:09, Javier Gallart a écrit :
<blockquote type="cite">Hello,
<div><br>
</div>
<div>we have a lua script that we want to use as startup script in
order to start listening for events as soon as FS starts. This
is the configuration:</div>
<div>
<div><br>
</div>
<div><param name="module-directory"
value="/usr/lib/lua/5.1/?.so"/></div>
<div> <param name="module-directory"
value="/usr/lib/lua/5.1/?.lua"/></div>
<div> <param name="module-directory"
value="/usr/lib/lua/5.1/socket/?.lua"/></div>
<div> <param name="module-directory"
value="/usr/lib/lua/5.1/socket/?.so"/></div>
<div> <param name="module-directory"
value="/usr/local/share/lua/5.1/?.so"/></div>
<div> <param name="module-directory"
value="/usr/local/share/lua/5.1/?.lua"/></div>
<div> <param name="module-directory"
value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/></div>
</div>
<div><param name="startup-script" value="script.lua"/></div>
<div><br>
</div>
<div>The script first line is:</div>
<div><br>
</div>
<div>require("socket")</div>
<div><br>
</div>
<div>The file /usr/local/share/lua/5.1/socket.lua exists.
Actually when we execute "lua script.lua" it runs properly. But
this is the freeswitch log at startup:</div>
<div>
<div>2011-05-10 07:00:31.281411 [ERR] mod_lua.cpp:191 error
loading module 'socket' from file
'/usr/local/share/lua/5.1/socket.lua':</div>
<div><span style="white-space:pre-wrap"> </span>/usr/local/share/lua/5.1/socket.lua:
invalid ELF header</div>
<div>stack traceback:</div>
<div><span style="white-space:pre-wrap"> </span>[C]:
?</div>
<div><span style="white-space:pre-wrap"> </span>[C]:
in function 'require'</div>
<div><span style="white-space:pre-wrap"> </span>/usr/local/freeswitch/scripts/script.lua:1:
in main chunk</div>
</div>
<div><br>
</div>
<div>Has anyone gone over the same issue? We tried with the latest
git.</div>
<div><br>
</div>
<div>Thanks in advance</div>
<div><br>
</div>
<div>Javi</div>
<pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div>
<br><br></blockquote></div>