[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Problem compiling LNUM patch and Lua 5.1.4
- From: dcharno@...
- Date: Thu, 17 Dec 2009 18:41:18 +0000 (UTC)
Has anyone else had problems compiling Lua 5.1.4 with the LNUM patch?
I have lua514-lnum-20090417.patch from Luaforge and Lua 5.1.4 right from lua.org and it fails:
gcc -O2 -Wall -DLUA_USE_LINUX -c -o ltable.o ltable.c
ltable.c: In function ‘luaH_get’:
ltable.c:588: error: case label not within a switch statement
ltable.c:590: error: break statement not within loop or switch
ltable.c:574: warning: unused variable ‘n’
ltable.c: At top level:
ltable.c:599: warning: data definition has no type or storage class
ltable.c:599: warning: type defaults to ‘int’ in declaration of ‘n’
ltable.c:599: error: ‘t’ undeclared here (not in a function)
ltable.c:599: error: ‘key’ undeclared here (not in a function)
ltable.c:599: warning: initialization makes integer from pointer without a cast
ltable.c:599: error: initializer element is not constant
ltable.c:600: error: expected identifier or ‘(’ before ‘do’
ltable.c:604: error: expected identifier or ‘(’ before ‘while’
ltable.c:605: error: expected identifier or ‘(’ before ‘return’
ltable.c:606: error: expected identifier or ‘(’ before ‘}’ token
The closing brace should be within the #ifdef LUA_TINIT. Its simple to fix, but it makes me wonder if there is something else lurking.
Here are the md5sums of the lnum patch and Lua if that helps:
46f9c5a180c03ca704a715caea348e28 lua514-lnum-20090417.patch
d0870f2de55d59c1c8419f36e8fac150 lua-5.1.4.tar.gz