Closed
Bug 1031267
Opened 12 years ago
Closed 12 years ago
--enable-system-cairo build broken: gfx/2d/DrawTargetCairo.cpp:416:10: error: 'CAIRO_SURFACE_TYPE_D2D' was not declared in this scope
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jbeich, Assigned: glandium)
References
Details
Attachments
(2 files, 1 obsolete file)
|
1002 bytes,
patch
|
Details | Diff | Splinter Review | |
|
1.20 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
As of cairo trunk gfx/cairo/d2d.patch (bug 527707) has not been upstreamed yet. So, if you try to build against system copy the following error occurs.
In file included from gfx/2d/Unified_cpp_gfx_2d0.cpp:54:
gfx/2d/DrawTargetCairo.cpp:416:10: error:
use of undeclared identifier 'CAIRO_SURFACE_TYPE_D2D'; did you mean
'CAIRO_SURFACE_TYPE_DRM'?
case CAIRO_SURFACE_TYPE_D2D:
^~~~~~~~~~~~~~~~~~~~~~
CAIRO_SURFACE_TYPE_DRM
/usr/local/include/cairo/cairo.h:2380:5: note: 'CAIRO_SURFACE_TYPE_DRM' declared
here
CAIRO_SURFACE_TYPE_DRM,
^
In file included from gfx/2d/Unified_cpp_gfx_2d0.cpp:54:
gfx/2d/DrawTargetCairo.cpp:416:10: error:
duplicate case value 'CAIRO_SURFACE_TYPE_DRM'
case CAIRO_SURFACE_TYPE_D2D:
^
gfx/2d/DrawTargetCairo.cpp:414:10: note:
previous case defined here
case CAIRO_SURFACE_TYPE_DRM:
^
2 errors generated.
Attachment #8447125 -
Flags: review?(jwatt)
Comment 1•12 years ago
|
||
Comment on attachment 8447125 [details] [diff] [review]
fix
Thanks!
Attachment #8447125 -
Flags: review?(jwatt) → review+
Hopefully, the patch won't linger for the whole weekend.
https://tbpl.mozilla.org/?tree=Try&rev=3f858b108643
Keywords: checkin-needed
Comment 3•12 years ago
|
||
Keywords: checkin-needed
Comment 4•12 years ago
|
||
Backed out for burning down the tree:
https://hg.mozilla.org/integration/mozilla-inbound/rev/38e0566bb94b
Clearly that define is not as simple as one would imagine.
https://tbpl.mozilla.org/?tree=Try&rev=cf2741878bfa
|-p all| is still an overkill, d2d and non-d2d/-Werror platform should be enough. However, --enable-warnings-as-errors would turn the following into an error if system cairo is 1.11.4 or newer.
In file included from gfx/2d/Unified_cpp_gfx_2d0.cpp:54:
gfx/2d/DrawTargetCairo.cpp:386:13: warning:
enumeration value 'CAIRO_SURFACE_TYPE_COGL' not handled in switch [-Wswitch]
switch (type) {
^
1 warning generated.
Attachment #8447125 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•12 years ago
|
||
I think it's better to future-proof this way, especially considering the ongoing Gtk+3 work, which may, at some point switch cairo versions (it uses system cairo).
Attachment #8448495 -
Flags: review?(jwatt)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Comment 7•12 years ago
|
||
Updated•12 years ago
|
Attachment #8448495 -
Flags: review?(jwatt) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•