From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 16e8d5,67ac7060180f7f40 X-Google-Attributes: gid16e8d5,public X-Google-Thread: fee84,67ac7060180f7f40 X-Google-Attributes: gidfee84,public From: kurt.pintoffl@joanneum.ac.at (Kurt Pintoffl) Subject: Re: error compiling AlladinGhostscript 5.10, for AXP DU4.0 Date: 1997/12/03 Message-ID: #1/1 X-Deja-AN: 294807159 References: <65uo4d$572@sirio.cineca.it> Organization: JOANNEUM RESEARCH Newsgroups: comp.unix.osf.osf1,comp.lang.postscropt In article <65uo4d$572@sirio.cineca.it> eros@ala2.lamel.bo.cnr.it (Eros Albertazzi) writes: >From: eros@ala2.lamel.bo.cnr.it (Eros Albertazzi) >Subject: error compiling AlladinGhostscript 5.10, for AXP DU4.0 >Date: 1 Dec 1997 16:20:29 GMT >While compiling Aladdin Ghostscript, or more precisly libpng (0.96),on an Digital >Alpha system running DU 4.0 I got >cc -O -c -Ilibpng -Izlib -DPNG_USE_CONST libpng/pngwutil.c >cc: Error: libpng/pngwutil.c, line 26: In this declaration, the type of "png_save_uint_16" is not compatible with the type of a previous declaration of "png_save_uint_16" at line number 928 in file libpng/png.h. >png_save_uint_16(png_bytep buf, png_uint_16 i) >^ >cc: Error: libpng/pngwutil.c, line 47: In this declaration, the type of "png_write_uint_16" is not compatible with the type of a previous declaration of "png_write_uint_16" at line number 934 in file libpng/png.h. >png_write_uint_16(png_structp png_ptr, png_uint_16 i) >^ >Any clue on what I should have done? >Thanks. >-- >Eros Albertazzi >CNR-LAMEL, Via P.Gobetti 101, 40129 Bologna, Italy >Tel: +39 - 51 - 639 9152 >Fax: +39 - 51 - 639 9216 >E-mail: eros@lamel.bo.cnr.it Yes, I had the same problem on DU 3.2x: It has to do with the 64-bit structure of DEC Alpha. In pngconf.h change the type of png_uint_16 from short to int. I did this (according to a note I found somewhere) and it worked. Hope it helps you also! greetings K. Pintoffl