Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634366 - app-misc/fsniper-1.3.1-r2 error: storage size of ‘status’ isn’t known
Summary: app-misc/fsniper-1.3.1-r2 error: storage size of ‘status’ isn’t known
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-15 19:12 UTC by Alessandro Barbieri
Modified: 2017-11-01 13:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch (wait.patch,374 bytes, patch)
2017-10-15 21:30 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-10-15 19:12:05 UTC
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
Comment 1 Felix Janda 2017-10-15 21:30:38 UTC
Created attachment 498796 [details, diff]
Proposed patch

Does this patch fix it?
Comment 2 Patrice Clement gentoo-dev 2017-11-01 12:44:55 UTC
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?
Comment 3 Larry the Git Cow gentoo-dev 2017-11-01 13:30:47 UTC
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(+)