<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: &quot;Tristan Mahé&quot; &lt;<a href="mailto:t.mahe@telemaque.fr">t.mahe@telemaque.fr</a>&gt;<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>&lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/lib/lua/5.1/?.so&quot;/&gt;</div>
        <div>   &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/lib/lua/5.1/?.lua&quot;/&gt;</div>
        <div>    &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/lib/lua/5.1/socket/?.lua&quot;/&gt;</div>
        <div>    &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/lib/lua/5.1/socket/?.so&quot;/&gt;</div>
        <div>    &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/local/share/lua/5.1/?.so&quot;/&gt;</div>
        <div>    &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/local/share/lua/5.1/?.lua&quot;/&gt;</div>
        <div>    &lt;param name=&quot;module-directory&quot;
          value=&quot;/usr/local/share/lua/5.1/xmlrpc/?.lua&quot;/&gt;</div>
      </div>
      <div>&lt;param name=&quot;startup-script&quot; value=&quot;script.lua&quot;/&gt;</div>
      <div><br>
      </div>
      <div>The script first line is:</div>
      <div><br>
      </div>
      <div>require(&quot;socket&quot;)</div>
      <div><br>
      </div>
      <div>The file  /usr/local/share/lua/5.1/socket.lua exists.
        Actually when we execute &quot;lua script.lua&quot; 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 &#39;socket&#39; from file
          &#39;/usr/local/share/lua/5.1/socket.lua&#39;:</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 &#39;require&#39;</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>