From owner-freebsd-hackers Wed Feb 21 11:54:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA23578 for hackers-outgoing; Wed, 21 Feb 1996 11:54:20 -0800 (PST) Received: from atlas.com (gw.atlas.com [205.139.124.67]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id LAA23571 for ; Wed, 21 Feb 1996 11:54:16 -0800 (PST) Received: from billthecat.atlas.com. (billthecat.atlas.com [97.12.13.38]) by atlas.com (8.7.1/8.7.1) with SMTP id LAA18337 for ; Wed, 21 Feb 1996 11:43:01 -0800 (PST) Received: by billthecat.atlas.com. (4.1/SMI-4.1) id AA00679; Wed, 21 Feb 96 11:43:48 PST Message-Id: <9602211943.AA00679@billthecat.atlas.com.> Subject: need help w/rpc stuff To: hackers@freebsd.org Date: Wed, 21 Feb 1996 11:43:47 -0800 (PST) From: "Brant Katkansky" X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk I'm porting some proprietary software from SunOS 4.x to run under FreeBSD 2.1.0-RELEASE and having some problems with included header files. The includes are as follows: #include #include #include #include #include #include #include #include #include #include #include #include #include #include With just these includes, and an empty main() function, the cc compiler spits out the following: In file included from foo.c:50: /usr/include/rpc/auth.h:84: parse error before `*' In file included from foo.c:51: /usr/include/rpc/clnt.h:278: warning: `struct sockaddr_in' declared inside parameter list /usr/include/rpc/clnt.h:278: warning: its scope is only this definition or declaration, /usr/include/rpc/clnt.h:278: warning: which is probably not what you want. /usr/include/rpc/clnt.h:308: warning: `struct sockaddr_in' declared inside parameter list /usr/include/rpc/clnt.h:315: warning: `struct sockaddr_in' declared inside parameter list In file included from foo.c:52: /usr/include/rpc/pmap_prot.h:100: parse error before `*' /usr/include/rpc/pmap_prot.h:101: parse error before `*' In file included from foo.c:55: /usr/include/rpc/svc.h:225: parse error before `xdrproc_t' I suspect that I need to add one or more additional includes, but I have no idea. BTW, this code compiles fine under SunOS. -- Brant Katkansky (brantk@atlas.com) Systems Test Engineer, ADC