1833678 Members
4084 Online
110062 Solutions
New Discussion

problem with rpcgen

 
Anand_30
Regular Advisor

problem with rpcgen

Hi,

I have ported some applications from
HP-UX10.20 to HP-UX11.i. Some of my programs are generated by rpcgen. These programs compile absolutely fine while being compiled in HP-UX10.20 but I get some warning messages when I compile them in HP-UX11.i. For instance:
I get the following error:
dispatcher.c:109: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type
for the line:
(void) svc_sendreply(transp, xdr_void,
(char *)NULL);
If I change xdr_void to (xdrproc_t)xdr_void, I don't get this warning message. This code is genrated by rpcgen so again when I generate the code, I get the above mentioned warning message.

I don't know what changes I have to make such that the genrated program does not give this warning message.

Anand




2 REPLIES 2
Umapathy S
Honored Contributor

Re: problem with rpcgen

Anand, I think it was replied previously.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=227473
Arise Awake and Stop NOT till the goal is Reached!
Anand_30
Regular Advisor

Re: problem with rpcgen

Thanks Umapathy,

But rpcgen -k does not work. Do you have any idea how the problem can be resolved.

Anand