Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 1996 11:43:47 -0800 (PST)
From:      "Brant Katkansky" <brantk@gatekeeper.atlas.com>
To:        hackers@freebsd.org
Subject:   need help w/rpc stuff
Message-ID:  <9602211943.AA00679@billthecat.atlas.com.>

next in thread | raw e-mail | index | archive | help
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	<stdio.h>
#include 	<string.h>
#include	<sys/errno.h>
#include	<sys/types.h>
#include	<sys/time.h>
#include	<rpc/types.h>
#include	<rpc/auth.h>
#include	<rpc/clnt.h>
#include	<rpc/pmap_prot.h>
#include	<sys/socket.h>
#include	<netinet/in.h>
#include	<rpc/svc.h>
#include	<rpc/xdr.h>
#include	<netdb.h>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9602211943.AA00679>