From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5BMN-0003uA-8j for qemu-devel@nongnu.org; Sat, 05 Dec 2015 06:50:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5BML-00040H-E9 for qemu-devel@nongnu.org; Sat, 05 Dec 2015 06:50:39 -0500 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:35043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5BML-00040C-4k for qemu-devel@nongnu.org; Sat, 05 Dec 2015 06:50:37 -0500 Received: by vkha189 with SMTP id a189so79860844vkh.2 for ; Sat, 05 Dec 2015 03:50:36 -0800 (PST) MIME-Version: 1.0 Date: Sat, 5 Dec 2015 11:50:36 +0000 Message-ID: From: Paul Roland Content-Type: multipart/alternative; boundary=001a1141539e70ff8c0526253b30 Subject: [Qemu-devel] qemu-seccomp.c:216: error: '__NR_getcpu' undeclared here (not in a function) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001a1141539e70ff8c0526253b30 Content-Type: text/plain; charset=UTF-8 Hi there, I am trying to create an rpm package out of qemu 2.4.1, thought maybe it's something obvious and somebody could guide me in the right direction As soon as I add --enable-seccomp I get this error on compilation: qemu-seccomp.c:216: error: '__NR_getcpu' undeclared here (not in a function) make: *** [qemu-seccomp.o] Error 1 make: *** Waiting for unfinished jobs.... Other relevant info: [root@devel SPECS]# rpm -qa | grep secc libseccomp-2.2.3-0.fc23.x86_64 libseccomp-devel-2.2.3-0.fc23.x86_64 [root@devel SPECS]# + ./configure '--extra-cflags=-O2 -g -pipe -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE -DPIE' --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --interp-prefix=/usr/qemu-%M --with-confsuffix=/qemu-kvm --localstatedir=/var --libexecdir=/usr/libexec --target-list=x86_64-softmmu --disable-qom-cast-debug --disable-vhdx --disable-libssh2 --disable-glusterfs --enable-seccomp --disable-usb-redir --disable-libusb --disable-smartcard-nss --disable-libiscsi --disable-spice --disable-docs --disable-vde --disable-guest-base --disable-bsd-user --disable-rdma --disable-slirp --disable-bluez --disable-fdt --disable-curl --disable-curses --disable-vnc-png --disable-vnc-jpeg --disable-vnc-sasl --disable-vnc-tls --disable-brlapi --disable-xen-pci-passthrough --disable-xen --disable-cocoa --disable-virtfs --disable-gtk --disable-sdl --disable-debug-info --disable-debug-tcg --enable-vhost-net --enable-kvm --enable-linux-user --disable-cap-ng --block-drv-rw-whitelist=qcow2,raw,file,host_device --block-drv-ro-whitelist=vmdk,vhdx,vpc --enable-guest-agent --enable-libssh2 --enable-numa --enable-coroutine-pool --disable-tpm --disable-snappy --disable-bzip2 --disable-lzo --disable-vnc-tls --disable-gnutls --disable-vte Install prefix /usr BIOS directory /usr/share/qemu-kvm binary directory /usr/bin library directory /usr/lib64 module directory /usr/lib64/qemu-kvm libexec directory /usr/libexec include directory /usr/include config directory /etc local state directory /var Manual directory /usr/share/man ELF interp prefix /usr/qemu-%M Source path /root/rpmbuild/BUILD/qemu-2.4.1 C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include QEMU_CFLAGS -I/usr/include/pixman-1 -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -O2 -g -pipe -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE -DPIE -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 make make install install python python -B module support no host CPU x86_64 host big endian no target list x86_64-softmmu tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support no GTK support no GNUTLS support no GNUTLS hash no GNUTLS gcrypt no GNUTLS nettle no () VTE support no curses support no curl support no mingw32 support no Audio drivers oss Block whitelist (rw) qcow2 raw file host_device Block whitelist (ro) vmdk vhdx vpc VirtFS support no VNC support yes VNC TLS support no VNC SASL support no VNC JPEG support no VNC PNG support no xen support no brlapi support no bluez support no Documentation no GUEST_BASE no PIE yes vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support no preadv support yes fdatasync yes madvise yes posix_madvise yes sigev_thread_id yes uuid support yes libcap-ng support no vhost-net support yes vhost-scsi support yes Trace backends nop spice support no rbd support no xfsctl support no nss used no libusb no usb net redir no OpenGL support no libiscsi support no libnfs support no build guest agent yes QGA VSS support no QGA w32 disk info no seccomp support yes coroutine backend ucontext coroutine pool yes GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support no libssh2 support yes TPM passthrough no QOM debugging no vhdx no lzo support no snappy support no bzip2 support no NUMA host support yes tcmalloc support no --001a1141539e70ff8c0526253b30 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi there, I am trying to create an rpm package out of= qemu 2.4.1, thought maybe it's something obvious and somebody could gu= ide me in the right direction

As soon as I add --enable-= seccomp I get this error on compilation:

qemu-seccomp.c:216: error: = '__NR_getcpu' undeclared here (not in a function)
make: *** [qem= u-seccomp.o] Error 1
make: *** Waiting for unfinished jobs....

Other relevant info:

[root@devel SPECS]# rpm -qa= | grep secc
libseccomp-2.2.3-0.fc23.x86_64
libseccomp-devel-2.2.3-0.= fc23.x86_64
[root@devel SPECS]#

+ ./configure '--extra-cflags= =3D-O2 -g -pipe -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D= 4 -m64 -mtune=3Dgeneric -fPIE -DPIE' --prefix=3D/usr --libdir=3D/usr/li= b64 --sysconfdir=3D/etc --interp-prefix=3D/usr/qemu-%M --with-confsuffix=3D= /qemu-kvm --localstatedir=3D/var --libexecdir=3D/usr/libexec --target-list= =3Dx86_64-softmmu --disable-qom-cast-debug --disable-vhdx --disable-libssh2= --disable-glusterfs --enable-seccomp --disable-usb-redir --disable-libusb = --disable-smartcard-nss --disable-libiscsi --disable-spice --disable-docs -= -disable-vde --disable-guest-base --disable-bsd-user --disable-rdma --disab= le-slirp --disable-bluez --disable-fdt --disable-curl --disable-curses --di= sable-vnc-png --disable-vnc-jpeg --disable-vnc-sasl --disable-vnc-tls --dis= able-brlapi --disable-xen-pci-passthrough --disable-xen --disable-cocoa --d= isable-virtfs --disable-gtk --disable-sdl --disable-debug-info --disable-de= bug-tcg --enable-vhost-net --enable-kvm --enable-linux-user --disable-cap-n= g --block-drv-rw-whitelist=3Dqcow2,raw,file,host_device --block-drv-ro-whit= elist=3Dvmdk,vhdx,vpc --enable-guest-agent --enable-libssh2 --enable-numa -= -enable-coroutine-pool --disable-tpm --disable-snappy --disable-bzip2 --dis= able-lzo --disable-vnc-tls --disable-gnutls --disable-vte
Install prefix= =C2=A0=C2=A0=C2=A0 /usr
BIOS directory=C2=A0=C2=A0=C2=A0 /usr/share/qemu= -kvm
binary directory=C2=A0 /usr/bin
library directory /usr/lib64
= module directory=C2=A0 /usr/lib64/qemu-kvm
libexec directory /usr/libexe= c
include directory /usr/include
config directory=C2=A0 /etc
local= state directory=C2=A0=C2=A0 /var
Manual directory=C2=A0 /usr/share/man<= br>ELF interp prefix /usr/qemu-%M
Source path=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 /root/rpmbuild/BUILD/qemu-2.4.1
C compiler=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 cc
Host C compiler=C2=A0=C2=A0 cc
C++ compil= er=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 c++
Objective-C compiler cc
ARFLAGS= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rv
CFLAGS= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -O2 -U_F= ORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -pthread -I/usr/include/glib-2.0 -I/usr= /lib64/glib-2.0/include
QEMU_CFLAGS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = -I/usr/include/pixman-1=C2=A0=C2=A0=C2=A0 -fPIE -DPIE -m64 -D_GNU_SOURCE -D= _FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-= decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasi= ng -fno-common=C2=A0 -O2 -g -pipe -fexceptions -fstack-protector --param=3D= ssp-buffer-size=3D4 -m64 -mtune=3Dgeneric -fPIE -DPIE -Wendif-labels -Wmiss= ing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y= 2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-def= inition -Wtype-limits -fstack-protector-all
LDFLAGS=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -Wl,--warn-common -Wl,-z,relro -Wl,= -z,now -pie -m64
make=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 make
install=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 install
python=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 python -B
module support=C2=A0= =C2=A0=C2=A0 no
host CPU=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 x86_64
host big endian=C2=A0=C2=A0 no
target list=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 x86_64-softmmu
tcg debug enabled no
gprof en= abled=C2=A0=C2=A0=C2=A0=C2=A0 no
sparse enabled=C2=A0=C2=A0=C2=A0 no
= strip binaries=C2=A0=C2=A0=C2=A0 yes
profiler=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 no
static build=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 no
pixman=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 system
SDL support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
G= TK support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
GNUTLS support=C2=A0= =C2=A0=C2=A0 no
GNUTLS hash=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
GN= UTLS gcrypt=C2=A0=C2=A0=C2=A0=C2=A0 no
GNUTLS nettle=C2=A0=C2=A0=C2=A0= =C2=A0 no ()
VTE support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
curse= s support=C2=A0=C2=A0=C2=A0 no
curl support=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 no
mingw32 support=C2=A0=C2=A0 no
Audio drivers=C2=A0=C2=A0=C2=A0= =C2=A0 oss
Block whitelist (rw) qcow2 raw file host_device
Block whit= elist (ro) vmdk vhdx vpc
VirtFS support=C2=A0=C2=A0=C2=A0 no
VNC supp= ort=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 yes
VNC TLS support=C2=A0=C2=A0 = no
VNC SASL support=C2=A0 no
VNC JPEG support=C2=A0 no
VNC PNG sup= port=C2=A0=C2=A0 no
xen support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nobrlapi support=C2=A0=C2=A0=C2=A0 no
bluez=C2=A0 support=C2=A0=C2=A0=C2= =A0 no
Documentation=C2=A0=C2=A0=C2=A0=C2=A0 no
GUEST_BASE=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
PIE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 yes
vde support= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
netmap support=C2=A0=C2=A0=C2=A0= no
Linux AIO support yes
ATTR/XATTR support yes
Install blobs=C2= =A0=C2=A0=C2=A0=C2=A0 yes
KVM support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 yes
RDMA support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
TCG interpreter= =C2=A0=C2=A0 no
fdt support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
pr= eadv support=C2=A0=C2=A0=C2=A0 yes
fdatasync=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 yes
madvise=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 yes
posix_madvise=C2=A0=C2=A0=C2=A0=C2=A0 yes
s= igev_thread_id=C2=A0=C2=A0 yes
uuid support=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 yes
libcap-ng support no
vhost-net support yes
vhost-scsi supp= ort yes
Trace backends=C2=A0=C2=A0=C2=A0 nop
spice support=C2=A0=C2= =A0=C2=A0=C2=A0 no
rbd support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 noxfsctl support=C2=A0=C2=A0=C2=A0 no
nss used=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 no
libusb=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
usb net redir=C2=A0=C2=A0=C2=A0=C2= =A0 no
OpenGL support=C2=A0=C2=A0=C2=A0 no
libiscsi support=C2=A0 no<= br>libnfs support=C2=A0=C2=A0=C2=A0 no
build guest agent yes
QGA VSS = support=C2=A0=C2=A0 no
QGA w32 disk info no
seccomp support=C2=A0=C2= =A0 yes
coroutine backend ucontext
coroutine pool=C2=A0=C2=A0=C2=A0 y= es
GlusterFS support no
Archipelago support no
gcov=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gcov
gco= v enabled=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
TPM support=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 no
libssh2 support=C2=A0=C2=A0 yes
TPM passthrough= =C2=A0=C2=A0 no
QOM debugging=C2=A0=C2=A0=C2=A0=C2=A0 no
vhdx=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no=
lzo support=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 no
snappy support=C2= =A0=C2=A0=C2=A0 no
bzip2 support=C2=A0=C2=A0=C2=A0=C2=A0 no
NUMA host= support yes
tcmalloc support=C2=A0 no


--001a1141539e70ff8c0526253b30--