[Webkit-unassigned] [Bug 116820] New: Link error in CodeBlock, maximumBytecodeIndex is not defined correctly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 27 04:08:12 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=116820
Summary: Link error in CodeBlock, maximumBytecodeIndex is not
defined correctly
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: xan.lopez at gmail.com
Getting this error:
Linking CXX executable ../../../bin/jsc
../../../lib/libjavascriptcore.so.0.1: undefined reference to `JSC::CodeOrigin::maximumBytecodeIndex'
cc: /home/xan/bbndk/host_10_0_9_404/linux/x86/usr/bin/ntoarm-ld error 1
The problem is that maximumBytecodeIndex is being declared like this:
struct CodeOrigin {
static const unsigned maximumBytecodeIndex = (1u << 29) - 1;
but according to the C++ spec apparently you cannot define static members like that, it will only count as a declaration. This page explains it pretty well: http://stackoverflow.com/questions/3536372/defining-static-members-in-c
A simple fix is to define this in the cpp file, removing the assignment in the struct declaration. Patch coming.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list