home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7478 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!munnari.oz.au!metro!usage!spectrum!cameron
  3. From: cameron@spectrum.cs.unsw.oz.au (Cameron Simpson)
  4. Subject: Possible fix for: Trouble compiling perl-4.035 on ULTRIX 4.3
  5. Message-ID: <1992Dec17.050855.21408@usage.csd.unsw.OZ.AU>
  6. Sender: news@usage.csd.unsw.OZ.AU
  7. Nntp-Posting-Host: fuligin.spectrum.cs.unsw.oz.au
  8. Reply-To: cameron@spectrum.cs.unsw.oz.au (Cameron Simpson)
  9. Organization: CS&E Computing Facility, Uni Of NSW, Oz
  10. References: <1gl2pcINNa5@cbl.umd.edu>
  11. Date: Thu, 17 Dec 1992 05:08:55 GMT
  12. Lines: 33
  13.  
  14. In article <1gl2pcINNa5@cbl.umd.edu> jon@cbl.umd.edu (Jonathan Kruger) writes:
  15. | I'm trying to compile perl 4.035 on a DECstation 5000/25.
  16. | It doesn't even come close to working.  I get a screen full of these
  17. | errors:
  18. |           CCCMD =  cc -c -DLANGUAGE_C -Olimit 2900 -Olimit 2900
  19. | ccom: Error: ./cmd.h, line 151: unknown size
  20. |        CSV * volatile curcsv  =  ((CSV*)0);
  21. |       ------------------------^
  22. | ccom: Error: ./cmd.h, line 151: unknown size
  23. |        CSV * volatile curcsv  =  ((CSV*)0);
  24. | I tried changing hints/ultrix_4.sh to say 4.3 instead of 4.2, but that
  25. | didn't help.  Any advice from someone who has this working?
  26.  
  27. Hmm, it compiled fine for me (on Ultrix 4.2A), but I have a guess at a fix.
  28.  
  29. CVS is a typedef for struct callsave, and is defined in perl.h.
  30. struct callsave is defined in cmd.h.
  31.  
  32. Now supposedly you can use a pointer to struct before the struct itself is
  33. declared, you just can't use its members. Obviously your compiler doesn't.
  34.  
  35. So, moving down to line 153 we find the definition for struct callsave.
  36. Try moving it to just below the definition for struct cmd, before line 151.
  37.  
  38. Lemme know if it works. And mail it to Larry (lwall@netlabs.com).
  39.     - Cameron Simpson
  40.       cameron@cs.unsw.oz.au, DoD 0743
  41. --
  42. "The engine purrs beneath me with a purpose,
  43.  ready for the pleasure of my hand upon the throttle." - Peter Smith
  44.