Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 451402 - undefined symbol: gtk_file_system_error_quark
Summary: undefined symbol: gtk_file_system_error_quark
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby-gnome2
Version: rawhide
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Allisson Azevedo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-14 04:10 UTC by Mamoru TASAKA
Modified: 2008-06-14 21:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-14 21:01:53 UTC


Attachments (Terms of Use)

Description Mamoru TASAKA 2008-06-14 04:10:33 UTC
Description of problem:
(As far as I checked it) all apprecations using ruby-gtk2
(like alexandria, fantasdic) cannot just launch with gtk2-2.13.3-1.fc10,
with complaining about gtk_file_system_error_quark symbol not found.
With previous gtk2-2.13.2-2.fc10 there is no problem.

$ rpmsodiff gtk2-2.13.2-2.fc10.i386.rpm gtk2-2.13.3-1.fc10.i386.rpm 
shows many symbols are removed.

Version-Release number of selected component (if applicable):
gtk2-2.13.2-2.fc10
ruby-gtk2-0.17.0-0.1.rc1.fc10
ruby-1.8.6.114-1.fc9
(and fantasdic-1.0-0.1.beta5, for example)

How reproducible:
100%

Steps to Reproduce:
1. type $fantasdic
2.
3.
  
Actual results:
[root@localhost ~]# fantasdic
/usr/bin/ruby: symbol lookup error:
/usr/lib/ruby/site_ruby/1.8/i386-linux/gtk2.so: undefined symbol:
gtk_file_system_error_quark


Expected results:
fantasdic should launch

Comment 1 Mamoru TASAKA 2008-06-14 04:12:59 UTC
(In reply to comment #0)
> Version-Release number of selected component (if applicable):
> gtk2-2.13.2-2.fc10

This is gtk2-2.13.3-1.fc10 . With gtk2-2.13.2-2.fc10 there is
no problem.

> ruby-gtk2-0.17.0-0.1.rc1.fc10
> ruby-1.8.6.114-1.fc9
> (and fantasdic-1.0-0.1.beta5, for example)

Comment 2 Matthias Clasen 2008-06-14 18:05:38 UTC
That symbol was not part of the public API. It was protected by:

/* This is a "semi-private" header; it is meant only for
 * alternate GtkFileChooser backend modules; no stability guarantees 
 * are made at this point
 */
#ifndef GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
#error "GtkFileSystem is not supported API for general use"
#endif

ruby-gtk should not be using it.

Comment 3 Mamoru TASAKA 2008-06-14 18:43:41 UTC
But ruby-gtk2 actually does _not_ use the symbol.

Comment 4 Mamoru TASAKA 2008-06-14 18:44:44 UTC
(In reply to comment #3)
> But ruby-gtk2 actually does _not_ use the symbol.
ruby-gtk2 does not use the functions...

Comment 5 Matthias Clasen 2008-06-14 19:13:03 UTC
nm shows that it does...

[mclasen@localhost Desktop]$ nm -D
/usr/lib/ruby/site_ruby/1.8/i386-linux/gtk2.so | grep gtk_file_system
         U gtk_file_system_error_quark



Comment 6 Mamoru TASAKA 2008-06-14 19:18:52 UTC
(In reply to comment #5)
> nm shows that it does...
> 
> [mclasen@localhost Desktop]$ nm -D
> /usr/lib/ruby/site_ruby/1.8/i386-linux/gtk2.so | grep gtk_file_system
>          U gtk_file_system_error_quark
> 
So I am actually confused. Actually ruby-gnome2 (this is srpm name)
source does not use such function.



Comment 7 Matthias Clasen 2008-06-14 19:22:47 UTC
Untested patch (sorry, rawhide browsers don't let me attach a file...)

diff -up ruby-gnome2-0.17.0-rc1/gtk/src/rbgtkfilechooser.c.file-system-error
ruby-gnome2-0.17.0-rc1/gtk/src/rbgtkfilechooser.c
--- ruby-gnome2-0.17.0-rc1/gtk/src/rbgtkfilechooser.c.file-system-error
2008-06-14 15:16:50.000000000 -0400
+++ ruby-gnome2-0.17.0-rc1/gtk/src/rbgtkfilechooser.c   2008-06-14
15:17:01.000000000 -0400
@@ -367,14 +367,6 @@ Init_gtk_file_chooser()
     /* GtkFileChooserError */
     G_DEF_ERROR(GTK_FILE_CHOOSER_ERROR, "FileChooserError", mGtk, rb_eRuntimeError,
                 GTK_TYPE_FILE_CHOOSER_ERROR);
-    /* GtkFileSystemError */
-    fse = G_DEF_ERROR2(GTK_FILE_SYSTEM_ERROR, "FileSystemError", mGtk,
rb_eRuntimeError);
-    rb_define_const(fse, "NONEXISTENT",
INT2NUM(GTK_FILE_SYSTEM_ERROR_NONEXISTENT));
-    rb_define_const(fse, "NOT_FOLDER", INT2NUM(GTK_FILE_SYSTEM_ERROR_NOT_FOLDER));
-    rb_define_const(fse, "INVALID_URI",
INT2NUM(GTK_FILE_SYSTEM_ERROR_INVALID_URI));
-    rb_define_const(fse, "BAD_FILENAME",
INT2NUM(GTK_FILE_SYSTEM_ERROR_BAD_FILENAME));
-    rb_define_const(fse, "FAILED", INT2NUM(GTK_FILE_SYSTEM_ERROR_FAILED));
-    rb_define_const(fse, "ALREADY_EXSITS",
INT2NUM(GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS));

 #if GTK_CHECK_VERSION(2,8,0)
     /* GtkFileChooserConfirmation */


Comment 8 Mamoru TASAKA 2008-06-14 19:29:55 UTC
Yes, I found GTK_FILE_SYSTEM_ERROR instead. Thank you for 
your advise/help and sorry for confusing you, Matthias.

Comment 9 Mamoru TASAKA 2008-06-14 21:01:53 UTC
Fixed in ruby-gnome2-0.17.0-0.2.rc1.fc10, thanks.

Comment 10 Matthias Clasen 2008-06-14 21:42:34 UTC
Oh, but actually.  ./';,lkmjhtyhu.,u 

Comment 11 Matthias Clasen 2008-06-14 21:45:30 UTC
Oh, but actually, you have a point in that we are still generating errors in
that domain...

I'll take it upstream. The error may come back in the next release...

Comment 12 Matthias Clasen 2008-06-14 21:48:05 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=538378


Note You need to log in before you can comment on or make changes to this bug.