Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604280 - app-misc/pax-utils-1.1.6 does not compile: security.c:251:8: error: 'PR_SET_NO_NEW_PRIVS' undeclared
Summary: app-misc/pax-utils-1.1.6 does not compile: security.c:251:8: error: 'PR_SET_N...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-31 20:14 UTC by pavel sanda
Modified: 2018-06-08 19:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pavel sanda 2016-12-31 20:14:13 UTC
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
Comment 1 pavel sanda 2016-12-31 20:16:15 UTC
I use 3.4.113 kernel which is likely the reason.
Maybe adding version dependency to the ebuild?
Comment 2 Jonas Stein gentoo-dev 2017-01-01 15:32:20 UTC
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
Comment 3 SpanKY gentoo-dev 2017-01-01 16:13:35 UTC
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.
Comment 4 pavel sanda 2017-01-01 16:24:18 UTC
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?
Comment 5 SpanKY gentoo-dev 2018-06-08 19:03:32 UTC
(In reply to pavel sanda from comment #4)

that should work just fine