From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 16 12:35:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2932316A419 for ; Fri, 16 Nov 2007 12:35:13 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id D5F4513C48A for ; Fri, 16 Nov 2007 12:35:12 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id 948422219D16; Fri, 16 Nov 2007 23:19:57 +1100 (EST) X-Viruscan-Id: <473D8AED0000411665AE9C@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id 6029D21B1325 for ; Fri, 16 Nov 2007 23:19:57 +1100 (EST) Received: from k7.mavetju (k7.mavetju.org [10.251.1.18]) by mail5auth.barnet.com.au (Postfix) with ESMTP id 8C6FB2219C85 for ; Fri, 16 Nov 2007 23:19:56 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 2A987F0; Fri, 16 Nov 2007 23:19:53 +1100 (EST) Date: Fri, 16 Nov 2007 23:19:53 +1100 From: Edwin Groothuis To: freebsd-hackers@freebsd.org Message-ID: <20071116121953.GA56382@k7.mavetju> Mail-Followup-To: Edwin Groothuis , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: rpcgen issues on ports/security/cfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2007 12:35:13 -0000 Hello, I needed to get the security/cfs port running on a FreeBSD 7 machine, but it didn't compile at all. The issue was that rpcgen created code like: extern void * admproc_null_2(void *, CLIENT *); extern void * admproc_null_2_svc(void *, struct svc_req *); #define ADMPROC_ATTACH ((unsigned long)(1)) but what worked was: extern void * admproc_null_2(void *, CLIENT *); #define admproc_null_2_svc admproc_null_2 #define ADMPROC_ATTACH ((unsigned long)(1)) (instead of prototyping the _svc function, just make it the same as the non _svc version) And: #define NFSPROC_SETATTR ((unsigned long)(2)) extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *); extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *); but what worked was: #define NFSPROC_SETATTR ((unsigned long)(2)) extern attrstat * nfsproc_setattr_2(sattrargs *, SR *); #define nfsproc_setattr_2_svc nfsproc_setattr_2 (instead of a CLIENT *, have a SR *) That is all code generated by rpcgen. I tried to run rpcgen with the -b option, but that didn't really work. I'm really without a clue here on how to resolve this, not knowing what rpcgen really does do. But I know that the binaries posted to http://www.mavetju.org/~edwin/cfs-1.4.1-7.0.tar.gz do work on FreeBSD 7.0 and that I'm more than happy to see if I can get it up and running with different options than patched the code generated by rpcgen :-) Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/