Bug 147557

Summary: Fix the all-in-one build on Linux after r187659
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, ossy, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 102647, 147484    
Attachments:
Description Flags
Patch none

Description Csaba Osztrogonác 2015-08-03 04:11:27 PDT
http://trac.webkit.org/changeset/187659 broke the all-in-one build on Linux.
The problem is adding MediaFeatureNames.cpp to CSSAllInOne.cpp:

In file included from ../../Source/WebCore/css/CSSAllInOne.cpp:95:
../../Source/WebCore/css/MediaFeatureNames.cpp:35:1594: error: redefinition of 'max_color_indexMediaFeature' with a different type: 'void *[1]' vs 'const WTF::AtomicString'
../../Source/WebCore/css/MediaFeatureNames.h:86:886: note: previous definition is here
    extern const AtomicString any_hoverMediaFeature; extern const AtomicString any_pointerMediaFeature; extern const AtomicString colorMediaFeature; extern const AtomicString color_indexMediaFeature; extern const AtomicString gridMediaFeature; extern const AtomicString monochromeMediaFeature; extern const AtomicString heightMediaFeature; extern const AtomicString hoverMediaFeature; extern const AtomicString widthMediaFeature; extern const AtomicString orientationMediaFeature; extern const AtomicString aspect_ratioMediaFeature; extern const AtomicString device_aspect_ratioMediaFeature; extern const AtomicString device_pixel_ratioMediaFeature; extern const AtomicString device_heightMediaFeature; extern const AtomicString device_widthMediaFeature; extern const AtomicString inverted_colorsMediaFeature; extern const AtomicString max_colorMediaFeature; extern const AtomicString max_color_indexMediaFeature; extern const AtomicString max_aspect_ratioMediaFeature; extern const AtomicString max_device_aspect_ratioMediaFeature; extern const AtomicString max_device_pixel_ratioMediaFeature; extern const AtomicString max_device_heightMediaFeature; extern const AtomicString max_device_widthMediaFeature; extern const AtomicString max_heightMediaFeature; extern const AtomicString max_monochromeMediaFeature; extern const AtomicString max_widthMediaFeature; extern const AtomicString max_resolutionMediaFeature; extern const AtomicString min_colorMediaFeature; extern const AtomicString min_color_indexMediaFeature; extern const AtomicString min_aspect_ratioMediaFeature; extern const AtomicString min_device_aspect_ratioMediaFeature; extern const AtomicString min_device_pixel_ratioMediaFeature; extern const AtomicString min_device_heightMediaFeature; extern const AtomicString min_device_widthMediaFeature; extern const AtomicString min_heightMediaFeature; extern const AtomicString min_monochromeMediaFeature; extern const AtomicString min_widthMediaFeature; extern const AtomicString min_resolutionMediaFeature; extern const AtomicString pointerMediaFeature; extern const AtomicString resolutionMediaFeature; extern const AtomicString transform_2dMediaFeature; extern const AtomicString transform_3dMediaFeature; extern const AtomicString transitionMediaFeature; extern const AtomicString animationMediaFeature; extern const AtomicString video_playable_inlineMediaFeature; extern const AtomicString view_modeMediaFeature;
Comment 1 Csaba Osztrogonác 2015-08-03 04:15:56 PDT
MediaFeatureNames.cpp is included in MediaAllInOne.cpp too.
How come it didn't cause build failure on Windows?

But not the duplicated include causes this build failure.
Comment 2 Csaba Osztrogonác 2015-08-03 04:18:33 PDT
(In reply to comment #1)
> MediaFeatureNames.cpp is included in MediaAllInOne.cpp too.
> How come it didn't cause build failure on Windows?

Ah, MediaAllInOne.cpp isn't included in Windows build at all.
Comment 3 Csaba Osztrogonác 2015-08-03 04:23:58 PDT
Created attachment 258053 [details]
Patch
Comment 4 Csaba Osztrogonác 2015-08-03 04:29:03 PDT
Just a note: r187659 added all files in MediaAllInOne.cpp
to CSSAllInOne.cpp, that's why we can remove MediaAllInOne.cpp
instead of adding to the all-in-one build.
Comment 5 WebKit Commit Bot 2015-08-03 23:44:31 PDT
Comment on attachment 258053 [details]
Patch

Clearing flags on attachment: 258053

Committed r187816: <http://trac.webkit.org/changeset/187816>
Comment 6 WebKit Commit Bot 2015-08-03 23:44:34 PDT
All reviewed patches have been landed.  Closing bug.