[asterisk-bugs] [JIRA] (ASTERISK-23293) Testsuite asttest doesn't compile with Lua 5.2

Alexander Traud (JIRA) noreply at issues.asterisk.org
Thu Jun 7 11:32:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243737#comment-243737 ] 

Alexander Traud commented on ASTERISK-23293:
--------------------------------------------

Just as a note to the curious reader who comes by:
lua-socket, lua-filesystem, and lua-posix are external projects which are still maintained (and Lua 5.3 compatible by now). Some distributions even have them pre-packaged. ‘Just’ asttest itself would need an upgrade. Anyway with some changes, asttest still works in Fedora today as described in ASTERISK-27904.

> Testsuite asttest doesn't compile with Lua 5.2
> ----------------------------------------------
>
>                 Key: ASTERISK-23293
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23293
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/testsuite
>    Affects Versions: 1.8.8.2
>         Environment: Fedora 20 x86_64
> Name        : lua
> Arch        : x86_64
> Version     : 5.2.2
> Release     : 5.fc20
>            Reporter: George Joseph
>            Severity: Minor
>
> asttest fails to compile against Lua 5.2
> {code}
> $ make
> cc -g -D_GNU_SOURCE -Wall `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -Iinclude   -c -o asttest.o asttest.c
> make -C lib/lua/luafilesystem-1.4.2
> make[1]: Entering directory `/usr/src/asterisk/testsuite/asttest/lib/lua/luafilesystem-1.4.2'
> gcc -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null`   -c -o src/lfs.o src/lfs.c
> src/lfs.c:680:30: error: array type has incomplete element type
>  static const struct luaL_reg fslib[] = {
>                               ^
> src/lfs.c:680:30: warning: ‘fslib’ defined but not used [-Wunused-variable]
> make[1]: *** [src/lfs.o] Error 1
> make[1]: Leaving directory `/usr/src/asterisk/testsuite/asttest/lib/lua/luafilesystem-1.4.2'
> make: *** [lib/lua/luafilesystem-1.4.2/src/lfs.o] Error 2
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list