<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    32bit module on a 64bit system or the opposite ?<br>
    <br>
    Le 10/05/2011 13:09, Javier Gallart a &eacute;crit&nbsp;:
    <blockquote
      cite="mid:BANLkTim+bhpk-bcUNqdVRkrUGuTcqSB+FA@mail.gmail.com"
      type="cite">Hello,&nbsp;
      <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="module-directory"
          value="/usr/lib/lua/5.1/?.so"/&gt;</div>
        <div>&nbsp; &nbsp;&lt;param name="module-directory"
          value="/usr/lib/lua/5.1/?.lua"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;param name="module-directory"
          value="/usr/lib/lua/5.1/socket/?.lua"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;param name="module-directory"
          value="/usr/lib/lua/5.1/socket/?.so"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;param name="module-directory"
          value="/usr/local/share/lua/5.1/?.so"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;param name="module-directory"
          value="/usr/local/share/lua/5.1/?.lua"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;param name="module-directory"
          value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/&gt;</div>
      </div>
      <div>&lt;param name="startup-script" value="script.lua"/&gt;</div>
      <div><br>
      </div>
      <div>The script first line is:</div>
      <div><br>
      </div>
      <div>require("socket")</div>
      <div><br>
      </div>
      <div>The file&nbsp;&nbsp;/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 class="Apple-tab-span" style="white-space: pre;"> </span>/usr/local/share/lua/5.1/socket.lua:
          invalid ELF header</div>
        <div>stack traceback:</div>
        <div><span class="Apple-tab-span" style="white-space: pre;"> </span>[C]:
          ?</div>
        <div><span class="Apple-tab-span" style="white-space: pre;"> </span>[C]:
          in function 'require'</div>
        <div><span class="Apple-tab-span" style="white-space: pre;"> </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 wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
  </body>
</html>