Subject: Re: rpcgen generates wrong server code
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 05/11/2004 12:15:36
In article <200405111021.23195.ianzag@megasignal.com>,
Ian Zagorskih <ianzag@megasignal.com> wrote:
>
>uname -a
>NetBSD IANZAG 2.0_BETA NetBSD 2.0_BETA (IANZAG) #0: Fri May  7 17:55:29 NOVST 
>2004
>
>I'm trying to build some simple RPC examples from "UNIX IPC" by Stevens like 
>listed below:
>
>--- square.x---
>struct square_in {              /* input (argument) */
>  long  arg1;
>};
>
>struct square_out {             /* output (result) */
>  long  res1;
>};
>
>program SQUARE_PROG {
>    version SQUARE_VERS {
>        square_out      SQUAREPROC(square_in) = 1; /* procedure number = 1 */
>    } = 1;                              /* version number */
>} = 0x31230000;                 /* program number */
>--- square.x---
>
>While building the client side seems to be fine but there's some problems with 
>server:
>
>---cut---
>rpcgen -C square.x

use rpcgen -C -b square.x

christos