From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3pPR-00059X-KC for qemu-devel@nongnu.org; Thu, 16 Jan 2014 11:03:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3pPH-0000wk-Gd for qemu-devel@nongnu.org; Thu, 16 Jan 2014 11:03:09 -0500 Received: from e24smtp03.br.ibm.com ([32.104.18.24]:39605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3pPH-0000w7-4g for qemu-devel@nongnu.org; Thu, 16 Jan 2014 11:02:59 -0500 Received: from /spool/local by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Jan 2014 14:02:57 -0200 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 584E31DC005D for ; Thu, 16 Jan 2014 11:02:55 -0500 (EST) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0GG31sS4796590 for ; Thu, 16 Jan 2014 14:03:01 -0200 Received: from d24av02.br.ibm.com (localhost [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s0GG2sW1025443 for ; Thu, 16 Jan 2014 14:02:54 -0200 Message-ID: <52D802AE.5060308@linux.vnet.ibm.com> Date: Thu, 16 Jan 2014 14:02:54 -0200 From: Eduardo Otubo MIME-Version: 1.0 References: <52C6CF34.4030207@yahoo.co.uk> In-Reply-To: <52C6CF34.4030207@yahoo.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a function) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lejeczek Cc: qemu-devel@nongnu.org On 01/03/2014 12:54 PM, lejeczek wrote: > dear developers > > I was hoping someone could suggest what is missing or incompatible on my > setup that causes a compilation to fail > > I'm trying to rpmbuild-compile qemu-1.2.2-1.fc18.src.rpm on rhel 6.5 > I thought I have got all dependencies from rpm perspective, naturally > there is something wrong > I think here is where it fails > > gcc > -I/home/pe243/rpmbuild/BUILD/coruscant.ccnr.biotechnology/.el6/qemu-kvm-1.2.0/slirp > -I. -I/home/pe243/rpmbuild/BUILD/coruscant.ccnr.biotec > hnology/.el6/qemu-kvm-1.2.0 > -I/home/pe243/rpmbuild/BUILD/coruscant.ccnr.biotechnology/.el6/qemu-kvm-1.2.0/fpu > -I/home/pe243/rpmbuild/BUILD/cor > uscant.ccnr.biotechnology/.el6/qemu-kvm-1.2.0/libcacard -fPIE -DPIE -m64 > -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-pro > totypes -Wredundant-decls -Wall -Wundef -Wwrite-strings > -Wmissing-prototypes -fno-strict-aliasing -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 - > fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > -mtune=generic -fPIE -DPIE -fstack-protector-all -Wendif-labels > -Wmissing-includ > e-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k > -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-defin > ition -Wtype-limits -I/usr/include/libpng12 -I/usr/include/spice-server > -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/ > include -I/usr/include/pixman-1 -I/usr/include/nss3 -I/usr/include/nspr4 > -I/usr/include/spice-1 -I/usr/include/nss3 -I/usr/include/nspr4 - > pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/pe > 243/rpmbuild/BUILD/coruscant.ccnr.biotechnology/.el6/qemu-kvm-1.2.0/include > -MMD -MP -MT qemu-seccomp.o -MF ./qemu-seccomp.d -O2 -D_FORTIFY_SO > URCE=2 -g -c -o qemu-seccomp.o qemu-seccomp.c > qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a > function) > My guess is that this is an old version that was bogusly dependent to linux headers. Can you check that? (sorry for the late reply, I was on vacations until yesterday) > what can be wrong? > perhaps interestingly package qemu-1.2.0-22.fc19.src.rpm > rpmbuild-comiles fine > > best regards > > -- Eduardo Otubo IBM Linux Technology Center