This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: <rpc/rpc.h> missing #include <netinet/in.h> with sunrpc 4.0-3 and cygwin 1.7.5-1
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Jun 2010 13:50:36 +0200
- Subject: Re: <rpc/rpc.h> missing #include <netinet/in.h> with sunrpc 4.0-3 and cygwin 1.7.5-1
- References: <20100629100713.GA18504@sajinet.com.pe>
- Reply-to: cygwin at cygwin dot com
On Jun 29 10:07, Carlo Marcelo Arenas Belon wrote:
> Greetings,
>
> the following will fail to build with recent cygwin (works with
> cygwin-legacy though) :
>
> $ cat > t.c
> #include <rpc/rpc.h>
>
> int main(int argc, char *argv[])
> {
> return 0;
> }
> ^D
> $ make t
> cc t.c -o t
> In file included from /usr/include/rpc/rpc.h:61,
> from t.c:1:
> /usr/include/rpc/svc.h:83: error: field `xp_raddr' has incomplete type
> make: *** [t] Error 1
>
> the problem being that xp_raddr is being defined as "struct sockaddr_in"
> and that is not being defined on cygwin's version of rpc.h (it is upstream,
> on linux and opensolaris)
>
> there is a changelog entry from 2003 that mention that include was added
> and later removed but couldn't find any more references to it to know about
> the rationale behind it.
>
> Carlo
>
> CC Sam who did the change and hopefully could help give some more context
The files /usr/include/rpc/rpc.h and /usr/include/rpc/svc.h are provided
by the sunrpc package. Unfortunaltey Sam has resigned from the sunrpc
package maintainership and nobody has picked it up yet, so it's an
orphaned package which is in need of a maintainer.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple