Bug 139588

Summary: Building webkit-gtk >=2.6.4 Fails: Error INTPTR_MAX was not declared in this scope
Product: WebKit Reporter: Rob MacKinnon <rob.mackinnon>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: gnome, mcatanzaro
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Build Log none

Description Rob MacKinnon 2014-12-12 09:39:35 PST
Created attachment 243201 [details]
Build Log

I'm no coder, but I can normally with a little google-fu solve my problems.  Building webkit-gtk 2.6.4 fails while attempting JavaScriptCore/bytcode/CodeBlock.cpp.  From what I gather from the error is it's not picking up a guarded limits.h or cstdint or stdint.h:

In file included from Source/JavaScriptCore/bytecode/CodeBlock.cpp:62:0:
Source/JavaScriptCore/runtime/TypeProfiler.h: In constructor ‘JSC::QueryKey::QueryKey(WTF::HashTableDeletedValueType)’:
Source/JavaScriptCore/runtime/TypeProfiler.h:58:22: error: ‘INTPTR_MAX’ was not declared in this scope
Source/JavaScriptCore/runtime/TypeProfiler.h: In member function ‘bool JSC::QueryKey::isHashTableDeletedValue() const’:
Source/JavaScriptCore/runtime/TypeProfiler.h:62:65: error: ‘INTPTR_MAX’ was not declared in this scope

Adding an include in TypeProfiler.h or CodeBlock.h doesn't seem to resolve the issue, but as expected directly replacing the entries of INTPTR_MAX with values in /usr/include/stdint.h allows it to magically build.
Comment 1 Pacho Ramos 2015-01-23 09:58:18 PST
Maybe related with bug 140616
Comment 2 Michael Catanzaro 2015-09-04 08:41:40 PDT

*** This bug has been marked as a duplicate of bug 140616 ***