Summary: | [clang-3.6/gcc-4.9] x11-drivers/xf86-video-intel-2.99.917 compile error: undeclared fstat (C99) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Olaf Leidinger <oleid> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch to add includes needed for fstat |
Description
Olaf Leidinger
2015-05-29 19:01:06 UTC
Created attachment 404294 [details, diff]
patch to add includes needed for fstat
This patch adds the includes, which are needed for the fstat function (according to it's man page).
Attach a build log. *** This bug has been marked as a duplicate of bug 550784 *** patch dont work: or=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/libdrm -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/xvmc -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/render_program -march=corei7 -O2 -pipe -c /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c -fPIC -DPIC -o .libs/intel_video.o /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_driver.c: In function ‘I830HandleUEvents’: /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_driver.c:745:14: error: storage size of ‘s’ isn’t known struct stat s; ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_driver.c:753:2: error: implicit declaration of function ‘fstat’ [-Werror=implicit-function-declaration] if (fstat(intel->drmSubFD, &s)) { ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_driver.c:753:2: warning: nested extern declaration of ‘fstat’ [-Wnested-externs] /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_driver.c:745:14: warning: unused variable ‘s’ [-Wunused-variable] struct stat s; ^ cc1: some warnings being treated as errors Makefile:528: recipe for target 'intel_driver.lo' failed make[3]: *** [intel_driver.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:103:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, (1 << 24) - 1, "XV_COLORKEY"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:104:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:105:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 255, "XV_CONTRAST"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:106:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 1023, "XV_SATURATION"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:107:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, -1, 1, "XV_PIPE"} ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:112:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA0"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:113:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA1"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:114:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA2"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:115:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA3"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:116:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA4"}, ^ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917/src/uxa/intel_video.c:117:2: warning: initialization discards ‘const’ qualifier from pointer target type {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA5"} ^ make[3]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917_build/src/uxa' Makefile:598: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917_build/src' Makefile:468: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917_build' Makefile:399: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: x11-drivers/xf86-video-intel-2.99.917::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-intel-2.99.917::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-intel-2.99.917::gentoo'`. * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/temp/environment'. * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917_build' * S: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/work/xf86-video-intel-2.99.917' * !!! User patches were applied to this build! >>> Failed to emerge x11-drivers/xf86-video-intel-2.99.917, Log file: >>> '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917/temp/build.log' * Messages for package x11-drivers/xf86-video-intel-2.99.917: * ERROR: x11-drivers/xf86-video-intel-2.99.917::gentoo failed ( |