Closed Bug 241290 Opened 21 years ago Closed 20 years ago

FreeType 2.1.8 compilation error again

Categories

(Core Graveyard :: GFX, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 234035

People

(Reporter: peter.kovar, Unassigned)

Details

User-Agent:       Opera/7.50 (X11; Linux i686; U)  [en]
Build Identifier: 

Mozilla build failed with FreeType 2.1.8 released yesterday.

In file included from nsFreeType.h:55,
                 from nsFreeType.cpp:48:
../../../dist/include/gfx/nsIFreeType2.h:53: error: `GetImageCache' declared as 
a `virtual' field
../../../dist/include/gfx/nsIFreeType2.h:53: warning: `visibility' attribute 
ignored
../../../dist/include/gfx/nsIFreeType2.h:53: error: expected `;' before '(' 
token
../../../dist/include/gfx/nsIFreeType2.h:92: error: `ImageCacheLookup' declared 
as a `virtual' field
../../../dist/include/gfx/nsIFreeType2.h:92: warning: `visibility' attribute 
ignored
../../../dist/include/gfx/nsIFreeType2.h:92: error: expected `;' before '(' 
token
../../../dist/include/gfx/nsIFreeType2.h:104: error: `FTC_Image_Cache' has not 
been declared
../../../dist/include/gfx/nsIFreeType2.h:104: error: ISO C++ forbids declaration 
of `cache' with no type


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Same error here.

Some more info about that bug... Looks like two changes in the FreeType API are causing this.

The first one is easy to change, FTC_Image_Cache (which was marked as deprecated for some time) is to be replaced with FTC_ImageCache (which has been available for a long time and the other one was only a typedef to it)

The other is more problematic : FTC_Image_Desc was marked as deprecated too, but  has been replaced with FTC_ImageTypeRec, which has slightly different contents. I tried to change it but with little success for now as I'm not familiar with the code.

*** This bug has been marked as a duplicate of 234035 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.