delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/20/20:35:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C6F1F4A.2030901@redhat.com>
Date: Fri, 20 Aug 2010 18:35:22 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] NEW: {libtirpc/libtirpc1/libtirpc-devel}-0.2.1-1
References: <201008191720 DOT o7JHKGoE008398 AT mx1 DOT redhat DOT com>
In-Reply-To: <201008191720.o7JHKGoE008398@mx1.redhat.com>
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

On 08/19/2010 11:13 AM, Charles Wilson wrote:
> libtirpc is an updated version of the Sun RPC library. As such, it
> replaces part of the (orphaned) sunrpc package -- just as on linux, it
> replaces the built-in RPC routines in glibc:
>     http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php
> You should update sunrpc, if installed, to 4.0-4 or above.
>
> The headers are installed into
>     /usr/lib/tirpc/rpc/*
> and not
>     /usr/lib/rpc/
>
> As a consequence, developers must add -I/usr/lib/tirpc when compiling
> RPC clients and servers on cygwin. Similarly, linking requires -ltirpc.
> However, this is the same procedure used on linux -- so any client
> that has already been taught how to accept tirpc on linux will be fine
> on cygwin.

(Hmm - libvirt hasn't yet learned how to use tirpc on Linux, since 
rpc/rpc.h is directly in /usr/include on Fedora as part of 
glibc-headers; so I had to run 'make CFLAGS=-I/usr/include/tirpc 
LDFLAGS=-ltirpc', but that's an issue for the libvirt mailing list).

Meanwhile, this warning is a bit annoying; and did not happen with the 
older sunrpc headers.  Any chance you can silence them in a -2 release?

In file included from ././remote/qemu_protocol.h:9,
                  from remote/qemu_protocol.c:7:
/usr/include/tirpc/rpc/rpc.h:84: warning: redundant redeclaration of 
'bindresvport' [-Wredundant-decls]
/usr/include/netinet/in.h:21: warning: previous declaration of 
'bindresvport' was here
/usr/include/tirpc/rpc/rpc.h:95: warning: redundant redeclaration of 
'bindresvport_sa' [-Wredundant-decls]
/usr/include/netinet/in.h:22: warning: previous declaration of 
'bindresvport_sa' was here

But in spite of the warnings, I was still able to build libvirt on 
cygwin after today's upgrade, so good job on the release.

-- 
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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