* [Qemu-devel] qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a function)
@ 2014-01-03 14:54 lejeczek
2014-01-16 16:02 ` Eduardo Otubo
0 siblings, 1 reply; 2+ messages in thread
From: lejeczek @ 2014-01-03 14:54 UTC (permalink / raw)
To: qemu-devel
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)
what can be wrong?
perhaps interestingly package qemu-1.2.0-22.fc19.src.rpm
rpmbuild-comiles fine
best regards
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a function)
2014-01-03 14:54 [Qemu-devel] qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a function) lejeczek
@ 2014-01-16 16:02 ` Eduardo Otubo
0 siblings, 0 replies; 2+ messages in thread
From: Eduardo Otubo @ 2014-01-16 16:02 UTC (permalink / raw)
To: lejeczek; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-16 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 14:54 [Qemu-devel] qemu-seccomp.c:228: error: '__NR_getcpu' undeclared here (not in a function) lejeczek
2014-01-16 16:02 ` Eduardo Otubo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.