[DRE-maint] Bug#996387: ruby-sigar: FTBFS with ruby3.0: sigar_util.c:742:10: fatal error: rpc/rpc.h: No such file or directory

Antonio Terceiro terceiro at debian.org
Wed Oct 13 15:31:48 BST 2021


Source: ruby-sigar
Version: 0.7.3-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-sigar was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/x86_64-linux-gnu/ruby-2.7.0 -I/usr/include/ruby-2.7.0/ruby/backward -I/usr/include/ruby-2.7.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -I../../include -I../../src/os/linux -U_FILE_OFFSET_BITS -DRB_HAS_RE_ERROR -DRB_RUBY_19 -fPIC -g -O2 -ffile-prefix-map=/build/ruby2.7-yGW2TI/ruby2.7-2.7.4=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -o sigar_util.o -c sigar_util.c
> sigar_util.c: In function ‘sigar_proc_list_procfs_get’:
> sigar_util.c:167:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
>   167 |     while (readdir_r(dirp, &dbuf, &ent) == 0) {
>       |     ^~~~~
> In file included from sigar_util.c:31:
> /usr/include/dirent.h:183:12: note: declared here
>   183 | extern int readdir_r (DIR *__restrict __dirp,
>       |            ^~~~~~~~~
> sigar_util.c: In function ‘sigar_proc_fd_count’:
> sigar_util.c:210:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
>   210 |     while (readdir_r(dirp, &dbuf, &ent) == 0) {
>       |     ^~~~~
> In file included from sigar_util.c:31:
> /usr/include/dirent.h:183:12: note: declared here
>   183 | extern int readdir_r (DIR *__restrict __dirp,
>       |            ^~~~~~~~~
> sigar_util.c: At top level:
> sigar_util.c:742:10: fatal error: rpc/rpc.h: No such file or directory
>   742 | #include <rpc/rpc.h>
>       |          ^~~~~~~~~~~
> compilation terminated.
> make[1]: *** [Makefile:245: sigar_util.o] Error 1


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-sigar/ruby-sigar_0.7.3-2+rebuild1633395509_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211013/15293a7d/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list