The default bug view has changed. See this FAQ.

nsType1.cpp compile error due to new freetype 2.2 const poisoning

RESOLVED FIXED

Status

Core Graveyard
GFX: Gtk
RESOLVED FIXED
12 years ago
8 years ago

People

(Reporter: Patrick Welche, Assigned: Jungshik Shin)

Tracking

({fixed1.8})

Trunk
fixed1.8

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.8b2) Gecko/20050622 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.8b2) Gecko/20050622 Firefox/1.0+

From freetype2's docs/CHANGES file:

LATEST CHANGES BETWEEN 2.2.0 and 2.1.10
  II. IMPORTANT CHANGES

    - The following callback function types have  changed slightly (by
      adding the `const' keyword where appropriate):

        FT_Outline_MoveToFunc
        FT_Outline_LineToFunc
        FT_Outline_ConicToFunc
        FT_Outline_CubicToFunc
        FT_SpanFunc
        FT_Raster_RenderFunc

        FT_Glyph_TransformFunc
        FT_Renderer_RenderFunc
        FT_Renderer_TransformFunc

      Note that this doesn't affect binary backwards compatibility.

... but it does affect building nsType1.cpp. The attached patch fixes this.

Reproducible: Always
(Reporter)

Comment 1

12 years ago
Created attachment 187049 [details] [diff] [review]
as mentioned in original report

Updated

12 years ago
Assignee: nobody → blizzard
Component: Build Config → GFX: Gtk
QA Contact: build-config → gtk
Summary: nsType1.cpp compile error due to new freetype const poisoning → nsType1.cpp compile error due to new freetype 2.2 const poisoning
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → EXPIRED
(Reporter)

Updated

12 years ago
Status: RESOLVED → UNCONFIRMED
Resolution: EXPIRED → ---
(Assignee)

Comment 4

12 years ago
With the patch uploaded here, nsType1.cpp wouldn't compile with FT 2.1.x so that
we need to add '#ifdef ... #else....'
Assignee: blizzard → jshin1987
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 5

12 years ago
Created attachment 199744 [details] [diff] [review]
patch working for both FT 2.2.x and 2.1.x
(Assignee)

Comment 6

12 years ago
Comment on attachment 199744 [details] [diff] [review]
patch working for both FT 2.2.x and 2.1.x

I got rid of the 'pollution' from the other bug in my tree.
Attachment #199744 - Flags: superreview?(dbaron)
Attachment #199744 - Flags: review?(kherron+mozilla)
Comment on attachment 199744 [details] [diff] [review]
patch working for both FT 2.2.x and 2.1.x

I'm assuming the last segment of the patch is the part that wasn't supposed to
be in it; given that, sr=dbaron.
Attachment #199744 - Flags: superreview?(dbaron) → superreview+

Updated

12 years ago
Attachment #199744 - Flags: review?(kherron+mozilla) → review+
(Assignee)

Comment 8

12 years ago
Comment on attachment 199744 [details] [diff] [review]
patch working for both FT 2.2.x and 2.1.x

fix checked in to the trunk. asking for a 1.8rc1.

1.8(av 1.5) branch is likely to be a long lasting branch and freetype 2.2.x is
expected to be included soon in major linux distributions so that we'd better
fix this in the branch as well.

Risk : very low (just adding 'const' when freetype 2.2.x is installed.
otherwise, no change)
Attachment #199744 - Flags: approval1.8rc1?
(Assignee)

Updated

12 years ago
Status: NEW → RESOLVED
Last Resolved: 12 years ago12 years ago
Resolution: --- → FIXED

Comment 9

12 years ago
Comment on attachment 199744 [details] [diff] [review]
patch working for both FT 2.2.x and 2.1.x

a=me if this lands today on the branch after we're sure it builds everywhere on
the trunk :)
Attachment #199744 - Flags: approval1.8rc1? → approval1.8rc1+
(Assignee)

Updated

12 years ago
Keywords: fixed1.8
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.