Bug 63629

Summary: [Symbian] Fix link error while building with RVCT 2.2 compiler
Product: WebKit Reporter: Stanislav Paltis <Stanislav.Paltis>
Component: WebCore JavaScriptAssignee: Stanislav Paltis <Stanislav.Paltis>
Status: RESOLVED WONTFIX    
Severity: Normal CC: dbates, laszlo.gombos
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: S60 Hardware   
OS: S60 3rd edition   
Attachments:
Description Flags
using Virtual destructor in case of building for <RVCT4.0 eric: review-

Stanislav Paltis
Reported 2011-06-29 07:49:53 PDT
While linking QtWebkit with RVCT2.2 compiler, I observe the following errors: Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::MediaQueryList>::operator delete (void*) (referred from JSMediaQueryList.o). Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::ArrayBuffer>::operator delete (void*) (referred from JSFileReaderSync.o). Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::InjectedScriptHost>::operator delete (void*) (referred from JSInjectedScriptHost.o). Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::ScriptCallStack>::operator delete (void*) (referred from JSConsole.o). Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::Storage>::operator delete (void*) (referred from JSStorage.o). Error: L6218E: Undefined symbol WTF::RefCounted<WebCore::CounterNode>::operator delete (void*) (referred from RenderCounter.o). If building with RVCT4.0 compiler, build is successful. The problem is that RVCT2.2 has a bug where it does not export automatically destructors for templated objects.
Attachments
using Virtual destructor in case of building for <RVCT4.0 (1.25 KB, patch)
2011-06-29 09:41 PDT, Stanislav Paltis
eric: review-
Stanislav Paltis
Comment 1 2011-06-29 09:41:00 PDT
Created attachment 99105 [details] using Virtual destructor in case of building for <RVCT4.0
Eric Seidel (no email)
Comment 2 2011-07-05 17:51:43 PDT
Comment on attachment 99105 [details] using Virtual destructor in case of building for <RVCT4.0 I'm confused why this is needed? Why do we need a virtual destructor?
Eric Seidel (no email)
Comment 3 2011-07-05 17:52:19 PDT
Comment on attachment 99105 [details] using Virtual destructor in case of building for <RVCT4.0 Please link to the symbian compiler bug, if this is indeede a compiler bug. We need to know when we can remove this code.
Stanislav Paltis
Comment 4 2011-07-06 13:18:06 PDT
I could not find actual compiler/linker bug, but it seems to happen only in RVCT 2.2 compiler. It works fine if we are using RVCT 4.0 compiler. Direction is to move from using RVCT 2.2 and use RVCT 4.0 instead. Let me know what you want me to do.
Laszlo Gombos
Comment 5 2012-01-14 17:31:32 PST
Closed as WONTFIX - see https://lists.webkit.org/pipermail/webkit-qt/2011-October/001979.html. Symbian was the only port requiring RVCT 2.2.
Note You need to log in before you can comment on or make changes to this bug.