Bug 6580

Summary: missing lua_call function
Product: Mageia Reporter: Guillaume Rousse <guillomovitch>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal CC: blue_prawn, shikamaru, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: lua CVE:
Status comment:

Description Guillaume Rousse 2012-06-26 10:16:28 CEST
[guillaume@beria lua]$ objdump -T /usr/lib64/liblua.so.5.2  | grep  lua_call
0000000000008fa0 g    DF .text    000000000000007b  Base        lua_callk 

It breaks building of all applications requiring lua, as configure test fail:

/tmp/ccZEby7U.o: In function `main':
/home/guillaume/work/mageia/cauldron/rrdtool/BUILD/rrdtool-1.4.7/conftest.c:127: undefined reference to `lua_call'
collect2: ld returned 1 exit status
Manuel Hiebel 2012-06-26 11:17:29 CEST

CC: (none) => blue_prawn, shikamaru, thierry.vignaud

Comment 1 Thierry Vignaud 2012-06-26 14:12:13 CEST
You've a build issue: there's no lua_call anymore in lua5.2:
usr/include/lua.h:#define lua_call(L,n,r)               lua_callk(L, (n), (r), 0, NULL)

lua_call() only exists up to lua-5.1.
I guess you missed sg like:

foobar.c:21:5: warning: implicit declaration of function âlua_callâ [-Wimplicit-function-declaration]

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 2 Guillaume Rousse 2012-06-26 17:49:57 CEST
Ouch... I didn't see anything related in Lua 5.2 release notes :(

OK, let's use lua5.1 for non-compatible applications.