Build failure with glibc 2.28
LocutusOfBorg opened this issue · comments
Gianfranco Costamagna commented
current directory:
/var/lib/diaspora/vendor/bundle/ruby/2.5.0/gems/sigar-0.7.3/bindings/ruby
make "DESTDIR="
compiling linux_sigar.c
linux_sigar.c: In function ‘sigar_os_proc_list_get’:
linux_sigar.c:617:5: warning: ‘readdir_r’ is deprecated
[-Wdeprecated-declarations]
while (readdir_r(dirp, &dbuf, &ent) == 0) {
^~~~~
In file included from linux_sigar.c:19:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,
^~~~~~~~~
linux_sigar.c: In function ‘get_iostat_proc_dstat’:
linux_sigar.c:1177:22: warning: implicit declaration of function ‘major’
[-Wimplicit-function-declaration]
#define ST_MAJOR(sb) major((sb).st_rdev)
^~~~~
linux_sigar.c:1253:26: note: in expansion of macro ‘ST_MAJOR’
ST_MAJOR(sb), ST_MINOR(sb));
^~~~~~~~
linux_sigar.c:1178:22: warning: implicit declaration of function ‘minor’; did
you mean ‘mknod’? [-Wimplicit-function-declaration]
#define ST_MINOR(sb) minor((sb).st_rdev)
^~~~~
linux_sigar.c:1253:40: note: in expansion of macro ‘ST_MINOR’
ST_MAJOR(sb), ST_MINOR(sb));
^~~~~~~~
linux_sigar.c:1177:22: error: called object ‘major’ is not a function or
function pointer
#define ST_MAJOR(sb) major((sb).st_rdev)
^~~~~
linux_sigar.c:1266:23: note: in expansion of macro ‘ST_MAJOR’
if ((major == ST_MAJOR(sb)) &&
^~~~~~~~
linux_sigar.c:1261:23: note: declared here
unsigned long major, minor;
^~~~~
linux_sigar.c:1178:22: error: called object ‘minor’ is not a function or
function pointer
#define ST_MINOR(sb) minor((sb).st_rdev)
^~~~~
linux_sigar.c:1267:24: note: in expansion of macro ‘ST_MINOR’
((minor == ST_MINOR(sb)) || (minor == 0)))
^~~~~~~~
linux_sigar.c:1261:30: note: declared here
unsigned long major, minor;
^~~~~
linux_sigar.c:1178:22: error: called object ‘minor’ is not a function or
function pointer
#define ST_MINOR(sb) minor((sb).st_rdev)
^~~~~
linux_sigar.c:1318:26: note: in expansion of macro ‘ST_MINOR’
if (minor == ST_MINOR(sb)) {
^~~~~~~~
linux_sigar.c:1261:30: note: declared here
unsigned long major, minor;
^~~~~
linux_sigar.c: In function ‘get_iostat_procp’:
linux_sigar.c:1177:22: error: called object ‘major’ is not a function or
function pointer
#define ST_MAJOR(sb) major((sb).st_rdev)
^~~~~
linux_sigar.c:1369:23: note: in expansion of macro ‘ST_MAJOR’
if ((major == ST_MAJOR(sb)) && (minor == ST_MINOR(sb))) {
^~~~~~~~
linux_sigar.c:1364:23: note: declared here
unsigned long major, minor;
^~~~~
linux_sigar.c:1178:22: error: called object ‘minor’ is not a function or
function pointer
#define ST_MINOR(sb) minor((sb).st_rdev)
^~~~~
linux_sigar.c:1369:50: note: in expansion of macro ‘ST_MINOR’
if ((major == ST_MAJOR(sb)) && (minor == ST_MINOR(sb))) {
^~~~~~~~
linux_sigar.c:1364:30: note: declared here
unsigned long major, minor;
^~~~~
linux_sigar.c: In function ‘sigar_proc_port_get’:
linux_sigar.c:2505:5: warning: ‘readdir_r’ is deprecated
[-Wdeprecated-declarations]
while (readdir_r(dirp, &dbuf, &ent) == 0) {
^~~~~
In file included from linux_sigar.c:19:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,
^~~~~~~~~
linux_sigar.c:2546:9: warning: ‘readdir_r’ is deprecated
[-Wdeprecated-declarations]
while (readdir_r(fd_dirp, &fd_dbuf, &fd_ent) == 0) {
^~~~~
In file included from linux_sigar.c:19:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,
^~~~~~~~~
linux_sigar.c: In function ‘sigar_cpu_list_get’:
linux_sigar.c:453:11: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
(void)fgets(cpu_total, sizeof(cpu_total), fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘get_iostat_procp’:
linux_sigar.c:1362:11: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
(void)fgets(buffer, sizeof(buffer), fp); /* skip header */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_net_route_list_get’:
linux_sigar.c:1734:11: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
(void)fgets(buffer, sizeof(buffer), fp); /* skip header */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_net_interface_stat_get’:
linux_sigar.c:1777:5: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
fgets(buffer, sizeof(buffer), fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c:1778:5: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
fgets(buffer, sizeof(buffer), fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘proc_net_read’:
linux_sigar.c:1942:5: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
fgets(buffer, sizeof(buffer), fp); /* skip header */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_arp_list_get’:
linux_sigar.c:2423:11: warning: ignoring return value of ‘fgets’, declared with
attribute warn_unused_result [-Wunused-result]
(void)fgets(buffer, sizeof(buffer), fp); /* skip header */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:243: linux_sigar.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/usr/share/diaspora/vendor/bundle/ruby/2.5.0/gems/sigar-0.7.3 for inspection.
Results logged to
/usr/share/diaspora/vendor/bundle/ruby/2.5.0/extensions/arm-linux/2.5.0/sigar-0.7.3/gem_make.out
�[0m�[31mAn error occurred while installing sigar (0.7.3), and Bundler cannot
continue.
Make sure that `gem install sigar -v '0.7.3'` succeeds before bundling.�[0m
In Gemfile:
eye was resolved to 0.9.2, which depends on
sigar�[0m
Kostya M commented
use eye v0.10.0, it uses sigar fork with fix for this.
Gianfranco Costamagna commented
looks like the new diaspora already fixed this, thanks!