Closed doktor5000 closed 10 years ago
Just wanted to add, same issues with -DCMAKE_BUILD_TYPE=Release
Are you sure that it's related to GCC 4.9 and not to the custom Lua version that you seem to provide? I just tried building the 0.1.89 tag on gcc 4.9.1 and it worked fine.
Could you try a build with the embedded luajit?
Okay, I can give that a shot ... is there any preferred lua version, as we have 5.0, 5.1 and 5.2 packaged? Seems to build fine with the bundled lua version - but as a linux distro we have to build against system libraries. This also works fine on an older distro version.
As you mention luajit, cmake actually checks for the normal lua library, and also sysdig seems to work without luajit binary installed. So do you require lua library, that is /usr/lib{64}/liblua.so.5.x or luajit binary?
We require LuaJIT 2.0.3 (the shared library, not the luajit binary itself). Any use of sysdig against other Lua flavors won't get any support by us (although we welcome patches in case it's important for you).
I think I've found the issue, for some reason in our package only the luajit binary was built, but the libary was not. Anyways, thanks a lot for the feedback, issue closed. :)
:+1:
Although, thinking about it a second time ... Shouldn't the cmake checks fail when bundled luajit is disabled, and when no luajit is detected? So that the build will not start, as prereqs are not met?
Nevermind ... found what caused the issues. If there's no support for anything else then LuaJIT 2.0.3, then you should maybe remove the following from CMakeLists.txt :
else()
# alternatively try stock Lua
find_package(Lua51)
set(LUAJIT_LIB ${LUA_LIBRARY})
set(LUAJIT_INCLUDE ${LUA_INCLUDE_DIR})
if(NOT ${LUA51_FOUND})
message(FATAL_ERROR "Couldn't find system LuaJIT or Lua")
endif()
Anyway, I'd like to mention that sysdig is now available via Mageia Linux standard repositories. http://svnweb.mageia.org/packages/cauldron/sysdig/current/SPECS/sysdig.spec?view=markup If you need any help with the rpm packages that you provide, just ping me.
Keep up the good work! :8ball:
Attached is an excerpt of the build log for sysdig-0.1.89. Full version for i586 available at http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20141004105246.doktor5000.valstar.6842/log/botcmd.1412419982.rabbit.log and for x86_64: http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20141004105246.doktor5000.valstar.6842/log/botcmd.1412419984.valstar.log
Please fix :)