Il 09/12/18 14:10, Adrian Bunk ha scritto:
Source: bootchart2
Version: 0.14.4-3
Severity: serious
Tags: ftbfs buster sid
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/bootchart2.html
...
collector/collector.c: In function 'enter_environment':
collector/collector.c:633:47: warning: implicit declaration of function
'makedev' [-Wimplicit-function-declaration]
if (mknod (TMPFS_PATH "/kmsg", S_IFCHR|0666, makedev(1, 11)) < 0) {
^~~~~~~
...
cc -g -Wall -O0 -pthread -Icollector -o bootchart-collector
collector/collector.o collector/output.o collector/tasks.o
collector/tasks-netlink.o collector/dump.o
/usr/bin/ld: collector/collector.o: in function `enter_environment':
/build/1st/bootchart2-0.14.4/collector/collector.c:633: undefined reference to
`makedev'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:39: bootchart-collector] Error 1
This has already been fixed upstream here:
commit add58c3b57064afd6f7d2fd5f09006d28a3e770e
Author: Mike Frysinger <[email protected]>
Date: Thu Apr 21 00:19:32 2016 -0400
include sys/sysmacros.h for major/minor/makedev
These funcs are defined in the sys/sysmacros.h header, not sys/types.h.
Linux C libraries are updating to drop the implicit include, so we need
to include it explicitly.
diff --git a/collector/collector.c b/collector/collector.c
index cfdcb26..2f3ce6b 100644
--- a/collector/collector.c
+++ b/collector/collector.c
@@ -33,6 +33,7 @@
#include "common.h"
#include <sys/mount.h>
+#include <sys/sysmacros.h>
#include <linux/fs.h>
#include <linux/genetlink.h>
#include <linux/taskstats.h>
--
Riccardo Magliocchetti
@rmistaken
http://menodizero.it