I'm going a bit crazy trying to figure out why this isn't working. I'm using sunrpc, but the generated server code throws the following:
Cannot register service: RPC: Can't encode arguments
unable to register (MYRPC, MYRPC_V1, udp).
I have no idea why this is happening. I'm doing the following to generate the stubs:
$ rpcgen -NMC myrpc.x
Here's my XDR
struct imgdata{
opaque data<>;
};
program MYRPC {
version MYRPC_V1 {
imgdata minify(imgdata) = 1;
} = 1;
} = 0x30D0D0DFF;
I don't get any errors compiling the .x file to create the client, server, xdr marshalling code, or the header. I've also implemented the rpc interface, but haven't been able to test it since that error is thrown the moment I attempt to spin up the generated server (myrpc_svr.c).
What arguments is this error message even referring? Does it not like my implementation of my function defined in the XDR? Why would an encoding argument cause the program to not even register?
I'm actually very surprised that this isn't a client side error message