Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552072 - sys-apps/udevil-0.4.4 needs a patch / implicit declaration of function 'stat'
Summary: sys-apps/udevil-0.4.4 needs a patch / implicit declaration of function 'stat'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: zlg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-14 09:20 UTC by Helmut Jarausch
Modified: 2015-06-20 05:34 UTC (History)
4 users (show)

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


Attachments
patch to include sys/stat.h (udevil-0.4.4-stat.patch,264 bytes, patch)
2015-06-14 09:20 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-06-14 09:20:36 UTC
Created attachment 405128 [details, diff]
patch to include sys/stat.h

udevil-0.4.4 fails to compile (under gcc 5.x, at least) with
device-info.c: In function 'info_mount_points':
device-info.c:943:33: error: implicit declaration of function 'stat' [-Werror=implicit-function-declaration]
                                 stat( mount_source, &statbuf ) == 0 &&
                                 ^
device-info.c:944:33: error: implicit declaration of function 'S_ISBLK' [-Werror=implicit-function-declaration]
                                 S_ISBLK( statbuf.st_mode ) )
                                 ^

The attached patch includes sys/stat.h to fix this.
Comment 1 Andreas Proteus 2015-06-16 10:12:07 UTC
Patch works here.
Thank you.
Comment 2 zlg (RETIRED) gentoo-dev 2015-06-20 05:34:12 UTC
I've added the patch to the tree. It's applied in udevil-0.4.4-r1. Please update as needed.

Upstream's GitHub project also contains an Issue reporting this. I confirmed the bug upstream, so maybe it'll be merged for a later version.

Thanks for reporting!