pepper
pepper copied to clipboard
Lua version check seems to be broken
Just tried to install pepper, but it seems to have problems with lua 5.3.
> ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... yes
checking for ranlib... ranlib
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking CoreServices/CoreServices.h usability... no
checking CoreServices/CoreServices.h presence... no
checking for CoreServices/CoreServices.h... no
checking for uint64_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for atexit... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for mkdir... yes
checking for realpath... yes
checking for setenv... yes
checking for strtol... yes
checking for strchr... yes
checking for vsnprintf... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for lua... /bin/lua
checking Lua version is in range 501 <= v < ... no
configure: error: in `/tmp/pepper':
configure: error: Lua version not in desired range.
See `config.log' for more details
> lua -e 'print(_VERSION)'
Lua 5.3
I got this going by using a new version of m4/ax_lua.m4
from here and adjusting the configure.ac
file a bit. With this, configuration succeeded, but building failed:
../src/3rdparty/lunar/lunar.h: In static member function ‘static void Lunar<T>::Register(lua_State*, const char*)’:
../src/3rdparty/lunar/lunar.h:44:11: error: ‘LUA_GLOBALSINDEX’ was not declared in this scope
44 | set(L, LUA_GLOBALSINDEX, T::className);
| ^~~~~~~~~~~~~~~~
../src/3rdparty/lunar/lunar.h:47:20: error: ‘LUA_GLOBALSINDEX’ was not declared in this scope
47 | lua_gettable(L, LUA_GLOBALSINDEX);
| ^~~~~~~~~~~~~~~~
Apparently, LUA_GLOBALSINDEX
is no longer available in newer Lua versions. I could not find an updated version of lunar.h
.
Try nix + #14