From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg7ir-0004Ko-O8 for qemu-devel@nongnu.org; Thu, 09 Apr 2015 04:22:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg7im-0006po-UK for qemu-devel@nongnu.org; Thu, 09 Apr 2015 04:22:01 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:36518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg7im-0006pQ-PL for qemu-devel@nongnu.org; Thu, 09 Apr 2015 04:21:56 -0400 Received: by wgsk9 with SMTP id k9so89579151wgs.3 for ; Thu, 09 Apr 2015 01:21:55 -0700 (PDT) Date: Thu, 9 Apr 2015 10:21:52 +0200 From: Eduardo Otubo Message-ID: <20150409082152.GA18873@vader> References: <5525EB8B.5030501@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <5525EB8B.5030501@suse.de> Subject: Re: [Qemu-devel] seccomp breakage on arm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: Peter Maydell , Marcus Meissner , Riku Voipio , qemu-devel , Alexander Graf , Paul Moore , qemu-ppc , Karl-Philipp Richter --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 09, 2015 at 05=3D01=3D31AM +0200, Andreas F=C3=A4rber wrote: > Hello, >=20 > I am seeing the following build failure on openSUSE Tumbleweed armv7l > with --enable-seccomp in v2.3.0-rc2: >=20 > [ 551s] In file included from qemu-seccomp.c:16:0: > [ 551s] /usr/include/libseccomp/seccomp.h:177:23: error: '__NR_mmap' > undeclared here (not in a function) > [ 551s] #define SCMP_SYS(x) (__NR_##x) > [ 551s] ^ > [ 551s] qemu-seccomp.c:36:7: note: in expansion of macro 'SCMP_SYS' > [ 551s] { SCMP_SYS(mmap), 247 }, > [ 551s] ^ > [ 551s] /usr/include/libseccomp/seccomp.h:177:23: error: > '__NR_getrlimit' undeclared here (not in a function) > [ 551s] #define SCMP_SYS(x) (__NR_##x) > [ 551s] ^ > [ 551s] qemu-seccomp.c:57:7: note: in expansion of macro 'SCMP_SYS' > [ 551s] { SCMP_SYS(getrlimit), 245 }, > [ 551s] ^ > [ 551s] /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc2/rules.mak:57: recipe > for target 'qemu-seccomp.o' failed > [ 551s] make: *** [qemu-seccomp.o] Error 1 >=20 > Is this a problem with libseccomp 2.2.0 / master and needs to be fixed > in the library? Or do we need to #ifdef some syscalls in qemu-seccomp.c? This should be already fixed in the library as mentioned by the maintainer in this[0] thread. Adding Paul Moore in CC. There's also a bug entry on launchpad[1] for that. I provided the patch (before the pull reuqest) requesting for some review and testing but never heard back again. Also CC'ing Karl-Philipp Richter (bug owner) for some opinions on that as well. Regards, [0] http://sourceforge.net/p/libseccomp/mailman/message/32955831/ [1] https://bugs.launchpad.net/qemu/+bug/1363641 --=20 Eduardo Otubo ProfitBricks GmbH --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVJjagAAoJEP0M/1sS+L0vy9oH+wc7lxN4AhVHxDM9ubdpCaBp pw96phFARwAOZlKR7vl76VeN5U6oS3fKIdr3dmcC5crspMEwz2RIPOqruqCZ6BO8 N1j9M4i77z7xZSyXWxNSbjmAlqtXEpdst0kfcPLOEbVtfI+t3bZiJMJ36YAolvR6 8pvxSU8gfITIo4xWLnpJHm5Fr6Wdiku9p/tL4+2RfWJM7YnoeXeet9DwBN2yf1o7 W/aqCC1/k3X3ybFK3ECW4Y5pTyOWqe6i0v7OPA6UQet3t9bsZltN+4nywcaLscch Gg07PmNtf1RavoTwNNeArgncw9dRSuisGl3Mlx2UPTrBBPzr3Tu+KDNG7sGP3ZM= =Xlai -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--