From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e7633187de006eea X-Google-Attributes: gidfee84,public From: Kevin Oberman Subject: Re: gs5.50 vs Digital Unix Date: 1998/12/29 Message-ID: #1/1 X-Deja-AN: 426942123 Sender: oberman@ptavv.es.net References: Content-Type: text/plain; charset=US-ASCII Organization: ** ESnet ** The Energy Sciences Network ** Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.unix.osf.osf1 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