<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>119659</bug_id>
          
          <creation_ts>2013-08-10 23:17:06 -0700</creation_ts>
          <short_desc>[GTK] [Stable] webkitgtk-2.0.4 gamepad support and undefined reference to g_udev_…</short_desc>
          <delta_ts>2013-09-16 00:01:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>420+</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Paul Seidler">sepek</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>916087</commentid>
    <comment_count>0</comment_count>
      <attachid>208487</attachid>
    <who name="Paul Seidler">sepek</who>
    <bug_when>2013-08-10 23:17:06 -0700</bug_when>
    <thetext>Created attachment 208487
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*)&apos;:
GamepadsGtk.cpp:(.text+0x3e2): undefined reference to `g_udev_device_get_device_file&apos;
GamepadsGtk.cpp:(.text+0x3ed): undefined reference to `g_udev_device_get_sysfs_path&apos;
GamepadsGtk.cpp:(.text+0x420): undefined reference to `g_udev_device_has_property&apos;
GamepadsGtk.cpp:(.text+0x433): undefined reference to `g_udev_device_has_property&apos;
Source/WebCore/platform/gtk/.libs/libWebCorePlatform_la-GamepadsGtk.o: In function `WebCore::GamepadsGtk::onUEventCallback(_GUdevClient*, char*, _GUdevDevice*, void*)&apos;:
GamepadsGtk.cpp:(.text+0xbd4): undefined reference to `g_udev_device_get_device_file&apos;
Source/WebCore/platform/gtk/.libs/libWebCorePlatform_la-GamepadsGtk.o: In function `WebCore::GamepadsGtk::GamepadsGtk(unsigned int)&apos;:
GamepadsGtk.cpp:(.text+0xd3d): undefined reference to `g_udev_client_new&apos;
GamepadsGtk.cpp:(.text+0xda0): undefined reference to `g_udev_client_query_by_subsystem&apos;
GamepadsGtk.cpp:(.text+0xdb1): undefined reference to `g_udev_device_get_type&apos;
GamepadsGtk.cpp:(.text+0xe01): undefined reference to `g_udev_device_get_device_file&apos;
collect2: error: ld returned 1 exit status
make[1]: *** [Programs/WebKitPluginProcess] Error 1

Some -lgudev-1.0 or GAMEPAD_LIBS seems to be missing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>928815</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-13 06:16:41 -0700</bug_when>
    <thetext>It seems to work fine in my environment, what version of gudev do you have?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>928837</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-13 07:52:49 -0700</bug_when>
    <thetext>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&apos;ll update the wiki.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929559</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-09-15 23:51:52 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Ah, I see, this is fixed in trunk (bug 114901) but fails in the stable branch.
&gt; 
&gt; Carlos, we need to add this to Programs_WebKitPluginProcess_LDADD:
&gt; 
&gt; --- Source/WebKit2/GNUmakefile.am.orig  2013-09-13 17:50:37.461815213 +0300
&gt; +++ Source/WebKit2/GNUmakefile.am       2013-09-13 17:38:39.415056167 +0300
&gt; @@ -610,6 +610,7 @@
&gt;         $(CAIRO_LIBS) \
&gt;         $(COVERAGE_LDFLAGS) \
&gt;         $(FREETYPE_LIBS) \
&gt; +       $(GAMEPAD_LIBS) \
&gt;         $(GEOCLUE_LIBS) \
&gt;         $(GLIB_LIBS) \
&gt;         $(GSTREAMER_LIBS) \
&gt; 
&gt; I&apos;ll update the wiki.

I&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929561</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-15 23:58:42 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m confused, bug 114901 landed in r149169 that is previous to the
&gt; branch point r154665 and Programs_WebKitPluginProcess_LDADD already
&gt; have GAMEPAD_LIBS in 2.2 branch

Never mind, Gustavo fixed this already: http://trac.webkit.org/changeset/154060</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929563</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-09-16 00:01:07 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; I&apos;m confused, bug 114901 landed in r149169 that is previous to the
&gt; &gt; branch point r154665 and Programs_WebKitPluginProcess_LDADD already
&gt; &gt; have GAMEPAD_LIBS in 2.2 branch
&gt; 
&gt; 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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>208487</attachid>
            <date>2013-08-10 23:17:06 -0700</date>
            <delta_ts>2013-08-10 23:17:06 -0700</delta_ts>
            <desc>compressed build log including error</desc>
            <filename>1376150297-install-net-libs_webkit-2.0.4:3.0::gnome.out.xz</filename>
            <type>application/octet-stream</type>
            <size>0</size>
            <attacher name="Paul Seidler">sepek</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>