[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[bos-dev] [bug #40645] boswars should compile with Lua 5.2



URL:
  <http://savannah.nongnu.org/bugs/?40645>

                 Summary: boswars should compile with Lua 5.2
                 Project: Bos Wars
            Submitted by: pauld
            Submitted on: Wed 20 Nov 2013 12:30:10 AM GMT
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I am/was trying to compile boswars on Arch Linux with AUR package at:
https://aur.archlinux.org/packages/boswars-svn/

I get:
======
At revision 10083.
g++ -c engine/stratagus/script.cpp -o fbuild/release/script.o -Wall
-fsigned-char -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
-DHAVE_STRCASESTR -DHAVE_STRNLEN -DHAVE_X -Iengine/include
-Iengine/guichan/include -DUSE_VORBIS -DUSE_THEORA -DUSE_OGG -O2
engine/stratagus/script.cpp: In function 'int luatraceback(lua_State*)':
engine/stratagus/script.cpp:148:18: error: 'LUA_GLOBALSINDEX' was not declared
in this scope
lua_gettable(L, LUA_GLOBALSINDEX);
^
engine/stratagus/script.cpp: In function 'char* SaveGlobal(lua_State*,
bool)':
engine/stratagus/script.cpp:1032:19: error: 'LUA_GLOBALSINDEX' was not
declared in this scope
lua_gettable(l, LUA_GLOBALSINDEX);
^
engine/stratagus/script.cpp: In function 'void SavePreferences()':
engine/stratagus/script.cpp:1188:20: error: 'LUA_GLOBALSINDEX' was not
declared in this scope
lua_gettable(Lua, LUA_GLOBALSINDEX);
^
fabricate: 'g++' exited with status 1
=====

http://lists.opensuse.org/opensuse-factory/2012-01/msg00265.html suggest that
it could be because boswars need lua5.1 not lua5.2 

Fedora seems to have applied the following patch to build with Lua 5.2: 
http://web.archiveorange.com/archive/v/NUQmuzfEW27NeGJ82aVD

Probably, a good fix would change the function detectLua in make.py, and would
detect if the system have Lua 5.1, 5.2 or both, and define some symbols, to
allow building the program in the two cases.

That said, I don't feel I know enough to make such a contribution.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?40645>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/