Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296697 - games-roguelike/crossfire-client-1.12.0 fails to build due to implicit declaration when Lua >= 5.1 is installed
Summary: games-roguelike/crossfire-client-1.12.0 fails to build due to implicit declar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 06:29 UTC by Tim Hentenaar
Modified: 2009-12-22 01:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against crossfire-client-1.12.0 to fix the issue. (crossfire-client-1.12.0.lauxlib.patch,568 bytes, patch)
2009-12-13 06:29 UTC, Tim Hentenaar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Hentenaar 2009-12-13 06:29:15 UTC
This package fails to build (see additional info) because it fails to include lauxlib.h which declares luaL_newstate() in Lua >= 5.1, yet calls lua_open() which is #defined to luaL_newstate().

I've already reported this upstream, and sent a patch: https://sourceforge.net/tracker/?func=detail&aid=2913553&group_id=13833&atid=313833



Reproducible: Always

Steps to Reproduce:
1. emerge =games-roguelike/crossfire-client-1.12.0
2.
3.

Actual Results:  
* QA Notice: Package has poor programming practices which may compile
*            fine but exhibit random runtime failures.
* script_lua.c:247: warning: implicit declaration of function luaL_newstate
* 
* QA Notice: Package has poor programming practices which may compile
*            but will almost certainly crash on 64bit architectures.
* 
* Function `luaL_newstate' implicitly converted to pointer at script_lua.c:247
* 
*  Please file a bug about this at http://bugs.gentoo.org/
*  with the maintaining herd of the package.

Expected Results:  
Installation of the package.
Comment 1 Tim Hentenaar 2009-12-13 06:29:49 UTC
Created attachment 212853 [details, diff]
Patch against crossfire-client-1.12.0 to fix the issue.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-12-22 01:05:54 UTC
in portage.  thanks for the bug report and patch.