🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #365

Re: Compile Errors in Ghostscript 2.5

#365
From: L. Peter Deutsch
Date: Fri, 11 Sep 1992 04:28
28 lines
1879 bytes
Re <9209110327.AA01847@cookie-crisp>
<1992Sep10.024120.11467@sbcs.sunysb.edu>:

> 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
> [...]

It's a compiler bug.  The compiler is not interpreting 'const'
properly.  (Ghostscript compiles correctly with a wide variety of
ANSI-compliant compilers.)  Look for the comment about disabling
'const' in std.h, and remove the #ifndef around the #define.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
    "Implementation is the sincerest form of flattery."    new--->^^^^^^^^^^^^
Technical Details
Message-ID: <9209102128.1.UUL1.3#5127@aladdin.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost
References: ghost@aladdin.COM (L. Peter Deutsch)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: Compile Errors in Ghostscript 2.5
Message-ID: <9209102128.1.UUL1.3#5127@aladdin.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: ghost@aladdin.COM (L. Peter Deutsch)
Distribution: gnu
Date: Fri, 11 Sep 1992 04:28:56 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 32