Bug 689342

Summary: Precompiled fonts produce incorrect code when compiled for 64 bit Unix
Product: Ghostscript Reporter: E.M. Palandri <mark>
Component: Build ProcessAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: 8.57   
Hardware: Sun   
OS: Windows XP   
Customer: Word Size: ---

Description E.M. Palandri 2007-07-09 01:59:22 UTC
When compiling Ghostscript for 64 bit (LP64) Unix configurations, precompiled
fonts produce incorrect code which results in all documents being rejected when
Ghostscript initialises.

The problem is in ccfont.h. The integer_v and real_v macros at lines 30 and 32
produce 32 bit aligned structures which should be 64 bit aligned. I kludged my
way around the problem by replacing line 29

#define ref_(t) struct { struct tas_s tas; t value; }

with the following

struct tasc_s {
   union tasc_v {
      ushort type_attrs;
      void *alignxx;
      } tasc_val;
};
#define ref_(t) struct { struct tasc_s tas; t value; }
Comment 1 Hin-Tak Leung 2007-07-09 10:04:21 UTC
reporter submitted the same bug twice.

*** This bug has been marked as a duplicate of 689341 ***