Closed
Bug 594322
Opened 14 years ago
Closed 14 years ago
Build with --enable-system-cairo broken
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
People
(Reporter: ojab, Assigned: bas.schouten)
Details
Attachments
(2 files, 2 obsolete files)
1.02 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
516 bytes,
patch
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•14 years ago
|
||
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
Assignee | ||
Comment 3•14 years ago
|
||
(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 | ||
Comment 4•14 years ago
|
||
Assignee: nobody → bas.schouten
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #473126 -
Flags: review?(jmuizelaar)
Comment 5•14 years ago
|
||
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+
Assignee | ||
Comment 6•14 years ago
|
||
Statically assert Skia as well for none-windows platforms. Ready to land.
Attachment #473126 -
Attachment is obsolete: true
Attachment #473259 -
Flags: review?(jmuizelaar)
Comment 7•14 years ago
|
||
This is the same as last patch
Assignee | ||
Comment 8•14 years ago
|
||
Qref somehow got disturbed. Better now.
Attachment #473259 -
Attachment is obsolete: true
Attachment #473259 -
Flags: review?(jmuizelaar)
Assignee | ||
Updated•14 years ago
|
Attachment #473260 -
Flags: review?(jmuizelaar)
Updated•14 years ago
|
Attachment #473260 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 9•14 years ago
|
||
s is caused by bug 594624. There's a patch on that bug.
No longer depends on: 594624
Comment 10•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b6
Comment 11•14 years ago
|
||
This fixed one build error, but introduced another one.
See attached patch.
Comment 12•14 years ago
|
||
Attachment #473615 -
Attachment is patch: true
Comment 13•14 years ago
|
||
(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.
Comment 14•14 years ago
|
||
(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.
Description
•