Error building openlitespeed-1.4.7 with LuaJIT-2.0.3 [Solved]

#1
Need a little help guys.
I've searched everywhere, no clues.

CentOS 7.1
Openlitespeed 1.4.7 beta
LuaJIT 2.0.3

Code:
./configure --with-libdir=lib --enable-http2 --enable-spdy --with-zlib=/usr/local/src/server-src/zlib --with-openssl=/usr/local/src/server-src/staticlibssl --with-pcre=/usr/local/src/server-src/pcre --with-lua=/usr/local/src/server-src/LuaJIT-2.0.3/src
 

lsfoo

Administrator
#2
Hi bortrenamo,

Please apply this patch or follow the instructions below it and reconfigure and compile again. If a different issue pops up, let me know.

If you installed via the rpm, I will let someone know of this issue so that it can be fixed asap, but I'm not sure how long it'll take to be updated on the rpm.

If you are savvy with the command line and are willing to try it, you can download the source, update the code immediately, and install that way.

Hope this helps,
Kevin

diff --git src/modules/lua/Makefile.am src/modules/lua/Makefile.am
index c0d85bb..a1df7ea 100644
--- src/modules/lua/Makefile.am
+++ src/modules/lua/Makefile.am
@@ -7,7 +7,7 @@ INCLUDES= -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(LUA_INCLUDES)

mod_lua_la_METASOURCES= AUTO

-+mod_lua_la_SOURCES=lsluaengine.cpp edluastream.cpp lsluaapi.cpp \
+mod_lua_la_SOURCES=lsluaengine.cpp edluastream.cpp lsluaapi.cpp \
lsluasession.cpp lsluaheader.cpp lsluashared.cpp lsluaregex.cpp modlua.cpp

-#noinst_HEADERS =
+#noinst_HEADERS =

Or, if you'd rather not apply patches:
In the download directory, in src/modules/lua/Makefile.am
There should be a line that looks like this:
+mod_lua_la_SOURCES=lsluaengine.cpp edluastream.cpp lsluaapi.cpp \
Just delete that '+' and save.
 
#3
Took the easy way..

Or, if you'd rather not apply patches:
In the download directory, in src/modules/lua/Makefile.am
There should be a line that looks like this:
+mod_lua_la_SOURCES=lsluaengine.cpp edluastream.cpp lsluaapi.cpp \
Just delete that '+' and save.


no joy.
 

lsfoo

Administrator
#4
Hi bortrenamo,

Hmm, thanks for this. Hopefully this will be the end of the issues.

In src/modules/lua/lsluadefs.h, there should be a couple lines near the top that say:

#include <luajit-2.0/luajit.h>
#include <luajit-2.0/lauxlib.h>

Change them to:

#include <luajit.h>
#include <lauxlib.h>

Again, after the change, reconfigure and compile again.

Kevin
 
#5
In the download directory, in src/modules/lua/Makefile.am
There should be a line that looks like this:
+mod_lua_la_SOURCES=lsluaengine.cpp edluastream.cpp lsluaapi.cpp \
Just delete that '+' and save.
In src/modules/lua/lsluadefs.h, there should be a couple lines near the top that say:

#include <luajit-2.0/luajit.h>
#include <luajit-2.0/lauxlib.h>

Change them to:

#include <luajit.h>
#include <lauxlib.h>
That did the trick. Thanks @lsfoo /Kevin.
I will continue testing.
 

lsfoo

Administrator
#6
Awesome!

Please, do let me know if there are any more problems, or even problems specifically related to the Lua integration.

I wrote that part, so if you find something, you've got the guy who's responsible :) Or if you want to blame me, that's OK too, as long as there's a bug report with it, I always welcome feedback.

Kevin
 
Top