delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/17/21:06:26

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: Re: RPC for cygwin
17 Jan 1999 21:06:26 -0800 :
Message-ID: <36A267FB.393133FF.cygnus.gnu-win32@cityweb.de>
References: <01BE4073 DOT 65D001A0 AT sos>
Mime-Version: 1.0
To: "Dr. Volker Zell" <vzell AT de DOT oracle DOT com>, gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019