RPC for cygwin

Corinna Vinschen corinna.vinschen@cityweb.de
Sun Jan 31 23:52:00 GMT 1999


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
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list