Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 886
    • Issues 886
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • GLib
  • Issues
  • #2379

Closed
Open
Created Apr 06, 2021 by Emmanuele Bassi@ebassi👣Maintainer

Unconditionally build GModule

We currently allow building GLib without a working GModule implementation, but we do kind of assume that GModule is available—for instance, GIO's modules are predicated on it working.

The chance of an OS existing that is both supported by GLib and does not have a GModule implementation in 2021 is vanishingly small.

My proposal is to turn:

# Done, have we got an implementation?
if g_module_impl == ''
  g_module_impl = '0'
  message('WARNING: No suitable GModule implementation found!')
endif

into:

if g_module_impl == ''
  error('No suitable GModule implementation found')
endif

and require dlopen() to exist on any POSIX-like systems. If there are operating systems with other mechanisms for dynamic module loading, then they should contribute the code to GLib.

Assignee
Assign to
Time tracking