Subject: Re: RPC for cygwin
From: [email-masked] (Corinna Vinschen)

17 Jan 1999 21:06:26 -0800
Message-ID: <[email-masked]>
References: <01BE4073.65D001A0@sos>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "Dr. Volker Zell" <[email-masked]>, [email-masked]

Dr. Volker Zell wrote:
> 
> Hi Corinna
> 
> A make after unpacking your sunrpc-4.0.cygwin1.src.tar.gz
> gives me the following errors:
> 
> ---
> [...] 
> pmap_rmt.c: In function `getbroadcastnets':
> pmap_rmt.c:199: incompatible type for argument 1 of `inet_netof'

Yes, use a newer snapshot, best is winsup-19981223 incl. header files.
It already contains my patch to socket-ioctl, where SIOCGFIFBRDADDR 
is now defined. Moreover, this snapshot is yet binary compatible to B20
and it's the last one! You also may use the cv_cygwin1.dll from
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Vinschen_Corinna/B20/
which is generated from winsup-19981223.

Another possibility:
pmap_rmt.c, line 198/199 contains:

                        addrs[i++] = inet_makeaddr(inet_netof
                          (sin->sin_addr.s_addr), INADDR_ANY);

which is incompatible to POSIX definition of inet_netof:

RPCSRC:	inet_netof(unsigned int)
POSIX:	inet_netof(struct in_addr)
(look into .../include/cygwin/in.h)

Patch it like in lines 192/193:

                        addrs[i++] = inet_makeaddr(inet_netof
                          (sin->sin_addr), INADDR_ANY);

Regards,
Corinna
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".