Bug#1100389: sysdig: FTBFS on riscv64: ‘luaL_setfuncs’ was not declared in this scope;

Bo YU <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <20250313093942.uwkqfu4rflwo6e3q__23060.3721038037$1741858952$gmane$org@debian>
Source: sysdig
Version: sysdig: 0.40.0+repack-1
Severity: serious
Tags: ftbfs, patch
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected], [email protected]

Dear Maintainer,

sysdig has one FTBFS issue on risv64:

```
/build/reproducible-path/sysdig-0.40.0+repack/userspace/chisel/chisel.cpp:985:9: error: ‘luaL_setfuncs’ was not declared in this scope; did you mean ‘lua_setfenv’?
  985 |         luaL_setfuncs(ls, ll_tool, 0);
      |         ^~~~~~~~~~~~~
      |         lua_setfenv
/build/reproducible-path/sysdig-0.40.0+repack/userspace/chisel/chisel.cpp: In member function ‘void sinsp_chisel::load(std::string, bool)’:
/build/reproducible-path/sysdig-0.40.0+repack/userspace/chisel/chisel.cpp:1196:9: error: ‘luaL_setfuncs’ was not declared in this scope; did you mean ‘lua_setfenv’?
 1196 |         luaL_setfuncs(m_ls, ll_tool, 0);
      |         ^~~~~~~~~~~~~
      |         lua_setfenv
...
```

Please to see the full buildd log:
https://buildd.debian.org/status/fetch.php?pkg=sysdig&arch=riscv64&ver=0.40.0%2Brepack-1&stamp=1741839403&raw=0

It seems the build-dependence on riscv64 will need switch to
libluajit-5.1-dev[0] also and it works on my local build.

BTW, sysdig has FTBFS issues on armel, mips64el, ppc64el and
s390x[1], I guess once libfalcosecurity0-dev catch up on armel and s390x
the building will be okay. In fact, I did a giveback on mips64el and it
worked. But for ppc64el, unfortunately, these is no libluajit-5.1
supported, so unless other workaround, otherwise it has FTBFS on ppc64el
always. So I am ccing the ppc porter to have a look at this.

[0]: https://tracker.debian.org/pkg/luajit
[1]: https://buildd.debian.org/status/package.php?p=sysdig

-- 
Regards,
--
  Bo YU
sysdig_ftbfs_rv64.debdiff (text/plain, 1.2 KB)
diff -Nru sysdig-0.40.0+repack/debian/changelog sysdig-0.40.0+repack/debian/changelog
--- sysdig-0.40.0+repack/debian/changelog	2025-02-22 00:51:54.000000000 +0000
+++ sysdig-0.40.0+repack/debian/changelog	2025-03-13 08:01:04.000000000 +0000
@@ -1,3 +1,11 @@
+sysdig (0.40.0+repack-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build dependence with libluajit-5.1-dev explicitly on riscv64.
+    (Closes: #-1)
+
+ -- Bo YU <[email protected]>  Thu, 13 Mar 2025 08:01:04 +0000
+
 sysdig (0.40.0+repack-1) unstable; urgency=medium
 
   * New upstream release (Closes: #1095317)
diff -Nru sysdig-0.40.0+repack/debian/control sysdig-0.40.0+repack/debian/control
--- sysdig-0.40.0+repack/debian/control	2024-10-17 13:04:37.000000000 +0000
+++ sysdig-0.40.0+repack/debian/control	2025-03-13 08:01:04.000000000 +0000
@@ -20,7 +20,7 @@
                zlib1g-dev,
                uthash-dev,
 # Same as the dependency in falcosecurity-libs
-               libluajit-5.1-dev [amd64 arm64 armel armhf i386 mips64el s390x] | liblua5.1-0-dev
+               libluajit-5.1-dev [amd64 arm64 armel armhf i386 mips64el riscv64 s390x] | liblua5.1-0-dev
 Standards-Version: 4.5.0
 Homepage: https://www.sysdig.com/
 Vcs-Git: https://salsa.debian.org/debian/sysdig.git
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEIcmhjYVTlmab0tjp+RVP3hQ+S68FAmfSp9gACgkQ+RVP3hQ+
S69TAg//fFbVF2/dA18IQKSQ7w3VenQuwJV28dyWAL1X+GxS7OjzYuu9fksKnQUf
mREVtyq7v1oc/J9Szzfp+yGKYa8vOkvEoLCS1BMp1IT5BpbL+JgxMTuvJYH2T14i
eRljCl8T8lVNYC1DcZ72tsbqZIz03TBa6Lnhq4qAdImlUAMYc93kA7HPIRKrinwq
yLjG9F+MPmg8l3N+kms6JnV3NldKGzenM0MAuGdVSPsag6ONy+tL+S/fbNChaCy4
hVvWO17svxdIFJ+6ifiEPyRwZwp0udc3LKkdsQgxlPpGA6kpteHodricLjv3nLry
PNdvnUnEoCSODSkEwzy1J2JcL4gsoUDis/tehtD85j+7v6Tc3o3ucWUvXHt1G7y5
1xKl2UZeayE1NI92moxWYMWiTbxByMl4OZVoGdKZ0ZPAFTUZ6oaBShinuoz1wkPN
YJCFdhtVBieJBF7yAgq0tk+aVsdb6WzwTufNgaXvzeWn2YMpetnTQgicVUuAYgeU
G39Fkrnesi4l/74SHqVw/yQTKsHXanZ1ZFK2ehrBbtPxlu94hTPZCfWDW+OVDa8n
d2VXqpJuezzcet8qdX2PS0asEyZSPe0SQguhSEVe3kJhWPz/Cfb0V4R58qS69ejx
27eVIZOaiYhAko49sGUAD8uXF804LlgrKnWs4BQOdeyWIptk9u8=
=kNKu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.