[Freeswitch-users] invalid ELF header error in lua startup script

Tristan Mahé t.mahe at telemaque.fr
Tue May 10 16:30:48 MSD 2011


32bit module on a 64bit system or the opposite ?

Le 10/05/2011 13:09, Javier Gallart a écrit :
> Hello,
>
> 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:
>
> <param name="module-directory" value="/usr/lib/lua/5.1/?.so"/>
> <param name="module-directory" value="/usr/lib/lua/5.1/?.lua"/>
> <param name="module-directory" value="/usr/lib/lua/5.1/socket/?.lua"/>
> <param name="module-directory" value="/usr/lib/lua/5.1/socket/?.so"/>
> <param name="module-directory" value="/usr/local/share/lua/5.1/?.so"/>
> <param name="module-directory" value="/usr/local/share/lua/5.1/?.lua"/>
> <param name="module-directory" 
> value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/>
> <param name="startup-script" value="script.lua"/>
>
> The script first line is:
>
> require("socket")
>
> 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:
> 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':
> /usr/local/share/lua/5.1/socket.lua: invalid ELF header
> stack traceback:
> [C]: ?
> [C]: in function 'require'
> /usr/local/freeswitch/scripts/script.lua:1: in main chunk
>
> Has anyone gone over the same issue? We tried with the latest git.
>
> Thanks in advance
>
> Javi
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110510/b829640b/attachment.html 


More information about the FreeSWITCH-users mailing list