lgi-devs / lgi

Dynamic Lua binding to GObject libraries using GObject-Introspection
MIT License
434 stars 68 forks source link

install error #307

Closed airtonix closed 1 year ago

airtonix commented 1 year ago
zenobius in 🌐 brass in ~ took 9s 
x  sudo dnf install gobject-introspection                         
Last metadata expiration check: 2:10:01 ago on Wed 18 Jan 2023 08:48:24.
Package gobject-introspection-1.74.0-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

zenobius in 🌐 brass in ~ 
>  sudo dnf install gobject-introspection-devel
Last metadata expiration check: 2:10:04 ago on Wed 18 Jan 2023 08:48:24.
Package gobject-introspection-devel-1.74.0-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

zenobius in 🌐 brass in ~ 
> sudo luarocks install lgi                                       
Installing https://luarocks.org/lgi-0.9.2-1.src.rock

lgi 0.9.2-1 depends on lua >= 5.1 (5.4-1 provided by VM)
make -C lgi
make[1]: Entering directory '/tmp/luarocks_lgi-0.9.2-1-TPhPpI/lgi/lgi'
pkg-config --exists 'gobject-introspection-1.0 >= 0.10.8' --print-errors
touch .depcheck
gcc -fPIC  -O2 -fPIC -I/usr/include -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wall -Wextra -O2 -g -c -o buffer.o buffer.c
gcc -fPIC  -O2 -fPIC -I/usr/include -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wall -Wextra -O2 -g -c -o callable.o callable.c
callable.c: In function ‘closure_callback’:
callable.c:1237:13: error: too few arguments to function ‘lua_resume’
 1237 |       res = lua_resume (L, NULL, npos);
      |             ^~~~~~~~~~
In file included from lgi.h:11,
                 from callable.c:12:
/usr/include/lua.h:300:15: note: declared here
  300 | LUA_API int  (lua_resume)     (lua_State *L, lua_State *from, int narg,
      |               ^~~~~~~~~~
make[1]: *** [Makefile:63: callable.o] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.2-1-TPhPpI/lgi/lgi'
make: *** [Makefile:16: all] Error 2

Error: Build error: Failed building.
airtonix commented 1 year ago
x inxi -S
System:
  Host: brass Kernel: 6.1.5-200.fc37.x86_64 arch: x86_64 bits: 64 Desktop: N/A
    Distro: Fedora release 37 (Thirty Seven)
airtonix commented 1 year ago
zenobius in 🌐 brass in ~ 
> lua -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
airtonix commented 1 year ago

meh... again. so not obvious to me that this is because i'm on 5.4.4...

302