Closed Bug 1092825 Opened 10 years ago Closed 10 years ago

firefox rpm does not have minimum required version on gtk2 dependency

Categories

(Core :: Widget: Gtk, defect)

31 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bizniz.nonaya, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Build ID: 20141017203048

Steps to reproduce:

on Centos 6.5 (without first updating everything in Centos):
$ sudo yum update firefox 



Actual results:

firefox fails to start because of undef symbol from gtk2:

$ firefox
        Xlib:  extension "RANDR" missing on display ":0.0".  
        /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: 
                undefined symbol: gdk_window_get_visual



Expected results:

firefox should require version >= 2.24 of gtk2 library.
GNOME clearly indicates this symbol requires GTK2 version 2.24:

https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-get-visual
        gdk_window_get_visual()
        Since 2.24

to resolve problem, I updated the world:
$ sudo yum update

here is a trail of findind the required dependency (after updating the world):

$ rpm -q firefox
        firefox-31.2.0-3.el6.centos.x86_64
$ rpm -q --whatprovides /usr/lib64/firefox/libxul.so
        firefox-31.2.0-3.el6.centos.x86_64
$ nm -Do /usr/lib/libgdk* | grep gdk_window_get_visual
        /usr/lib/libgdk-x11-2.0.so:00a257b0 T gdk_window_get_visual
        /usr/lib/libgdk-x11-2.0.so.0:00a257b0 T gdk_window_get_visual
        /usr/lib/libgdk-x11-2.0.so.0.2400.23:00a257b0 T gdk_window_get_visual
$ rpm -q --whatprovides /usr/lib/libgdk-x11-2.0.so.0.2400.23
        gtk2-2.24.23-6.el6.i686
Component: Untriaged → Installer
Mozilla doesn't offer RPMs , only a tarball but
https://www.mozilla.org/en-US/firefox/33.0.2/system-requirements/
still indicates that "GTK+ 2.18 or higher" is required
Component: Installer → Widget: Gtk
Product: Firefox → Core
So this bug has to go to upstream distro (Red Hat) maintainer?  Does anyone have pointers to where it should go?
(In reply to bizniz.nonaya from comment #2)
> So this bug has to go to upstream distro (Red Hat) maintainer?  Does anyone
> have pointers to where it should go?

created: https://bugzilla.redhat.com/show_bug.cgi?id=1159684
(In reply to bizniz.nonaya from comment #2)
> So this bug has to go to upstream distro (Red Hat) maintainer?  Does anyone
> have pointers to where it should go?

For the RPM you have to contact Redheat but either our system requirements page is wrong or this is an unwanted change. That's the reason why I didn't close this report as invalid
Gecko's use of gdk_window_get_visual resolves to gdk_drawable_get_visual, as in Mozilla builds, unless compiled against GTK+ 2.24.x headers:

https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.h?h=gtk-2-18#n695
(In reply to Karl Tomlinson (:karlt) from comment #5)
> Gecko's use of gdk_window_get_visual resolves to gdk_drawable_get_visual, as
> in Mozilla builds, unless compiled against GTK+ 2.24.x headers:
> 
> https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.h?h=gtk-2-18#n695

So definitely an upstream bug then? Sounds like this can be closed after all.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.