From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37463 invoked by alias); 29 Sep 2017 09:52:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 37198 invoked by uid 89); 29 Sep 2017 09:52:25 -0000 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 Received: from m0.truegem.net (HELO m0.truegem.net) (69.55.228.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Sep 2017 09:52:22 +0000 Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id v8T9qKxC074707 for ; Fri, 29 Sep 2017 02:52:20 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 76-217-5-154.lightspeed.irvnca.sbcglobal.net(76.217.5.154), claiming to be "[192.168.1.100]" via SMTP by m0.truegem.net, id smtpdJ6wTms; Fri Sep 29 02:52:19 2017 Subject: Re: RPC clnt_create() adress already in use To: cygwin@cygwin.com References: <59D90AF8D70E9740907BACDE2BCB52083663B2F2@RESW102.resdom01.local> From: Mark Geisert Message-ID: <61904960-a940-b179-0462-3d8d3ac23d71@maxrnd.com> Date: Fri, 29 Sep 2017 17:36:00 -0000 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-09/txt/msg00301.txt.bz2 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 > > --> 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