Issue625

Title does not build with lua 5.2.1
Priority critical Status resolved
Assigned To fluzz Keywords
Linked issues Watchers fluzz, shirishag75

Submitted on 2012-12-16 13h06 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2012-12-16   13h06
./autogen.sh ; ./configure ; make    fails with lua 5.2.1-3 (arch linux) installed.

./configure --with-embedded-lua works however.

make output when ./configure is used:

...
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT freedroidRPG-event.o -MD
-MP -MF .deps/freedroidRPG-event.Tpo -c -o freedroidRPG-event.o `test -f
'event.c' || echo './'`event.c
mv -f .deps/freedroidRPG-event.Tpo .deps/freedroidRPG-event.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT freedroidRPG-dynarray.o -MD
-MP -MF .deps/freedroidRPG-dynarray.Tpo -c -o freedroidRPG-dynarray.o `test -f
'dynarray.c' || echo './'`dynarray.c
mv -f .deps/freedroidRPG-dynarray.Tpo .deps/freedroidRPG-dynarray.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT
freedroidRPG-item_upgrades.o -MD -MP -MF .deps/freedroidRPG-item_upgrades.Tpo -c
-o freedroidRPG-item_upgrades.o `test -f 'item_upgrades.c' || echo
'./'`item_upgrades.c
mv -f .deps/freedroidRPG-item_upgrades.Tpo .deps/freedroidRPG-item_upgrades.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT
freedroidRPG-item_upgrades_ui.o -MD -MP -MF
.deps/freedroidRPG-item_upgrades_ui.Tpo -c -o freedroidRPG-item_upgrades_ui.o
`test -f 'item_upgrades_ui.c' || echo './'`item_upgrades_ui.c
mv -f .deps/freedroidRPG-item_upgrades_ui.Tpo .deps/freedroidRPG-item_upgrades_ui.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT
freedroidRPG-addon_crafting_ui.o -MD -MP -MF
.deps/freedroidRPG-addon_crafting_ui.Tpo -c -o freedroidRPG-addon_crafting_ui.o
`test -f 'addon_crafting_ui.c' || echo './'`addon_crafting_ui.c
mv -f .deps/freedroidRPG-addon_crafting_ui.Tpo
.deps/freedroidRPG-addon_crafting_ui.Po
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2  -Wall -Wno-format-zero-length 
-DFD_DATADIR='"/usr/local/share/freedroidrpg"' -ffast-math    
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -MT freedroidRPG-lua.o -MD -MP
-MF .deps/freedroidRPG-lua.Tpo -c -o freedroidRPG-lua.o `test -f 'lua.c' || echo
'./'`lua.c
lua.c: In function ‘resume_lua_coroutine’:
lua.c:1308:2: error: too few arguments to function ‘lua_resume’
In file included from struct.h:32:0,
                 from lua.c:32:
/usr/include/lua.h:269:13: note: declared here
lua.c: In function ‘init_lua’:
lua.c:1355:2: warning: implicit declaration of function ‘lua_open’
[-Wimplicit-function-declaration]
lua.c:1355:19: warning: assignment makes pointer from integer without a cast
[enabled by default]
lua.c:1357:19: warning: assignment makes pointer from integer without a cast
[enabled by default]
lua.c: In function ‘reset_lua_state’:
lua.c:1380:19: warning: assignment makes pointer from integer without a cast
[enabled by default]
lua.c: In function ‘write_lua_variables’:
lua.c:1404:21: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function)
lua.c:1404:21: note: each undeclared identifier is reported only once for each
function it appears in
make[2]: *** [freedroidRPG-lua.o] Error 1
make[2]: Leaving directory `/home/matthias/vcs/git/freedroid/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matthias/vcs/git/freedroid'
make: *** [all] Error 2



commit 0ef9a739f73e8ec64d220d8cff8f155a074f2f0f
Author: ahuillet Date: 2012-12-16   13h22
See http://stackoverflow.com/questions/10087226/lua-5-2-lua-globalsindex-alternative
Author: matthiaskrgr Date: 2013-02-02   13h13
Fluzz had the idea to, after fdrpg has been made working with 5.2, update the
lua which is shipped to 5.2 so that distros which still have 5.1 can be compiled
on via ./configure --with-embedded-lua.
Author: matthiaskrgr Date: 2013-02-06   19h34
Fixed with 05da99ca4c45f716add21cd156711d986b7198c6 and
4814c206ca9ebbbd87f06f3afa32bbcb0324ea54 .
History
Date User Action Args
2013-02-06 19:34:52matthiaskrgrsetstatus: open -> resolved
assignedto: fluzz
messages: + msg2420
nosy: + fluzz
2013-02-02 13:13:08matthiaskrgrsetmessages: + msg2408
2013-01-01 00:08:17shirishag75setnosy: + shirishag75
2012-12-16 13:22:50ahuilletsetmessages: + msg2383
2012-12-16 13:06:27matthiaskrgrcreate