Details

[Home]

Issue of the Implementation # S0575

Brief

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

Reproducing

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

Component

gtk-gmodule 2.6.2 or later

Accepted

Gnome Bugzilla 480122

[Home]