public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: RPC clnt_create() adress already in use
Date: Fri, 29 Sep 2017 17:36:00 -0000	[thread overview]
Message-ID: <61904960-a940-b179-0462-3d8d3ac23d71@maxrnd.com> (raw)
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

  reply	other threads:[~2017-09-29  9:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-29  9:52 PAULUS, Raimund, TI-ABN
2017-09-29 17:36 ` Mark Geisert [this message]
2017-11-21 12:35   ` WG: " PAULUS, Raimund, TI-ABN
2017-11-22 21:54     ` Mark Geisert
  -- strict thread matches above, loose matches on Subject: below --
2018-03-08 11:44 PAULUS, Raimund, TI-ABN
2018-03-08 15:24 ` Corinna Vinschen
2018-03-08 23:00 ` Mark Geisert
2018-03-02 10:39 PAULUS, Raimund, TI-ABN
2018-02-27  9:54 PAULUS, Raimund, TI-ABN
2018-02-27 10:37 ` Corinna Vinschen
2018-02-28  6:00   ` Mark Geisert
2018-02-06 11:29 PAULUS, Raimund, TI-ABN
2018-02-06 14:20 ` Corinna Vinschen
2018-02-07  6:54   ` Mark Geisert
2018-02-05 14:58 PAULUS, Raimund, TI-ABN
2018-02-05  8:19 PAULUS, Raimund, TI-ABN
2018-02-05 10:29 ` Mark Geisert
2018-02-05 11:26   ` Corinna Vinschen
2018-02-05 13:34     ` Corinna Vinschen
2018-02-05 14:06       ` Corinna Vinschen
2018-02-05 20:15         ` Corinna Vinschen
2018-02-02 12:58 PAULUS, Raimund, TI-ABN
2018-01-30 10:07 PAULUS, Raimund, TI-ABN
2018-01-31  8:15 ` Mark Geisert
2018-01-31  9:11   ` Corinna Vinschen
2018-01-31  9:35     ` Mark Geisert
2018-02-02  8:11       ` Mark Geisert
2018-01-30  7:01 PAULUS, Raimund, TI-ABN
2018-01-30  9:05 ` Mark Geisert
2017-12-19 16:13 PAULUS, Raimund, TI-ABN
2017-12-28  0:03 ` Mark Geisert
2017-09-27 12:51 PAULUS, Raimund, TI-ABN
2017-09-25  6:44 PAULUS, Raimund, TI-ABN
2017-09-27  9:50 ` Mark Geisert
2017-09-22  7:22 PAULUS, Raimund, TI-ABN
2017-09-24  9:49 ` Mark Geisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61904960-a940-b179-0462-3d8d3ac23d71@maxrnd.com \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).