[Webkit-unassigned] [Bug 24932] WebKit compilation support in Solaris 10 with Sun Studio 12 (CC 5.9)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 08:36:41 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24932


Thiago Macieira <thiago.macieira at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29071|0                           |1
        is obsolete|                            |




--- Comment #36 from Thiago Macieira <thiago.macieira at nokia.com>  2009-07-28 08:36:40 PDT ---
Created an attachment (id=33649)
 --> (https://bugs.webkit.org/attachment.cgi?id=33649)
[PATCH 17/17] Fix linking with Sun CC 5.9: function pointers for extern "C" are
treated differently

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.

"plugins/npapi.cpp", line 177: Warning (Anachronism): Formal argument 2 of type
void(*)(void*) in call to
WebCore::PluginMainThreadScheduler::scheduleCall(_NPP*, void(*)(void*), void*)
is being passed extern "C" void(*)(void*).

There are more of these errors left in WebKit, but they are not
causing problems right now.

-- 
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