[comp.unix.aix] Syntax error in /usr/include/rpc/svc.h

tdesai@cad609.intel.com (Tejas Desai) (02/08/91)

	When I try to compile a module which includes <rpc/rpc.h>, I 
get the following error:

Processing include file /usr/include/rpc/svc.h
 23   231 | extern fd_set svc_fdset;
            ..............a.........
a - 1506-046: (S) Syntax error.

The simple test case given below reproduces the problem.

	#include <stdio.h>
	#include <rpc/rpc.h>
	main()
	{
	}

Should I be using any compile time flags or is this a bug? Any help is
appreciated. Thanks.

--
Tejas Desai

Intel Corp., MS:SC3-36
2880 Northwestern Parkway
Santa Clara, CA 95052

email: tdesai@scdt.intel.com
Voice : (408) 765 4215 (0)

All standard disclaimers apply

jsalter@panews (02/09/91)

In article <TDESAI.91Feb7092825@cad609.intel.com> tdesai@cad609.intel.com (Tejas Desai) writes:
>	When I try to compile a module which includes <rpc/rpc.h>, I 
>get the following error:

>Processing include file /usr/include/rpc/svc.h
> 23   231 | extern fd_set svc_fdset;
>            ..............a.........
>a - 1506-046: (S) Syntax error.

>Should I be using any compile time flags or is this a bug? Any help is
>appreciated. Thanks.

You just haven't included enough files, that's all.  You need to include
the header file

<sys/select.h>

before <rpc/rpc.h> and everything should work fine.

>Tejas Desai
>Intel Corp., MS:SC3-36
>email: tdesai@scdt.intel.com
>Voice : (408) 765 4215 (0)

jim/jsalter  IBM PSP, Palo Alto  T465/(415)855-4427  VNET: JSALTER at AUSVMQ
Internet: jsalter@slo.awdpa.ibm.com         UUCP: ..!uunet!ibmsupt!jsalter 
  PS/2 it, or DIE!  :-)  The ramblings above have nothing to do with Big Blue.