Issue of the Implementation # S0575


g_module_open fails to open modules with ".la" extension

Detailed Description

If a module (not a libtool archive) has ".la" extension, g_module_open fails to open it when passed its full name.

At the same time the standard reads: "First of all g_module_open() tries to open file_name as a module. If that fails and file_name has the ".la"-suffix (and is a libtool archive) it tries to open the corresponding module."

Problem location(s) in the standard

Glib 2.6.2 Reference Manual, Dynamic Loading of Modules


  1. Create a module (a shared object) or get an existing one, say,
  2. Rename it to
  3. Call g_module_open with the full path to as an argument (do not omit the ".la" extension).
  4. g_module_open returns NULL.


gtk-gmodule 2.6.2 or later


Gnome Bugzilla 480122