with gcc version 6.4.0 (Gentoo Hardened 6.4.0 p1.0) build fail >>> Compiling source in /var/tmp/portage/app-misc/fsniper-1.3.1-r2/work/fsniper-1.3.1 ... make -j5 -l5 make all-recursive make[1]: Entering directory '/var/tmp/portage/app-misc/fsniper-1.3.1-r2/work/fsniper-1.3.1' Making all in src make[2]: Entering directory '/var/tmp/portage/app-misc/fsniper-1.3.1-r2/work/fsniper-1.3.1/src' gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o main.o main.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o add_watches.o add_watches.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o keyval_parse.o keyval_parse.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o keyval_node.o keyval_node.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o keyval_tokenize.o keyval_tokenize.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o handle_event.o handle_event.c gcc -DHAVE_CONFIG_H -I. -I.. -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -D_GNU_SOURCE -ansi -D_REENTRANT -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wformat -Wformat-security -c -o argparser.o argparser.c main.c: In function ‘handle_child_signal’: main.c:196:16: error: storage size of ‘status’ isn’t known union wait status; ^~~~~~ main.c: In function ‘main’: main.c:368:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=] sprintf(scanformat, "Name: %%%ds", strlen(binaryname) + 1); ^ handle_event.c: In function ‘write_out’: handle_event.c:484:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(writefd, text, strlen(text)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:369:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(statusfile, scanformat, statusbin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:479:4: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] pipe(pipe_list_cur->next->pfd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:363: main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/app-misc/fsniper-1.3.1-r2/work/fsniper-1.3.1/src' make[1]: *** [Makefile:355: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-misc/fsniper-1.3.1-r2/work/fsniper-1.3.1' make: *** [Makefile:296: all] Error 2 * ERROR: app-misc/fsniper-1.3.1-r2::gentoo failed (compile phase): * emake failed
Created attachment 498796 [details, diff] Proposed patch Does this patch fix it?
Thanks you the bug report. Thank you Felix for the patch, I will include it in our patchset. Alessandra can you please test and report back once this bug is closed?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3 commit 0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2017-11-01 13:28:45 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2017-11-01 13:30:41 +0000 app-misc/fsniper: patch against obsolete C call. This patch removes a wait3() call in favour of waitpid() in src/main.c. Closes: https://bugs.gentoo.org/634366 Package-Manager: Portage-2.3.8, Repoman-2.3.3 app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch | 15 +++++++++++++++ app-misc/fsniper/fsniper-1.3.1-r2.ebuild | 1 + 2 files changed, 16 insertions(+)