Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700094 - net-misc/chrony-3.5-r2 with sys-libs/libseccomp-2.4.2 : sys_linux.c:506:38: error: _SNR_ppoll undeclared (first use in this function)
Summary: net-misc/chrony-3.5-r2 with sys-libs/libseccomp-2.4.2 : sys_linux.c:506:38: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/seccomp/libseccomp...
Whiteboard:
Keywords: PATCH
: 700468 700500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-14 16:33 UTC by Toralf Förster
Modified: 2020-08-31 10:08 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.57 KB, text/plain)
2019-11-14 16:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,229.11 KB, text/plain)
2019-11-14 16:33 UTC, Toralf Förster
Details
environment (environment,60.71 KB, text/plain)
2019-11-14 16:33 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.06 KB, application/x-bzip)
2019-11-14 16:33 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.87 KB, application/x-bzip)
2019-11-14 16:33 UTC, Toralf Förster
Details
net-misc:chrony-3.5-r2:20191114-092321.log (net-misc:chrony-3.5-r2:20191114-092321.log,5.04 KB, text/plain)
2019-11-14 16:33 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,16.46 KB, application/x-bzip)
2019-11-14 16:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-11-14 16:33:42 UTC
In file included from sys_linux.c:42:
sys_linux.c: In function ‘SYS_Linux_EnableSystemCallFilter’:
sys_linux.c:506:38: error: ‘__SNR_ppoll’ undeclared (first use in this function)
  506 |     SCMP_SYS(pipe2), SCMP_SYS(poll), SCMP_SYS(ppoll), SCMP_SYS(pselect6), SCMP_SYS(read),
      |                                      ^~~~~~~~
sys_linux.c:506:38: note: each undeclared identifier is reported only once for each function it appears in

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_abi32+64-20191109-031622

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.39.0 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 14 Nov 2019 08:50:00 +0000

emerge -qpvO net-misc/chrony
[ebuild  N    ] net-misc/chrony-3.5-r2  USE="adns cmdmon ipv6 ntp phc readline refclock rtc seccomp -caps -html -libedit -pps (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2019-11-14 16:33:45 UTC
Created attachment 596112 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-11-14 16:33:48 UTC
Created attachment 596114 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-11-14 16:33:51 UTC
Created attachment 596116 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-11-14 16:33:54 UTC
Created attachment 596118 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-11-14 16:33:57 UTC
Created attachment 596120 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-11-14 16:33:59 UTC
Created attachment 596122 [details]
net-misc:chrony-3.5-r2:20191114-092321.log
Comment 7 Toralf Förster gentoo-dev 2019-11-14 16:34:02 UTC
Created attachment 596124 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-18 10:59:59 UTC
Since upstream added _SNR_ppoll back after the 2.4.2 release "accidentally" removed it, it would make sense to temporarily restore that in a libseccomp revision bump and fix this bug and the similar problem reported in bug #700468.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-18 11:07:34 UTC
(In reply to Jeroen Roovers from comment #8)
> Since upstream added _SNR_ppoll back after the 2.4.2 release "accidentally"
> removed it, it would make sense to temporarily restore that in a libseccomp
> revision bump and fix this bug and the similar problem reported in bug
> #700468.

_Especially since Miroslav Lichvar is upstream for both libseccomp and chrony. :-)
Comment 10 Larry the Git Cow gentoo-dev 2019-11-18 11:51:57 UTC
The bug has been referenced in the following commit(s):

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

commit e06dfa1a2fc15f638756134f0bedd61a2e4d0836
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-11-18 11:51:27 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-11-18 11:51:51 +0000

    sys-libs/libseccomp: Revbump to add missing SNR ppoll definitions
    
    Bug: https://bugs.gentoo.org/700094
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../libseccomp-2.4.2-missing_SNR_ppoll_defs.patch  | 41 ++++++++++++++++++++++
 ...omp-2.4.2.ebuild => libseccomp-2.4.2-r1.ebuild} |  6 +++-
 2 files changed, 46 insertions(+), 1 deletion(-)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-18 11:53:36 UTC
*** Bug 700468 has been marked as a duplicate of this bug. ***
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-18 18:43:24 UTC
*** Bug 700500 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-31 10:08:54 UTC
(In reply to Larry the Git Cow from comment #10)
> The bug has been referenced in the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=e06dfa1a2fc15f638756134f0bedd61a2e4d0836
> 
> commit e06dfa1a2fc15f638756134f0bedd61a2e4d0836
> Author:     Lars Wendler <polynomial-c@gentoo.org>
> AuthorDate: 2019-11-18 11:51:27 +0000
> Commit:     Lars Wendler <polynomial-c@gentoo.org>
> CommitDate: 2019-11-18 11:51:51 +0000
> 
>     sys-libs/libseccomp: Revbump to add missing SNR ppoll definitions
>     
>     Bug: https://bugs.gentoo.org/700094
>     Package-Manager: Portage-2.3.79, Repoman-2.3.18
>     Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
> 
>  .../libseccomp-2.4.2-missing_SNR_ppoll_defs.patch  | 41
> ++++++++++++++++++++++
>  ...omp-2.4.2.ebuild => libseccomp-2.4.2-r1.ebuild} |  6 +++-
>  2 files changed, 46 insertions(+), 1 deletion(-)