| Summary: | app-misc/pax-utils-1.1.6 does not compile: security.c:251:8: error: 'PR_SET_NO_NEW_PRIVS' undeclared | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | pavel sanda <ps> |
| Component: | Current packages | Assignee: | SpanKY <vapier> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
I use 3.4.113 kernel which is likely the reason. Maybe adding version dependency to the ebuild? compiles fine with kernel 4.8.11 which package do you use for your kernel? sys-kernel/gentoo-sources-3.4.113 sys-kernel/gentoo-sources-3.4.113-r1 you must provide `emerge --info` with every bug report this define was added in linux-3.5 (as Jonas hinted). the only way it'd fail to build is if you were using older linux headers on your system and weren't bothering to upgrade to newer versions. That's right, I use 3.4 headers, which are no more in the tree. Is it correct to have kernel 3.4 and newer headers? (In reply to pavel sanda from comment #4) that should work just fine |
i686-pc-linux-gnu-gcc -O2 -march=core2 -pipe -fomit-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.1.6" -DVCSID="" -o security.o -c security.c security.c: In function 'security_init': security.c:251:8: error: 'PR_SET_NO_NEW_PRIVS' undeclared (first use in this function) prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); ^ security.c:251:8: note: each undeclared identifier is reported only once for each function it appears in Makefile:112: recipe for target 'security.o' failed make: *** [security.o] Error 1 ^ * ERROR: app-misc/pax-utils-1.1.6::gentoo failed (compile phase): * emake failed