./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
|