Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737094 - app-misc/pax-utils-1.2.6: error: ‘__NR_statx’ undeclared
Summary: app-misc/pax-utils-1.2.6: error: ‘__NR_statx’ undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-14 08:49 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-08-14 21:44 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 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-14 08:49:22 UTC
> >>> Compiling source in /var/tmp/portage/app-misc/pax-utils-1.2.6/work/pax-utils-1.2.6 ...
> make --jobs 5 --load-average 7.95 USE_CAP=yes USE_DEBUG=no USE_PYTHON=yes USE_SECCOMP=yes
> i686-pc-linux-gnu-gcc -O2 -pipe -march=bonnell -mtune=bonnell -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.6" -DVCSID="" -o paxelf.o -c paxelf.c
> i686-pc-linux-gnu-gcc -O2 -pipe -march=bonnell -mtune=bonnell -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.6" -DVCSID="" -o paxldso.o -c paxldso.c
> i686-pc-linux-gnu-gcc -O2 -pipe -march=bonnell -mtune=bonnell -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.6" -DVCSID="" -o paxmacho.o -c paxmacho.c
> i686-pc-linux-gnu-gcc -O2 -pipe -march=bonnell -mtune=bonnell -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.6" -DVCSID="" -o paxinc.o -c paxinc.c
> i686-pc-linux-gnu-gcc -O2 -pipe -march=bonnell -mtune=bonnell -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWANT_SECCOMP -DVERSION="v1.2.6" -DVCSID="" -o security.o -c security.c
> In file included from security.c:37:
> security.c: In function ‘pax_seccomp_init’:
> security.c:105:3: error: ‘__NR_statx’ undeclared (first use in this function); did you mean ‘__lxstat’?
>   105 |   SCMP_SYS(statx),
>       |   ^~~~~~~~
> security.c:105:3: note: each undeclared identifier is reported only once for each function it appears in
> make: *** [Makefile:115: security.o] Error 1
> make: *** Waiting for unfinished jobs....
>  * ERROR: app-misc/pax-utils-1.2.6::gentoo failed (compile phase):
>  *   emake failed
> 



Portage 3.0.2 (python 3.7.8-final-0, default/linux/x86/17.0, gcc-10.2.0, glibc-2.23-r2, 4.8.6-gentoo i686)
=================================================================
System uname: Linux-4.8.6-gentoo-i686-Intel-R-_Atom-TM-_CPU_N550_@_1.50GHz-with-gentoo-2.3
KiB Mem:      884228 total,    162280 free
KiB Swap:    2097148 total,   2080076 free
Timestamp of repository gentoo: Thu, 13 Aug 2020 15:05:59 +0000
Head commit of repository gentoo: 9fd7375b3affc648e8684ba6bae0ec2013b29160

sh bash 4.4-r1
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          4.4-r1::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.6.6::gentoo, 3.7.8-r2::gentoo
dev-util/cmake:           3.18.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            5.4.0::gentoo, 10.2.0::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86 ~x86"
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-14 08:50:27 UTC
Note: This is a system which wasn't updated since 2016.

I just manually upgraded required stuff to get to latest portage and are manually upgrading some stuff. So probably a missing dependency/version constraints.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-14 08:56:16 UTC
Reverting https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=686bd1cb140fa13652b4a0a209d616865b9265bc allowed me to compile.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-14 09:30:25 UTC
> sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)

You probably want to update that.
Comment 4 Larry the Git Cow gentoo-dev 2020-08-14 21:44:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dc53c37ca874eed0744bd1f1e9d85d2cd98b033

commit 4dc53c37ca874eed0744bd1f1e9d85d2cd98b033
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-08-14 21:43:47 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-08-14 21:44:50 +0000

    app-misc/pax-utils: explicitly specify linux-headers bound
    
    seccomp sandbox has know know about list of allowed system calls.
    'statx' is relativey recent one. Let's pull in headers known to
    define the syscall.
    
    Reported-by: Thomas Deutschmann
    Closes: https://bugs.gentoo.org/737094
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 app-misc/pax-utils/pax-utils-1.2.6.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)