[Webkit-unassigned] [Bug 251212] New: [GTK] compile errors in derived source WebKitEnumTypes.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 26 08:39:43 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251212
Bug ID: 251212
Summary: [GTK] compile errors in derived source
WebKitEnumTypes.cpp
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jmason at ibinx.com
CC: bugs-noreply at webkitgtk.org
Building on Solaris with:
-DUSE_GTK4=OFF
-DUSE_SOUP2=ON
Since some weeks now on main, I've been getting compile errors in a derived source file, WebKitEnumTypes.cpp. I've pasted the errors below. There are two errors: 1) the function `webkit_website_data_types_get_type` is declared twice, and 2) an undefined constant WEBKIT_MEDIA_ERROR_WILL_HANDLE_LOAD is referenced.
The errors started sometime after 257698 at main but before 258874 at main.
By manually fixing up WebKitEnumTypes.{h,cpp}, compiling continues and the build seems to run fine. However, I would like to determine the root cause.
It seems perhaps related to changes around ENABLE_2022_GLIB_API, which in my case is OFF due to gtk3/libsoup2.
Can someone please suggest something to check, and I will try.
The errors are these:
/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp: At global scope:
/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:770:7: error: redefinition of 'GType webkit_website_data_types_get_type()'
770 | GType webkit_website_data_types_get_type()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:745:7: note: 'GType webkit_website_data_types_get_type()' previously defined here
745 | GType webkit_website_data_types_get_type()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and
/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp: In function 'GType webkit_media_error_get_type()':
/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/WebKitGTK/DerivedSources/webkit/WebKitEnumTypes.cpp:321:11: error: 'WEBKIT_MEDIA_ERROR_WILL_HANDLE_LOAD' was not declared in this scope; did you mean 'WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD'?
321 | { WEBKIT_MEDIA_ERROR_WILL_HANDLE_LOAD, "WEBKIT_MEDIA_ERROR_WILL_HANDLE_LOAD", "load" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| WEBKIT_PLUGIN_ERROR_WILL_HANDLE_LOAD
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230126/4d78a639/attachment-0001.htm>
More information about the webkit-unassigned
mailing list