Bug 38091 - Build error without geolocation
Summary: Build error without geolocation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 38451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-25 00:38 PDT by ojab
Modified: 2010-05-12 05:14 PDT (History)
5 users (show)

See Also:


Attachments
Fixing build break when Geolocation feature is disabled (1.01 KB, patch)
2010-04-25 06:04 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
fix ChangeLog (1.03 KB, patch)
2010-04-27 11:11 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (1.05 KB, patch)
2010-05-03 06:36 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ojab 2010-04-25 00:38:53 PDT
CXXLD  libwebkit-1.0.la
/bin/mkdir -p ./.deps/DerivedSources
  CC     WebKitTools/GtkLauncher/Programs_GtkLauncher-main.o
  CCLD   Programs/GtkLauncher
./.libs/libwebkit-1.0.so: undefined reference to `WebCore::Geolocation::clearWatch(int)'
collect2: ld returned 1 exit status
make[1]: *** [Programs/GtkLauncher] Error 1
make[1]: Leaving directory `/sources/WebKit/WebKitBuild/Release'
make: *** [all] Error 2
Comment 1 Ryuan Choi 2010-04-25 06:04:03 PDT
Created attachment 54237 [details]
Fixing build break when Geolocation feature is disabled

Can I fix this build break?
I am newbie in webkit.org

My modification is as below,

Index: WebCore/page/Geolocation.cpp
===================================================================
--- WebCore/page/Geolocation.cpp        (revision 58227)
+++ WebCore/page/Geolocation.cpp        (working copy)
@@ -659,6 +659,8 @@ void Geolocation::stopUpdating()

 namespace WebCore {

+void Geolocation::clearWatch(int watchId) {}
+

I think clearWatch() should be added to #else of ENABLE(GEOLOCATION) in Geolocation.cpp

Thank you,
Ryuan Choi
Comment 2 Laszlo Gombos 2010-04-26 07:54:47 PDT
Some of these are addresses in bug 25756. At least for the QtWebKit port this change is not needed. Where is call site for clearWatch if ENABLE(GEOLOCATION) is turned of ?
Comment 3 Eric Seidel (no email) 2010-04-26 14:06:26 PDT
Comment on attachment 54237 [details]
Fixing build break when Geolocation feature is disabled

No new tests. (OOPS!)
should be replaced with a statement as to why there are no tests.  In this case, it's rather obvious, this is a build fix only.

The "Reviewed by NOBODY (OOPS!)." line will automatically get updated by the commit-queue or webkit-patch or however this patch is landed.
Comment 4 Ryuan Choi 2010-04-27 11:11:15 PDT
Created attachment 54433 [details]
fix ChangeLog

Thank you for answer, Eric. I fixed Changelog

and I saw this build break in gtk port.
Comment 5 Eric Seidel (no email) 2010-05-02 18:58:46 PDT
Comment on attachment 54237 [details]
Fixing build break when Geolocation feature is disabled

Please obsolete your old patches when posting a new one.

webkit-patch upload
will automate the entire process of posting a patch for you. :)
Comment 6 Ryuan Choi 2010-05-03 06:36:40 PDT
Created attachment 54922 [details]
Patch
Comment 7 Ryuan Choi 2010-05-03 06:46:31 PDT
hmm. sorry I missed --no-obsolete option

and I had some issues about LANG.
(I use ko_KR.UTF-8)

anyway, Thank you for your kindness.
Comment 8 WebKit Commit Bot 2010-05-03 10:24:39 PDT
Comment on attachment 54922 [details]
Patch

Clearing flags on attachment: 54922

Committed r58682: <http://trac.webkit.org/changeset/58682>
Comment 9 WebKit Commit Bot 2010-05-03 10:24:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Nayan 2010-05-12 05:14:52 PDT
*** Bug 38451 has been marked as a duplicate of this bug. ***