Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498124 - dev-lua/luaexpat-1.2.0-r1 with =dev-lang/lua-5.2*: src/lxplib.c:520:30: error: array type has incomplete element type
Summary: dev-lua/luaexpat-1.2.0-r1 with =dev-lang/lua-5.2*: src/lxplib.c:520:30: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lua-5.2
  Show dependency tree
 
Reported: 2014-01-15 04:46 UTC by Isaac ‘Will It Work’ Dansicker
Modified: 2020-09-01 15:18 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,3.09 KB, text/plain)
2014-01-15 04:46 UTC, Isaac ‘Will It Work’ Dansicker
Details
emerge --info (file_498124.txt,5.59 KB, text/plain)
2014-01-15 04:52 UTC, Isaac ‘Will It Work’ Dansicker
Details
The patch from the luaexpat repository (e981a82571cf.patch.1,5.56 KB, text/plain)
2014-02-23 21:56 UTC, Stefan Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac ‘Will It Work’ Dansicker 2014-01-15 04:46:01 UTC
Created attachment 367874 [details]
build.log

Attempting to emerge luaexpat, starts to compile, fails on first object:

src/lxplib.c:520:30: error: array type has incomplete element type
 static const struct luaL_reg lxp_meths[] = {
                              ^
src/lxplib.c:533:30: error: array type has incomplete element type
 static const struct luaL_reg lxp_funcs[] = {
                              ^
<builtin>: recipe for target 'src/lxplib.o' failed
make: *** [src/lxplib.o] Error 1

emerge -pqv '=dev-lua/luaexpat-1.2.0-r1::gentoo' gives:
[ebuild  N    ] dev-lua/luaexpat-1.2.0-r1
Comment 1 Isaac ‘Will It Work’ Dansicker 2014-01-15 04:52:02 UTC
Created attachment 367876 [details]
emerge --info

Please note using Hardened kernel with grsecurity disabled, and LTO and graphite disabled on package as well.
Comment 2 Alex Xu (Hello71) 2014-01-17 02:09:33 UTC
Please try again using reasonable CFLAGS.

https://wiki.gentoo.org/wiki/Safe_CFLAGS
Comment 3 Alex Xu (Hello71) 2014-01-17 02:11:21 UTC
Never mind, I can't read.
Comment 4 Isaac ‘Will It Work’ Dansicker 2014-01-17 02:15:54 UTC
This may be an upstream issue?
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-30 09:43:36 UTC
This is fixed in the upstream repository. Unfortunately there's no release yet containing the fix.
Comment 6 Stefan Huber 2014-02-23 21:56:03 UTC
Created attachment 371142 [details]
The patch from the luaexpat repository

This is the patch from commit e981a82571cf of http://code.matthewwild.co.uk/lua-expat/rev/e981a82571cf, which fixes the failing compilation against lua-5.2. In the meanwhile, you can place it into /etc/portage/package.patches/dev-lua/luaexpat/, assuming you have set up package.patches accordingly.
Comment 7 Marek Szuba archtester gentoo-dev 2020-09-01 15:18:07 UTC
Version 1.3.3 builds fine against both 5.2 and 5.3.