Bug 689342 - Precompiled fonts produce incorrect code when compiled for 64 bit Unix
Summary: Precompiled fonts produce incorrect code when compiled for 64 bit Unix
Status: RESOLVED DUPLICATE of bug 689341
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.57
Hardware: Sun Windows XP
: P4 normal
Assignee: Ralph Giles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 01:59 UTC by E.M. Palandri
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***