forked from qtwebkit/qtwebkit
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Strange thing happened, when i first built webkit with MINGW untill the very end, there were no such errors, i swear 😆
but while fixing JS assembly, and finally got back here to recompile WebCore, this happened:
In file included from C:/Qt/Qt6.5.3/6.5.3/mingw_64/include/QtZlib/zlib.h:34,
from C:/Qt/webkit/Source/WebCore/Modules/compression/CompressionStreamEncoder.h:34,
from C:/Qt/webkit/build-win/WebCore/DerivedSources/JSCompressionStreamEncoder.h:23,
from C:/Qt/webkit/build-win/WebCore/DerivedSources/JSLocalDOMWindow.cpp:125,
from C:\Qt\webkit\build-win\WebCore\DerivedSources\unified-sources\UnifiedSource-3a52ce78-88.cpp:7:
C:/Qt/webkit/Source/WebCore/layout/formattingContexts/inline/InlineRect.h: In member function 'void WebCore::Layout::InlineRect::z_inflate(WebCore::Layout::InlineLayoutUnit)':
C:/Qt/webkit/Source/WebCore/layout/formattingContexts/inline/InlineRect.h:326:12: error: 'using InlineLayoutRect = class WebCore::FloatRect' {aka 'class WebCore::FloatRect'} has no memb
er named 'z_inflate'; did you mean 'inflate'?
326 | m_rect.inflate(inflate);
AND
In file included from C:/Qt/Qt6.5.3/6.5.3/mingw_64/include/QtZlib/zlib.h:34,
from C:/Qt/webkit/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp:38,
from C:\Qt\webkit\build-win\WebCore\DerivedSources\unified-sources\UnifiedSource-f8afad56-57.cpp:3:
C:/Qt/webkit/Source/WebCore/Modules/websockets/WebSocketFrame.cpp: In static member function 'static WebCore::WebSocketFrame::ParseFrameResult WebCore::WebSocketFrame::parseFrame(uint8_
t*, size_t, WebCore::WebSocketFrame&, const uint8_t*&, WTF::String&)':
C:/Qt/webkit/Source/WebCore/Modules/websockets/WebSocketFrame.cpp:114:11: error: 'struct WebCore::WebSocketFrame' has no member named 'z_compress'; did you mean 'compress'?
114 | frame.compress = compress;
| ^~~~~~~~
C:/Qt/webkit/Source/WebCore/Modules/websockets/WebSocketFrame.cpp: In constructor 'WebCore::WebSocketFrame::WebSocketFrame(WebCore::WebSocketFrame::OpCode, bool, bool, bool, const uint8
_t*, size_t)':
C:/Qt/webkit/Source/WebCore/Modules/websockets/WebSocketFrame.cpp:175:7: error: class 'WebCore::WebSocketFrame' does not have any field named 'z_compress'
175 | , compress(compress)
It looks like zlib.h has some #defines
that override inflate
and compress
keywords, but why the hell
zlib is included here?
How this "derived-sources" mechanism work?
lets say this file, where the macro expands and messes up:
C:/Qt/webkit/Source/WebCore/layout/formattingContexts/inline/InlineRect.h
has no references to anything in:
C:\Qt\webkit\build-win\WebCore\DerivedSources\unified-sources\UnifiedSource-3a52ce78-88.cpp
and this unified-sources has no mention of "InlineRect.h"?
so how "InlineRect.h" is able to find "zlib.h"?
Metadata
Metadata
Assignees
Labels
No labels