On Wed, May 17, 2006 at 11:15:29PM +0200, Clemence Magnien wrote:
> Hello,
> 
> I hope this is the right place to ask my question.
> 
> I'm trying to compile Ion2 or Ion3, and both fail with similar errors
> linked to lua. So I guess I'm doing something wrong, but I can't figure
> why, and I did not find something relating while browsing through
> the archives of this mailing list.
> 
> Compiling ion-2-20040729 fails with the following:
> /usr/bin/lua ../mkexports.lua -module ioncore -o exports.c binding.c 
> conf-bindings.c cursor.c event.c exec.c focus.c strings.c key.c modules.c 
> mwmhints.c obj.c pointer.c property.c readconfig.c screen.c signal.c 
> sizehint.c window.c ioncore.c xic.c selection.c symlist.c clientwin.c 
> colormap.c region.c eventh.c attach.c resize.c defer.c grab.c manage.c 
> readfds.c regbind.c rootwin.c tags.c names.c saveload.c genws.c genframe.c 
> genframe-pointer.c conf.c reginfo.c errorlog.c stacking.c extlconv.c 
> fullscreen.c mplex.c bindmaps.c gr.c infowin.c activity.c netwm.c objlist.c
> /usr/bin/lua: ../mkexports.lua:57: attempt to call a table value
> stack traceback:
>         ../mkexports.lua:57: in main chunk
>         [C]: ?
> make[1]: *** [exports.c] Error 1
> make[1]: Leaving directory `/home/magnien/ion-2-20040729/ioncore'
> make: *** [subdirs] Error 2

There is deprecated lua code in mkexports.lua. In the case above:

"for d, t in desc2ct do"

is deprecated since lua 5.0 and has been removed in 5.1, you habe to use an
iterator function on tables:

"for d, t in pairs(desc2ct) do"

Jürgen

Reply via email to