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