Article View: gnu.ghostscript.bug
Article #368Re: Compile Errors in Ghostscript 2.5
From: Gary A. Gorgen
Date: Fri, 11 Sep 1992 14:41
Date: Fri, 11 Sep 1992 14:41
60 lines
2561 bytes
2561 bytes
lambda@sbcs.sunysb.edu (Del Lamb), <1992Sep10.024120.11467@sbcs.sunysb.edu>
Writes:
>Hello, I'm a newcomer to this group and Ghostscript, so forgive any
>unintention violations of netiquette. I'm trying to compile GS 2.5
>on a i486 running System V, R4 V3 (Consensys V4, rel 1.3) and I have
>a nasty (for me), but probably simple, compile problem.
>
>In the compile for iinit.c, the following error messages occur:
>[...]
> ./ccgs "cc -O -DSVR4" iinit.c
>"iinit.c", line 159: left operand must be modifiable lvalue: op "="
>"iinit.c", line 159: operand must be modifiable lvalue: op "++"
>"iinit.c", line 175: left operand must be modifiable lvalue: op "="
>"iinit.c", line 175: operand must be modifiable lvalue: op "++"
>"iinit.c", line 186: left operand must be modifiable lvalue: op "="
>"iinit.c", line 186: operand must be modifiable lvalue: op "++"
>"iinit.c", line 201: left operand must be modifiable lvalue: op "="
>mv: cannot access _temp_3084.o
>[...]
> ./ccgs "cc -O -DSVR4" zprops.c
>"zprops.c", line 177: left operand must be modifiable lvalue: op "+="
>mv: cannot access _temp_3094.o
>[...]
Make these changes to ostack.h & opdef.h
GS 2.5 will compile OK, on SVR4. Ignore the compiler warnings.
If GS doesn't run, then recompile without the -O flag.
There are several optimizer bugs in the stock SVR4 compiler, which may not
be fixed in your compiler.
opdef.h
--------------------------------------------------
60c60
< typedef const op_def _ds *op_def_ptr;
---
> typedef /*const*/ op_def _ds *op_def_ptr;
--------------------------------------------------
ostack.h
--------------------------------------------------
30c30
< typedef const ref _ds *const_os_ptr;
---
> typedef /*const*/ ref _ds *const_os_ptr;
--------------------------------------------------
Hope this helps.
Gary.
--
--
Gary A. Gorgen | "From ideas to PRODUCTS"
tunxis@netcom.com | Tunxis Design Inc.
| 422 S. Murphy, Sunnyvale Ca. (408) 749-9463
Technical Details
Message-ID:
<+qvn40f.tunxis@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!tunxisReferences:
<1992Sep10.024120.11467@sbcs.sunysb.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!tunxis From: tunxis@netcom.com (Gary A. Gorgen) Newsgroups: gnu.ghostscript.bug Subject: Re: Compile Errors in Ghostscript 2.5 Message-ID: <+qvn40f.tunxis@netcom.com> Date: 11 Sep 92 14:41:38 GMT References: <1992Sep10.024120.11467@sbcs.sunysb.edu> Sender: gnulists@ai.mit.edu Distribution: gnu Organization: Tunxis Design Inc. (408-749-9463) Lines: 60 Approved: bug-ghostscript@prep.ai.mit.edu