include files again..

Trevor Paquette paquette at cpsc.ucalgary.ca
Wed Feb 22 09:17:30 AEST 1989


  Ok I give up.. what is the secret to getting the rpc include
files to work on a Persona Iris? Don't people test these things
before they are shipped???
(NOTE: this is after I have done 
'ln -s /usr/include/bsd/netinet /usr/include/netinet' to get 
a netinet dir for rpc.h to use.. is wrong as well..

   Scenario: try this through 'cc -o t t.c'

	    #include <rpc/rpc.h>    \
	    main()                  |  this is t.c
	    {                       |
	    }                       /

  Dies with the following error:
      ccom: Error: /usr/include/rpc/svc.h, line 209: syntax error
	    extern fd_set svc_fds;
            --------------------^

  A SYNTAX ERROR??? in an INCLUDE FILE????? what gives? What is 'fd_set'???
 taking a closer look at the include file this is what those lines
 look like..

    /*
     * Lowest level dispatching -OR- who owns this process anyway.
     * Somebody has to wait for incoming requests and then call the correct
     * service routine.  The routine svc_run does infinite waiting; i.e.,
     * svc_run never returns.
     * Since another (co-existant) package may wish to selectively wait for
     * incoming calls or other events outside of the rpc architecture, the
     * routine svc_getreq is provided.  It must be passed readfds, the
     * "in-place" results of a select system call (see select, section 2).
     */
    
    #ifndef KERNEL
    /* dynamic; must be inspected before each call to select */
    #ifdef sgi
209>extern fd_set svc_fds;
    #else
    extern int svc_fds;
    #endif
	
  So I try 'cc -o t -Usgi t.c' seems to to futher this time.. In fact
 it compiles just fine..

   So why are there errors in the include files??
==============================================================================
               Trevor Paquette/GraphicsLand, Calgary, Alberta                 
 ..uunet!{ubc-cs,utai,alberta}!calgary!paquette          ICBM:51 03 N/114 05 W
 calgary!paquette at cs.ubc.ca      Luminous beings we are, not this crude matter



More information about the Comp.sys.sgi mailing list