Bug 119659 - [GTK] [Stable] webkitgtk-2.0.4 gamepad support and undefined reference to g_udev_…
Summary: [GTK] [Stable] webkitgtk-2.0.4 gamepad support and undefined reference to g_u...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 420+
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-10 23:17 PDT by Paul Seidler
Modified: 2013-09-16 00:01 PDT (History)
2 users (show)

See Also:


Attachments
compressed build log including error (deleted)
2013-08-10 23:17 PDT, Paul Seidler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Seidler 2013-08-10 23:17:06 PDT
Created attachment 208487 [details]
compressed build log including error

--enable-gamepad leads here to:

Source/WebCore/platform/gtk/.libs/libWebCorePlatform_la-GamepadsGtk.o: In function `WebCore::GamepadsGtk::isGamepadDevice(_GUdevDevice*)':
GamepadsGtk.cpp:(.text+0x3e2): undefined reference to `g_udev_device_get_device_file'
GamepadsGtk.cpp:(.text+0x3ed): undefined reference to `g_udev_device_get_sysfs_path'
GamepadsGtk.cpp:(.text+0x420): undefined reference to `g_udev_device_has_property'
GamepadsGtk.cpp:(.text+0x433): undefined reference to `g_udev_device_has_property'
Source/WebCore/platform/gtk/.libs/libWebCorePlatform_la-GamepadsGtk.o: In function `WebCore::GamepadsGtk::onUEventCallback(_GUdevClient*, char*, _GUdevDevice*, void*)':
GamepadsGtk.cpp:(.text+0xbd4): undefined reference to `g_udev_device_get_device_file'
Source/WebCore/platform/gtk/.libs/libWebCorePlatform_la-GamepadsGtk.o: In function `WebCore::GamepadsGtk::GamepadsGtk(unsigned int)':
GamepadsGtk.cpp:(.text+0xd3d): undefined reference to `g_udev_client_new'
GamepadsGtk.cpp:(.text+0xda0): undefined reference to `g_udev_client_query_by_subsystem'
GamepadsGtk.cpp:(.text+0xdb1): undefined reference to `g_udev_device_get_type'
GamepadsGtk.cpp:(.text+0xe01): undefined reference to `g_udev_device_get_device_file'
collect2: error: ld returned 1 exit status
make[1]: *** [Programs/WebKitPluginProcess] Error 1

Some -lgudev-1.0 or GAMEPAD_LIBS seems to be missing
Comment 1 Alberto Garcia 2013-09-13 06:16:41 PDT
It seems to work fine in my environment, what version of gudev do you have?
Comment 2 Alberto Garcia 2013-09-13 07:52:49 PDT
Ah, I see, this is fixed in trunk (bug 114901) but fails in the stable branch.

Carlos, we need to add this to Programs_WebKitPluginProcess_LDADD:

--- Source/WebKit2/GNUmakefile.am.orig  2013-09-13 17:50:37.461815213 +0300
+++ Source/WebKit2/GNUmakefile.am       2013-09-13 17:38:39.415056167 +0300
@@ -610,6 +610,7 @@
        $(CAIRO_LIBS) \
        $(COVERAGE_LDFLAGS) \
        $(FREETYPE_LIBS) \
+       $(GAMEPAD_LIBS) \
        $(GEOCLUE_LIBS) \
        $(GLIB_LIBS) \
        $(GSTREAMER_LIBS) \

I'll update the wiki.
Comment 3 Carlos Garcia Campos 2013-09-15 23:51:52 PDT
(In reply to comment #2)
> Ah, I see, this is fixed in trunk (bug 114901) but fails in the stable branch.
> 
> Carlos, we need to add this to Programs_WebKitPluginProcess_LDADD:
> 
> --- Source/WebKit2/GNUmakefile.am.orig  2013-09-13 17:50:37.461815213 +0300
> +++ Source/WebKit2/GNUmakefile.am       2013-09-13 17:38:39.415056167 +0300
> @@ -610,6 +610,7 @@
>         $(CAIRO_LIBS) \
>         $(COVERAGE_LDFLAGS) \
>         $(FREETYPE_LIBS) \
> +       $(GAMEPAD_LIBS) \
>         $(GEOCLUE_LIBS) \
>         $(GLIB_LIBS) \
>         $(GSTREAMER_LIBS) \
> 
> I'll update the wiki.

I'm confused, bug 114901 landed in r149169 that is previous to the branch point r154665 and Programs_WebKitPluginProcess_LDADD already have GAMEPAD_LIBS in 2.2 branch
Comment 4 Alberto Garcia 2013-09-15 23:58:42 PDT
(In reply to comment #3)
> I'm confused, bug 114901 landed in r149169 that is previous to the
> branch point r154665 and Programs_WebKitPluginProcess_LDADD already
> have GAMEPAD_LIBS in 2.2 branch

Never mind, Gustavo fixed this already: http://trac.webkit.org/changeset/154060
Comment 5 Carlos Garcia Campos 2013-09-16 00:01:07 PDT
(In reply to comment #4)
> (In reply to comment #3)
> > I'm confused, bug 114901 landed in r149169 that is previous to the
> > branch point r154665 and Programs_WebKitPluginProcess_LDADD already
> > have GAMEPAD_LIBS in 2.2 branch
> 
> Never mind, Gustavo fixed this already: http://trac.webkit.org/changeset/154060

Ah, ok, this only applied to the 2.0 branch, not the 2.2 one.