[Webkit-unassigned] [Bug 58508] New: Fix linking with Sun Studio 12: function pointers for extern "C" are treated differently
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 13 20:05:37 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=58508
Summary: Fix linking with Sun Studio 12: function pointers for
extern "C" are treated differently
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Other
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bentaylor.solx86 at gmail.com
The Sun CC compiler treats C functions and C++ functions differently, as if they had a different calling sequence (they don't, but they
could). So if you declare a function in C++ having a function pointer as a parameter, it's understood to be C++ even if it had previously been declared as extern "C".
This could be a compiler error, though. In any case, the end result is that WebKit fails to link because of an undefined reference to
NPN_PluginThreadAsyncCall.
Problem originally identified by Thiago Macieria in bug https://bugs.webkit.org/show_bug.cgi?id=24932 and
fixed by patch webkit17-17.diff in his suite.
--
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