Bug 305387
| Summary: | [GTK] [2.51.4] undefined reference to `JSC::JSFunction::getCallDataInline(JSC::JSCell*)' | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alberto Garcia <berto> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | bugs-noreply, clopez |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
Alberto Garcia
Hi, when building WebKitGTK 2.51.4 on armhf with gcc I get the following error when linking libjsc:
/usr/bin/ld: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-15db4ad9-14.cpp.o: in function `JSC::getCallDataInline(JSC::JSCell*)':
./build-gtk3/./build-gtk3/JavaScriptCore/PrivateHeaders/JavaScriptCore/JSObjectInlines.h:767:(.text._ZN3JSCL30callWebAssemblyWrapperFunctionEPNS_14JSGlobalObjectEPNS_9CallFrameE+0x9c): undefined reference to `JSC::JSFunction::getCallDataInline(JSC::JSCell*)'
collect2: error: ld returned 1 exit status
I can fix the problem with the following patch:
diff --git a/Source/JavaScriptCore/wasm/js/WebAssemblyWrapperFunction.cpp b/Source/JavaScriptCore/wasm/js/WebAssemblyWrapperFunction.cpp
index 0c94dc864d19..7b7a652c2647 100644
--- a/Source/JavaScriptCore/wasm/js/WebAssemblyWrapperFunction.cpp
+++ b/Source/JavaScriptCore/wasm/js/WebAssemblyWrapperFunction.cpp
@@ -28,6 +28,7 @@
#if ENABLE(WEBASSEMBLY)
+#include "JSFunctionInlines.h"
#include "JSObjectInlines.h"
#include "JSWebAssemblyInstance.h"
#include "WasmTypeDefinitionInlines.h"
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Alberto Lopez Perez
can you check if https://commits.webkit.org/305548@main fixes this?
Alberto Garcia
It does fix the problem, thanks!
*** This bug has been marked as a duplicate of bug 305233 ***