Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184301

Summary: [PATCH] glib - g_module_symbol(NULL, ...) fails with loaded modules
Product: Gentoo Linux Reporter: Roy Marples (RETIRED) <uberlord>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://bugzilla.gnome.org/show_bug.cgi?id=107626
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 183708    
Attachments: Work on FreeBSD

Description Roy Marples (RETIRED) gentoo-dev 2007-07-05 14:01:41 UTC
From the GNOME bug

i am seeing this bug in evolution.

what happens is, a bonobo shlib component uses libglade, and uses the
symbol lookup parts of g_module.  this fails, because the symbols aren't
defined in the "self" module, but in a loaded module.

eg, gfrob loads libfoo_comp.so using gmodule.  libfoo_comp.so calls
g_module_symbol (NULL, "foo_function").  this fails on OS X, but apparently
works on linux.

a simple workaround is to try looking up the symbol in the previoiusly
loaded modules (see attached patch).

--------------------------

Now, this bug is 4 years old and still hasn't been fixed upstream :/
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-07-05 14:02:53 UTC
Created attachment 123959 [details, diff]
Work on FreeBSD

This is the FreeBSD patch which enabled gmodule to work with bonobo and other stuff. Taken from their ports tree, I claim no credit.
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-07-06 00:32:49 UTC
applied.  Thanks, uber.