Summary: | sys-apps/policycoreutils-2.0.69-r1 fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ioannis Aslanidis (RETIRED) <deathwing00> |
Component: | New packages | Assignee: | Chris PeBenito (RETIRED) <pebenito> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | marek.bartosiewicz, selinux |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Add missing include |
Description
Ioannis Aslanidis (RETIRED)
![]() Looks like a gcc-4.4.2 problem. Compiles fine with gcc-4.2.x. (In reply to comment #1) > Looks like a gcc-4.4.2 problem. Compiles fine with gcc-4.2.x. It's not the problem only of gcc-4.4.2. I can't emerge policycoreutils with gcc-4.4.3 and gcc-4.4.4. So, it seems to be a gcc-4.4.x problem Same with gcc-4.5.1 * Compiling policycoreutils make -j3 -C /var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69 PYLIBVER=python2.6 AUDIT_LOG_PRIV=y make: Wejście do katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69' make[1]: Wejście do katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles' cc -Werror -Wall -O2 -pipe -march=nocona -msse -msse2 -msse3 -mfpmath=sse -W -I/usr/include -DUSE_AUDIT -c -o setfiles.o setfiles.c cc1: warnings being treated as errors setfiles.c: In function ‘filespec_add’: setfiles.c:128: error: implicit declaration of function ‘lstat’ setfiles.c: In function ‘match’: setfiles.c:315: error: implicit declaration of function ‘S_ISLNK’ setfiles.c: In function ‘main’: setfiles.c:997: error: implicit declaration of function ‘stat’ setfiles.c:1001: error: implicit declaration of function ‘S_ISREG’ make[1]: *** [setfiles.o] Błąd 1 make[1]: Opuszczenie katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69/setfiles' make: *** [all] Błąd 1 make: Opuszczenie katalogu `/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69' emake failed * ERROR: sys-apps/policycoreutils-2.0.69-r1 failed: * (no error message) * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 4385: Called die * The specific snippet of code: * emake -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y || die; * * If you need support, post the output of 'emerge --info =sys-apps/policycoreutils-2.0.69-r1', * the complete build log and the output of 'emerge -pqv =sys-apps/policycoreutils-2.0.69-r1'. * The complete build log is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/temp/environment'. * S: '/var/tmp/portage/sys-apps/policycoreutils-2.0.69-r1/work/policycoreutils-2.0.69' adding: #include <sys/stat.h> to setfiles.c solves my problem. Created attachment 256285 [details, diff]
Add missing include
This patch add the missing "#include <sys/stat.h>" to file setfiles.c
Patched in policycoreutils 2.0.69-r2. Thanks for the patch! I'll also be looking at upgrading the policycoreutils package from upstream soon, but don't want to introduce too many changes at one time, as we are still sorting v2refpolicy out also. Can we close this? Fixed in version >= sys-apps/policycoreutils-2.0.69-r2. |