From: Kevin Oberman <oberman@es.net>
Subject: Re: gs5.50 vs Digital Unix
Date: 1998/12/29 [thread overview]
Message-ID: <sreg19yjxno.fsf@ptavv.es.net> (raw)
In-Reply-To: kjiuexy3px.fsf_-_@alpha0.bioch.virginia.edu
wrp@alpha0.bioch.virginia.edu (William R. Pearson) writes:
> When I try to compile ghostscript gs 5.50 (December 1998) with Digital
> Unix 'CC', I get:
>
> ================
>
> cc -O -I. -I./obj -Izlib -o ./obj/szlibe.o -c ./szlibe.c
> cc: Warning: ./szlibe.c, line 61: In the initializer for p, the referenced type of the pointer value "pr->ptr" is const, but the referenced type of the target of this assignment is not.
> /* const */ byte *p = pr->ptr;
> --------------------------^
> cc: Error: ./szlibe.c, line 98: In this declaration, the type of "s_zlibE_template" is not compatible with the type of a previous declaration of "s_zlibE_template" at line number 53 in file ./szlibx.h.
> /* const */ stream_template s_zlibE_template = {
> ----------------------------^
> make: *** [obj/szlibe.o] Error 1
>
> ================
You don't say what version of DU you are running, but I built 5.50
on a DU 40.D system using DEC C as follows:
Rename the jpeg, libpng, and zlib directories to "jpeg", "libpng" and
"zlib". (No versions.)
Edit unixansi.mak. Change CFLAGS to "CFLAGS=-fast -std". (The '-std' is
the key.)
make -f unixansi.mak
Lots of warnings, especially about hipot arguments, but no errors.
Whenever you build freeware on DU, unless there are specific DU
instructions, always specify "-std"!
If you are running DU older than 4.0, you may be stuck as the old
compiler was was ANSI.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net Phone: +1 510 486-8634
prev parent reply other threads:[~1998-12-29 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-27 5:00 gs5.50 vs Digital Unix William R. Pearson
1998-12-29 5:00 ` Kevin Oberman [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox