Closed Bug 594322 Opened 14 years ago Closed 14 years ago

Build with --enable-system-cairo broken

Categories

(Core :: Graphics, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: ojab, Assigned: bas.schouten)

Details

Attachments

(2 files, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre Build Identifier: Build with system cairo is broken in r52174:7ad078323b52 and later: c++ -o gfxASurface.o -c -I../../dist/stl_wrappers … /sources/mozilla-central/gfx/thebes/gfxASurface.cpp:475:1: error: 'CAIRO_SURFACE_TYPE_D2D' was not declared in this scope make[5]: *** [gfxASurface.o] Error 1 make[5]: Leaving directory `/home/ojab/src/firefox/gfx/thebes' Reproducible: Always
Hrmph, I wonder why it's trying to use that define.
Adding a simple ifdef wrapper should fix it. #ifdef CAIRO_HAS_D2D_SURFACE PR_STATIC_ASSERT(CAIRO_SURFACE_TYPE_D2D == gfxASurface::SurfaceTypeD2D); #endif
(In reply to comment #2) > Adding a simple ifdef wrapper should fix it. > > #ifdef CAIRO_HAS_D2D_SURFACE > PR_STATIC_ASSERT(CAIRO_SURFACE_TYPE_D2D == gfxASurface::SurfaceTypeD2D); > #endif You're absolutely right, I was looking at the wrong version of the code in which the line numbers were off. Thank you.
Assignee: nobody → bas.schouten
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #473126 - Flags: review?(jmuizelaar)
Comment on attachment 473126 [details] [diff] [review] Conditionally assert CAIRO_HAS_D2D_SURFACE Can you add a PR_STATIC_ASSERT for skia to ensure that the cairo surfaces have numbers that line up
Attachment #473126 - Flags: review?(jmuizelaar) → review+
Statically assert Skia as well for none-windows platforms. Ready to land.
Attachment #473126 - Attachment is obsolete: true
Attachment #473259 - Flags: review?(jmuizelaar)
This is the same as last patch
Qref somehow got disturbed. Better now.
Attachment #473259 - Attachment is obsolete: true
Attachment #473259 - Flags: review?(jmuizelaar)
Attachment #473260 - Flags: review?(jmuizelaar)
Attachment #473260 - Flags: review?(jmuizelaar) → review+
Depends on: 594624
s is caused by bug 594624. There's a patch on that bug.
No longer depends on: 594624
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b6
This fixed one build error, but introduced another one. See attached patch.
Attachment #473615 - Attachment is patch: true
(In reply to comment #11) > This fixed one build error, but introduced another one. > See attached patch. I agree with you. However you should file it as a new bug.
(In reply to comment #13) > I agree with you. However you should file it as a new bug. File as bug 595805 for comments #11 and comment #12.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: