WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
31575
Fix WebKit build when JAVASCRIPT_DEBUGGER is disabled
https://bugs.webkit.org/show_bug.cgi?id=31575
Summary
Fix WebKit build when JAVASCRIPT_DEBUGGER is disabled
Laszlo Gombos
Reported
2009-11-16 22:01:40 PST
Building QtWebKit with --minimal will result in the following linker error: WebKitBuildQt/Release/lib/libQtWebKit.so: undefined reference to `WebCore::JSConsole::profile(JSC::ExecState*, JSC::ArgList const&)' WebKitBuildQt/Release/lib/libQtWebKit.so: undefined reference to `WebCore::JSConsole::profileEnd(JSC::ExecState*, JSC::ArgList const&)' This is probably caused by
r50933
.
Attachments
Proposed fix
(1.66 KB, patch)
2009-11-17 12:40 PST
,
Mikhail Naganov
no flags
Details
Formatted Diff
Diff
an easier way
(1.18 KB, patch)
2009-11-18 02:09 PST
,
Mikhail Naganov
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mikhail Naganov
Comment 1
2009-11-17 12:40:03 PST
Created
attachment 43377
[details]
Proposed fix I tried to make 'console.profile()' and 'console.profileEnd()' declarations platform-dependent, but for some reason this doesn't work. So I took another route and made their implementations empty in the case when there is no debugger. Laszlo, can you try your debuggerless Qt build with this patch, please?
Laszlo Gombos
Comment 2
2009-11-17 13:12:30 PST
I can confirm that the proposed patch builds for JSC + ENABLE_JAVASCRIPT_DEBUGGER=0 case (tested with build-webkit --qt --minimal)
Dmitry Titov
Comment 3
2009-11-18 00:08:45 PST
> I tried to make 'console.profile()' and 'console.profileEnd()' declarations > platform-dependent, but for some reason this doesn't work. So I took another > route and made their implementations empty in the case when there is no > debugger.
It seems that defined(V8_BINDING) && V8_BINDING is the way used in IDL files to check if the bindings are generated for V8. It might be a cleaner way to do this.
Mikhail Naganov
Comment 4
2009-11-18 02:09:20 PST
Created
attachment 43418
[details]
an easier way Thanks, Dimich! That's really an easier way, and it works with Chromium. Laszlo, can I ask you to test this patch, please? If it works for you, I'll find someone to review and submit it.
Eric Seidel (no email)
Comment 5
2009-11-18 15:35:07 PST
Comment on
attachment 43418
[details]
an easier way I don't understand why the chromium build doesn't define ENABLE_JAVASCRIPT_DEBUGGER. Probably because ENABLE_JAVASCRIPT_DEBUGGER depends on JSC? If that's the case then we really should come up with a define for the debugger which would not depend on JSC.
Eric Seidel (no email)
Comment 6
2009-11-18 15:37:10 PST
(I'm not sure who the JSC debugger expert is these days, but ccing Oliver so that someone in JSC land sees this go by.)
WebKit Commit Bot
Comment 7
2009-11-18 16:27:06 PST
Comment on
attachment 43418
[details]
an easier way Clearing flags on attachment: 43418 Committed
r51153
: <
http://trac.webkit.org/changeset/51153
>
WebKit Commit Bot
Comment 8
2009-11-18 16:27:14 PST
All reviewed patches have been landed. Closing bug.
Laszlo Gombos
Comment 9
2009-11-18 22:14:48 PST
Thanks !
Mikhail Naganov
Comment 10
2009-11-18 23:56:57 PST
(In reply to
comment #5
)
> (From update of
attachment 43418
[details]
) > I don't understand why the chromium build doesn't define > ENABLE_JAVASCRIPT_DEBUGGER. Probably because ENABLE_JAVASCRIPT_DEBUGGER > depends on JSC? If that's the case then we really should come up with a define > for the debugger which would not depend on JSC.
Yes, currently the code under ENABLE_JAVASCRIPT_DEBUGGER defines is tied directly to JSC, so it won't event compile in Chromium.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug