[libvirt] make not invoking rpcgen remote_protocol.x

I am attempting to add some new libvirt functions that I intend to submit for your approval. I have made changes to remote_protocol.x. Initially it generated the expected files. However, after making a few changes the make no causes it to generate files. Manually invoke rpcgen -c remote_protocol.x > remote_protocol.c seems to get around the compile problem. But now I'm getting a "Remote error : marshaling args" I 'm think there is a problem in the make. Kenneth Nagin

from the top level, you could do a make -C src remote_protocol.c This should re-generate both .c and .h files from the .x Kenneth Nagin wrote on 11/10/2008 10:52 AM:
I am attempting to add some new libvirt functions that I intend to submit for your approval. I have made changes to remote_protocol.x. Initially it generated the expected files. However, after making a few changes the make no causes it to generate files. Manually invoke rpcgen -c remote_protocol.x > remote_protocol.c seems to get around the compile problem. But now I'm getting a "Remote error : marshaling args" I 'm think there is a problem in the make.
Kenneth Nagin
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Ben Guthro <bguthro@virtualiron.com> wrote on 10/11/2008 18:03:07:
from the top level, you could do a make -C src remote_protocol.c
This should re-generate both .c and .h files from the .x
make -C src remote_protocol.c does not work. This is the error printout:. [nagin@arenal libvirt]$ make -C src remote_protocol.c make: Entering directory `/home/nagin/workspace/libvirt/src': make: *** No rule to make target `remote_protocol.c'. Stop.: make: Leaving directory `/home/nagin/workspace/libvirt/src'.: I tried it both from libvirt and libvirt/qemud. However,the problem can be overcome by treating the make as a two step process: First update remote_protocol.x and invoke moke make to generate remote_protocol.h remote_protocol.c. Next make changes to the rest of the code that reference remote_protocol.h. If the changes to remote_protocol.x are not backward compatible, then it is necessary to prepare for the first step by removing the offending references and run make. - Kenneth Nagin
Kenneth Nagin wrote on 11/10/2008 10:52 AM:
I am attempting to add some new libvirt functions that I intend to submit for your approval. I have made changes to remote_protocol.x. Initially it generated the expected files. However, after making a few changes the make no causes it to generate files. Manually invoke rpcgen -c remote_protocol.x > remote_protocol.c seems to get around the compile problem. But now I'm getting a "Remote error : marshaling args" I 'm think there is a problem in the make.
Kenneth Nagin
-- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Mon, Nov 10, 2008 at 05:52:30PM +0200, Kenneth Nagin wrote:
I am attempting to add some new libvirt functions that I intend to submit for your approval. I have made changes to remote_protocol.x. Initially it generated the expected files. However, after making a few changes the make no causes it to generate files. Manually invoke rpcgen -c remote_protocol.x > remote_protocol.c seems to get around the compile problem. But now I'm getting a "Remote error : marshaling args" I 'm think there is a problem in the make.
Did you fix this in the end? It matter a lot which version of rpcgen you are using. Currently we only recommend using rpcgen that comes with glibc. This version of rpcgen has its own problems, but not as many as affect other versions of rpcgen. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/

"Richard W.M. Jones" <rjones@redhat.com> wrote on 26/11/2008 15:44:16:
On Mon, Nov 10, 2008 at 05:52:30PM +0200, Kenneth Nagin wrote:
I am attempting to add some new libvirt functions that I intend to
submit
for your approval. I have made changes to remote_protocol.x. Initially it generated the expected files. However, after making a few changes the make no causes it to generate files. Manually invoke rpcgen -c remote_protocol.x > remote_protocol.c seems to get around the compile problem. But now I'm getting a "Remote error : marshaling args" I 'm think there is a problem in the make.
Did you fix this in the end?
It matter a lot which version of rpcgen you are using. Currently we only recommend using rpcgen that comes with glibc. This version of rpcgen has its own problems, but not as many as affect other versions of rpcgen.
Rich.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ The following procedure seems to work: starting from the libvirt root directory> cd qemud rpcgen -c remote_protocol.x cd .. make -C qemud remote_protocol.c make clean make
participants (3)
-
Ben Guthro
-
Kenneth Nagin
-
Richard W.M. Jones