[DRE-maint] Bug#1071624: diaspora-installer: fails to install: sigar_util.c:980:5: error: implicit declaration of function 'gettimeofday'
Andreas Beckmann
anbe at debian.org
Wed May 22 15:38:46 BST 2024
Package: diaspora-installer
Version: 0.7.18.2+debian4
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Hi,
during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.
>From the attached log (scroll to the bottom...):
...
current directory:
/var/lib/diaspora/vendor/bundle/ruby/3.1.0/gems/kostya-sigar-2.0.10/bindings/ruby
make DESTDIR\= sitearchdir\=./.gem.20240520-1412518-aa08qy
sitelibdir\=./.gem.20240520-1412518-aa08qy
compiling linux_sigar.c
linux_sigar.c: In function 'sigar_os_proc_list_get':
linux_sigar.c:604:5: warning: 'readdir_r' is deprecated
[-Wdeprecated-declarations]
604 | while (readdir_r(dirp, &dbuf, &ent) == 0) {
| ^~~~~
In file included from linux_sigar.c:19:
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c: In function 'sigar_proc_port_get':
linux_sigar.c:2492:5: warning: 'readdir_r' is deprecated
[-Wdeprecated-declarations]
2492 | while (readdir_r(dirp, &dbuf, &ent) == 0) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c:2533:9: warning: 'readdir_r' is deprecated
[-Wdeprecated-declarations]
2533 | while (readdir_r(fd_dirp, &fd_dbuf, &fd_ent) == 0) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c: In function 'sigar_cpu_list_get':
linux_sigar.c:440:11: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
440 | (void)fgets(cpu_total, sizeof(cpu_total), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'get_iostat_procp':
linux_sigar.c:1349:11: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1349 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'sigar_net_route_list_get':
linux_sigar.c:1721:11: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1721 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'sigar_net_interface_stat_get':
linux_sigar.c:1764:5: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1764 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c:1765:5: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1765 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'proc_net_read':
linux_sigar.c:1929:5: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1929 | fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'sigar_arp_list_get':
linux_sigar.c:2410:11: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
2410 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'xen_vendor_parse':
linux_sigar.c:2710:25: warning: '%s' directive output may be truncated writing
up to 255 bytes into a region of size 246 [-Wformat-truncation=]
2710 | "XenServer %s",
| ^~
In file included from /usr/include/stdio.h:964,
from linux_sigar.c:20:
In function 'snprintf',
inlined from 'xen_vendor_parse' at linux_sigar.c:2708:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note:
'__builtin___snprintf_chk' output between 11 and 266 bytes into a destination of
size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
linux_sigar.c: In function 'get_linux_vendor_info.isra':
linux_sigar.c:2783:22: warning: '%s' directive output may be truncated writing
up to 255 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
2783 | "%s %s",
| ^~
In function 'snprintf',
inlined from 'get_linux_vendor_info.isra' at linux_sigar.c:2781:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note:
'__builtin___snprintf_chk' output between 2 and 512 bytes into a destination of
size 256
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
compiling rbsigar.c
compiling sigar.c
sigar.c: In function 'proc_net_interface_list_get':
sigar.c:1816:5: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1816 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sigar.c:1817:5: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
1817 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compiling sigar_cache.c
sigar_cache.c: In function 'sigar_cache_dump':
sigar_cache.c:72:24: warning: format '%lld' expects argument of type 'long long
int', but argument 2 has type 'sigar_uint64_t' {aka 'long unsigned int'}
[-Wformat=]
72 | printf("%lld", entry->id);
| ~~~^ ~~~~~~~~~
| | |
| | sigar_uint64_t {aka long unsigned int}
| long long int
| %ld
compiling sigar_fileinfo.c
compiling sigar_format.c
compiling sigar_getline.c
In file included from sigar_getline.c:241:
sigar_getline.c: In function 'gl_error':
../../include/sigar_util.h:56:22: warning: ignoring return value of 'write'
declared with attribute 'warn_unused_result' [-Wunused-result]
56 | #define sigar_write write
sigar_getline.c:709:5: note: in expansion of macro 'sigar_write'
709 | sigar_write(2, buf, len);
| ^~~~~~~~~~~
sigar_getline.c: In function 'gl_putc':
../../include/sigar_util.h:56:22: warning: ignoring return value of 'write'
declared with attribute 'warn_unused_result' [-Wunused-result]
56 | #define sigar_write write
sigar_getline.c:663:8: note: in expansion of macro 'sigar_write'
663 | sigar_write(1, &ch, 1);
| ^~~~~~~~~~~
sigar_getline.c: In function 'gl_puts':
../../include/sigar_util.h:56:22: warning: ignoring return value of 'write'
declared with attribute 'warn_unused_result' [-Wunused-result]
56 | #define sigar_write write
sigar_getline.c:691:5: note: in expansion of macro 'sigar_write'
691 | sigar_write(1, buf, len);
| ^~~~~~~~~~~
sigar_getline.c: In function 'sigar_getline_histadd':
sigar_getline.c:1426:19: warning: ignoring return value of 'tmpnam' declared
with attribute 'warn_unused_result' [-Wunused-result]
1426 | tmpnam(tname);
| ^~~~~~~~~~~~~
compiling sigar_ptql.c
sigar_ptql.c: In function 'sigar_sudo_file2str':
sigar_ptql.c:724:11: warning: ignoring return value of 'fgets' declared with
attribute 'warn_unused_result' [-Wunused-result]
724 | (void)fgets(buffer, buflen, fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compiling sigar_signal.c
compiling 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:185:12: note: declared here
185 | 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) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
sigar_util.c: In function 'sigar_time_now_millis':
sigar_util.c:980:5: error: implicit declaration of function 'gettimeofday'
[-Werror=implicit-function-declaration]
980 | gettimeofday(&tv, NULL);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make: *** [Makefile:246: sigar_util.o] Error 1
make failed, exit code 2
...
dpkg recently enabled -Werror=implicit-function-declaration in the
default compilation flags to aid the t64 transition.
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diaspora-installer_0.7.18.2+debian4.log.gz
Type: application/gzip
Size: 72626 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20240522/18f6fb6c/attachment-0001.gz>
More information about the Pkg-ruby-extras-maintainers
mailing list