Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* gs5.50 vs Digital Unix
@ 1998-12-27  5:00 William R. Pearson
  1998-12-29  5:00 ` Kevin Oberman
  0 siblings, 1 reply; 2+ messages in thread
From: William R. Pearson @ 1998-12-27  5:00 UTC (permalink / raw)



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

================

This has me stuck.

Bill Pearson



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gs5.50 vs Digital Unix
  1998-12-27  5:00 gs5.50 vs Digital Unix William R. Pearson
@ 1998-12-29  5:00 ` Kevin Oberman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Oberman @ 1998-12-29  5:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-12-29  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-27  5:00 gs5.50 vs Digital Unix William R. Pearson
1998-12-29  5:00 ` Kevin Oberman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox