Opened 11 years ago

Closed 11 years ago

#41846 closed defect (fixed)

lua-luaexpat: error: array type has incomplete element type

Reported by: rudloff@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nerdling (Jeremy Lavergne)
Port: lua-luaexpat

Description

src/lxplib.c: In function ‘lxpclose’:
src/lxplib.c:69: warning: implicit declaration of function ‘lua_unref’
src/lxplib.c:69: warning: nested extern declaration of ‘lua_unref’
src/lxplib.c: In function ‘f_ExternaEntity’:
src/lxplib.c:228: warning: implicit declaration of function ‘lua_getref’
src/lxplib.c:228: warning: nested extern declaration of ‘lua_getref’
src/lxplib.c: At top level:
src/lxplib.c:500: error: array type has incomplete element type
src/lxplib.c:512: error: array type has incomplete element type
src/lxplib.c: In function ‘luaopen_lxp’:
src/lxplib.c:539: warning: implicit declaration of function ‘luaL_openlib’
src/lxplib.c:539: warning: nested extern declaration of ‘luaL_openlib’

Attachments (2)

main.log (10.5 KB) - added by rudloff@… 11 years ago.
lua-luaexpat.diff (2.4 KB) - added by nerdling (Jeremy Lavergne) 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by rudloff@…

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Error: org.macports.build for port lua-luaexpat returned: command execution failedlua-luaexpat: error: array type has incomplete element type

comment:2 Changed 11 years ago by dbevans (David B. Evans)

This is indicative of a lua 5.2 API incompatibility issue. This version of the port only supports lua 5.1.

Current upstream repository http://code.matthewwild.co.uk/lua-expat is at version 1.3.0 and purports to support lua 5.2.

Required by libquvi-scripts (#42520).

comment:3 Changed 11 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

Changed 11 years ago by nerdling (Jeremy Lavergne)

Attachment: lua-luaexpat.diff added

comment:4 Changed 11 years ago by nerdling (Jeremy Lavergne)

I've attached an update to 1.2.0, as I cannot find 1.3.0.

1.2.0 continues to have issues, which is unsurprising since there have been no tags or releases of Lua 5.2 compatibility work.

The unknown luaL_reg is defined in lua's lauxlib.h and #included in src/lxplib.c, so I'm not sure why the compiler is bailing.

src/lxplib.c:520:39: error: array has incomplete element type 'const struct luaL_reg'
static const struct luaL_reg lxp_meths[] = {
                                      ^
src/lxplib.c:520:21: note: forward declaration of 'struct luaL_reg'
static const struct luaL_reg lxp_meths[] = {
                    ^
src/lxplib.c:533:39: error: array has incomplete element type 'const struct luaL_reg'
static const struct luaL_reg lxp_funcs[] = {
                                      ^
src/lxplib.c:520:21: note: forward declaration of 'struct luaL_reg'
static const struct luaL_reg lxp_meths[] = {
                    ^

comment:5 Changed 11 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed
Version: 2.2.1

There was a case discrepancy: luaL_reg versus luaL_Reg. Thanks for geekosaur for finding.

Updated to 1.2.0 in r117743.

Since this now builds against Lua 5.2, I'll mark as closed.

Note: See TracTickets for help on using tickets.