[Webkit-unassigned] [Bug 40328] GtkLauncher fails to build: Undefined references to openFile, readFromFile, and seekFile
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 9 06:32:28 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40328
--- Comment #1 from Clemmitt Sigler <cmsigler at gmail.com> 2010-06-09 06:32:28 PST ---
(In reply to comment #0)
<snip>
> ./.libs/libwebkit-1.0.so: undefined reference to
> `WebCore::openFile(WebCore::String const&, WebCore::FileOpenMode)'
> ./.libs/libwebkit-1.0.so: undefined reference to
> `WebCore::readFromFile(int, char*, int)'
> ./.libs/libwebkit-1.0.so: undefined reference to
> `WebCore::seekFile(int, long long, WebCore::FileSeekOrigin)'
<snip>
> These file access problems seem to be related to
> WebCore/platform/gtk/FileSystemGtk.cpp. These three
> methods aren't defined in this file as they are in,
> e.g., WebCore/platform/posix/FileSystemPOSIX.cpp.
Additional info:
As a QnD test I've added dummy stubs that return -1 (error) for these three methods to WebCore/platform/gtk/FileSystemGtk.cpp. Doing that at least gets the build to complete w/o error.
A little investigation leads me to believe that:
1.) To implement 'PlatformFileHandle openFile(const String& path, FileOpenMode mode)' for the GTK platform, a wrapper for 'int g_open(const gchar *filename, int flags, int mode)' is needed.
2.) To implement 'int readFromFile(PlatformFileHandle handle, char* data, int length)' for the GTK platform, a wrapper for 'gboolean g_file_get_contents(const gchar *filename, gchar **contents, gsize *length, GError **error)' is needed.
3.) To implement 'long long seekFile(PlatformFileHandle handle, long long offset, FileSeekOrigin origin)' for the GTK platform, a wrapper for 'GIOStatus g_io_channel_seek_position(GIOChannel *channel, gint64 offset, GSeekType type, GError **error)' is needed.
I'm not a low-level GTK developer, having only done some simple GUI design/use, so I'd say I'm not the best person to implement these. Any GTK developer out there, for whom this is a half-hour hack? TIA!
Clemmitt
--
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