home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / att / 2110 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.0 KB  |  48 lines

  1. Newsgroups: comp.sys.att
  2. Path: sparky!uunet!sun-barr!ames!pacbell.com!pacbell!sactoh0!dwj
  3. From: dwj@sactoh0.sac.ca.us (Daniel W. James)
  4. Subject: Streams problem on SysV R3.1
  5. Message-ID: <1992Aug29.011644.11990@sactoh0.sac.ca.us>
  6. Organization: Sacramento Public Access Unix
  7. Date: Sat, 29 Aug 92 01:16:44 GMT
  8. Lines: 38
  9.  
  10. I am having a rather interesting problem with my 3B2/310...
  11.  
  12. I just downloaded pcomm (a Procomm look-a-like for unix) from GEnie (Yah,
  13. could have done it cheaper, but I was Anxious).  Anyway, although one of
  14. the readme files says that <R3.2 people are out of luck, it's configuration
  15. file tells me I have everything I need to compile the program.
  16.  
  17. The problem is that one or more of the source files contains 
  18. #include <sys/stream.h>
  19. which in itself is not a problem.  The problem is in the header file, I get
  20. the following:
  21.  
  22. "/usr/include/sys/stream.h", line 19: syntax error
  23. "/usr/include/sys/stream.h", line 19: cannot recover from earlier errors: goodbye!
  24.  
  25. Line 19 looks like this: (from within a structure definition)
  26.     caddr_t q_ptr;                  /* to private data structure */
  27.  
  28. The following line appears around line 400 and something:
  29.     #define straln(a)      (caddr_t)((long)(a) & ~(sizeof(int)-1))
  30.  
  31. Now, my C skills are quite lacking, but it appears to me that the datatype
  32. of caddr_t is not defined until after the header attempts to use it.  I
  33. have not tried to relocate the #include <sys/stream.h> line yet (that will
  34. be my next trial).
  35.  
  36. And, since my C skills are lacking, I have probably left out some important
  37. information that one might need to help diagnose this problem, but if
  38. anyone can offer any assistance, I would love it.  I am dying to get this
  39. program up and running!!!!
  40.  
  41. Thanx in advance,
  42. Dan.
  43. -- 
  44. _________________________________________________________________________
  45. Some folks try to multiply from sunrise to  |          dwj@sactoh0.SAC.CA.US
  46. Sunset--leave behind more of their kind so  |       ames!pacbell!sactoh0!dwj
  47. no one will forget             -- Level 42  |(This space available for rent)
  48.