It does compile okay after changing to a c99 compiler. The "c99"
compiler from Solaris Studio 12.3 compiles with no warnings. The
bundled gcc (version 3.4.3 plus patches) produces some warnings but
in my experience that is not unexpected from an older gcc. Using a
locally built gcc 4.8.1 produces only one warning, listed below,
which may be an artifact of compiling in c99 mode.
Just to check: "The bundled gcc" means using Lua out of the package,
only adding "-std=gnu99" to SYSCFLAGS? Does "-std=c99" work too?