delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/29/06:07:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Jun 2010 10:07:13 +0000
From: Carlo Marcelo Arenas Belon <carenas AT sajinet DOT com DOT pe>
To: cygwin AT cygwin DOT com
Cc: sam DOT robb AT timesys DOT com
Subject: <rpc/rpc.h> missing #include <netinet/in.h> with sunrpc 4.0-3 and cygwin 1.7.5-1
Message-ID: <20100629100713.GA18504@sajinet.com.pe>
MIME-Version: 1.0
User-Agent: Mutt/1.5.18 (2008-05-17)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

--
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

- Raw text -


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