qmp_* functions into 'kvm-all.c'
Hi all,
I just created a new QMP command following the
'writing-qmp-commands.txt' howto.
It's works well by adding the corresponding function into 'qmp.c', but when I want to insert the function in 'kvm-all.c' (which is my goal) I get an 'undefined reference' error to the function from 'qmp-marchal.c' during the compilation.
I already included "qmp-commands.h" in 'kvm-all.c' preprocessor but it didn't solve the problem.
Does someone know how to fix it (or why it happens) ? Thanks.
Regards,
Signature · 2 lines
Vincent KHERBACHE PhD Student at INRIA Sophia (FRANCE)
Hi,
Am 10.02.2014 19:18, schrieb Vincent KHERBACHE:
Quoted 7 lines
I just created a new QMP command following the
'writing-qmp-commands.txt' howto.It's works well by adding the corresponding function into '
qmp.c', but when I want to insert the function in 'kvm-all.c' (which is my goal) I get an 'undefined reference' error to the function from 'qmp-marchal.c' during the compilation.
Have you thought of also adding a corresponding function to kvm-stub.c for the targets not linking kvm-all.c?
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
That's right !
Problem solved by adding the stub function to 'kvm-stub.c'.
Thank you very much !
Quoted 17 lines · Andreas Färber
Hi,
Am 10.02.2014 19:18, schrieb Vincent KHERBACHE:
Quoted 7 lines
I just created a new QMP command following the
'writing-qmp-commands.txt' howto.It's works well by adding the corresponding function into '
qmp.c', but when I want to insert the function in 'kvm-all.c' (which is my goal) I get an 'undefined reference' error to the function from 'qmp-marchal.c' during the compilation.Have you thought of also adding a corresponding function to
kvm-stub.cfor the targets not linkingkvm-all.c?Regards,
Andreas
Signature · 1 line
Vincent KHERBACHE
Il 10/02/2014 19:18, Vincent KHERBACHE ha scritto:
Quoted 9 lines
I just created a new QMP command following the
'writing-qmp-commands.txt' howto.It's works well by adding the corresponding function into '
qmp.c', but when I want to insert the function in 'kvm-all.c' (which is my goal) I get an 'undefined reference' error to the function from 'qmp-marchal.c' during the compilation.
Quoted 6 lines
I already included "
qmp-commands.h" in 'kvm-all.c' preprocessor but it didn't solve the problem.Does someone know how to fix it (or why it happens) ? Thanks.
Maybe you need to add a dummy implementation in kvm-stub.c? kvm-all.c is not compiled into all targets, only on the "native" ones (e.g. i386 and x86_64 if compiling on x86).
Paolo