delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/12/15:50:25

X-Spam-Check-By: sourceware.org
Message-ID: <448DC56D.5030202@cygwin.com>
Date: Mon, 12 Jun 2006 15:50:05 -0400
From: "Larry Hall (Cygwin Apps)" <reply-to-list-only-lh-apps AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problems with sunrpc
References: <f0d10dd60606121216n1395040dhe160e0e8ca44c9fd AT mail DOT gmail DOT com>
In-Reply-To: <f0d10dd60606121216n1395040dhe160e0e8ca44c9fd@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Zahir Koradia wrote:
> Hi,
> This message might be specifically for Sam Robb but am sendign to the
> whole list as others may be able to help. I installed the binaries and
> downloaded the source of sunrpc while installing cygwin. I intended to
> use the function clnttcp_create present in clnt.h header. The anamoly
> I see is that in the header file the signature has no parameters and
> in the source code the function definition has parameters. The
> signature in the header file is
> /*
> * TCP based rpc
> * CLIENT *
> * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
> *    struct sockaddr_in *raddr;
> *    u_long prog;
> *    u_long version;
> *    register int *sockp;
> *    u_int sendsz;
> *    u_int recvsz;
> */
> extern CLIENT *clnttcp_create( );
> 
> and the source code (clnt_tcp.c) definition had the line
> 
> CLIENT *
> clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
>    struct sockaddr_in *raddr;
>    u_long prog;
>    u_long vers;
>    register int *sockp;
>    u_int sendsz;
>    u_int recvsz;
> {
> 
> This code does not compile. When I use the function with parameters in
> my code it gives me error "undefined reference to..." then i went and
> changed the signature in the header file itself. I did get past that
> error but now I have a loader error stating that there is no
> implementation for the function (with parameters).
> 
> I wanted to know whether the binaries have the function with
> parameters or without them. To me having the function without the
> parameters seems unlikely. Where can I get the right header file? Am I
> going wrong somewhere myself?
> 
> In clnt.h header file the macro definition
> #define    clnt_destroy(rh)    ((*(rh)->cl_ops->cl_destroy)(rh))
> is fault since if u look at the client structure u will notice that
> cl_destroy does not take any arguments. The definition should have
> been
> #define    clnt_destroy(rh)    ((*(rh)->cl_ops->cl_destroy)())
> 
> Is the version that i have got very old? (It is 4.0.2 or 4.0.3 i dont
> rememebr exactly which one)
> 
> Can some please clear thing out here?
> 
> Thanx,
> Zahir Koradia
> 


Wrong list.  Cygwin-apps is for packaging issues.  The cygwin list is for
bugs/problems/questions.  I've cc'd that list and set the reply-to
appropriately.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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