Skip to content

Conversation

@j1cken
Copy link
Contributor

@j1cken j1cken commented Aug 8, 2019

Current implementation expects a "Lua 5.3.5" version string in lua.h. This has changed (at least on Clear Linux).
A cmake run responds with

-- Found Lua: /usr/lib64/liblua.so;/usr/lib64/libm.so (found version "")

The lua.h on my system looks like:

$ grep LUA_VERSION /usr/include/lua.h
#define LUA_VERSION_MAJOR	"5"
#define LUA_VERSION_MINOR	"3"
#define LUA_VERSION_NUM		503
#define LUA_VERSION_RELEASE	"5"
#define LUA_VERSION	"Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
#define LUA_RELEASE	LUA_VERSION "." LUA_VERSION_RELEASE

With this PR the version is found again:

-- The C compiler identification is GNU 9.1.1
-- The CXX compiler identification is GNU 9.1.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Lua: /usr/lib64/liblua.so;/usr/lib64/libm.so (found version "5.3.5") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/torben/development/lsyncd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants