delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/29/05:52:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=dz8d1pfNko+Y2d/q
tDy50QTcl438xOyOCAmUi6smSnhYUKSJ81pMvVkqw5mSI3/5qH7KqyrV/Mu+KYnk
EKgesMN3O+kehxZiRBSdmR53yLqajKSAVm6/vUj+fYY7J32R88g3QLXFCYMtbFEE
fS98gnmxKj3TkZ1mBS5V/a2l2jU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Dg8HkBXTcbGluSwFPglh+z
Up0U4=; b=ksfL5M7BZtyG9GWkG5so0n2nsMFicUnxNwkM970xG2xQgjhDVpJsJr
IbsDT4jHmoMvl0wpLXmvy/vk77nnuq69wgDYG6CT2wM5DQlLf7EcUzFwLaD1QyAu
zIr5pDDIk7z9MZW0NvUOzWyY1yjo3EDzPX5HhcyG1bJQ0MYGDqKTk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*UA:Firefox, H*c:ISO-8859-1, 1.0.1, congrats
X-HELO: m0.truegem.net
Subject: Re: RPC clnt_create() adress already in use
To: cygwin AT cygwin DOT com
References: <59D90AF8D70E9740907BACDE2BCB52083663B2F2 AT RESW102 DOT resdom01 DOT local>
From: Mark Geisert <mark AT maxrnd DOT com>
Message-ID: <61904960-a940-b179-0462-3d8d3ac23d71@maxrnd.com>
Date: Fri, 29 Sep 2017 02:52:19 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
MIME-Version: 1.0
In-Reply-To: <59D90AF8D70E9740907BACDE2BCB52083663B2F2@RESW102.resdom01.local>

PAULUS, Raimund, TI-ABN wrote:
> Hello Mark,
>
> i downloaded the sources of libtirpc from this url: https://sourceforge.net/projects/libtirpc/files/libtirpc/1.0.1/ and unpacked it in the local subdirectory libtirpc-1.0.1.
> I had to make the following changes:
>
> libtirpc-1.0.1/src/clnt_bcast.c (because POLLRDNORM, POLLRDBAND are already defined in /usr/include/sys/poll.h) :
>
> --> #ifndef POLLRDNORM
> --> # define POLLRDNORM     0x040           /* Normal data may be read.  */
> --> # define POLLRDBAND     0x080           /* Priority data may be read.  */
> --> #endif
>
> libtirpc-1.0.1/tirpc/rpc/xdr.h (typedefs where missed):
>
> --> #include <rpc/types.h>
>
> --> typedef __uint64_t      u_quad_t;
> --> typedef __int64_t       quad_t;
>
>
> I linked the necessary source files with my testprogram:
>
> gcc -D__GLIBC__ -D__linux__ -I/c/dh-progs/tstdir/libtirpc-1.0.1/tirpc \
> tst_rpc.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/clnt_bcast.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/clnt_dg.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/clnt_generic.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/clnt_perror.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/clnt_vc.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpc_callmsg.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpc_commondata.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpc_generic.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpc_prot.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpcb_clnt.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/rpcb_prot.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/xdr.c  \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/xdr_array.c  \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/xdr_mem.c  \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/xdr_rec.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/xdr_reference.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/getnetconfig.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/getnetpath.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/auth_none.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/auth_unix.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/authunix_prot.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/mt_misc.c \
> /c/dh-progs/tstdir/libtirpc-1.0.1/src/debug.c \
> -o tst_rpc-libtirpc-1-0-1
>
> The program works perfectly (no errors is test cases 1 and 2).
>
> I assume, there must be a difference between the downloaded lib-files and the Cygwin-libtirpc.

Thank you Raimund for debugging this to the root cause.  Cygwin claims to be 
providing libtirpc 1.0.1 so I suspect you're correct about the cause.  I will 
figure out what the differences are and take the issue up with the Cygwin 
libtirpc maintainer.  Congrats on solving the problem yourself!
Thanks again,

..mark


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