Ticket #29 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

Dynamic library (plugin) loading is not working using eglib

Reported by: vcgomes Assigned to: vcgomes
Priority: major Milestone: Sprint 3
Component: core Version: 3.31
Keywords: Cc:
Estimated Number of Hours: 2 Add Hours to Ticket: 0
Billable?: 0 Total Hours: 2.0

Description

With glib support disabled it is impossible to load the plugins.

Error messages:

hcid[31145]: Can't load plugin: /home/work/bluez-utils.cvs/plugins/libserial.so: invalid mode for dlopen(): Invalid argument
hcid[31145]: Can't load plugin: /home/work/bluez-utils.cvs/plugins/libnetwork.so: invalid mode for dlopen(): Invalid argument
hcid[31145]: Can't load plugin: /home/work/bluez-utils.cvs/plugins/libaudio.so: invalid mode for dlopen(): Invalid argument
hcid[31145]: Can't load plugin: /home/work/bluez-utils.cvs/plugins/libinput.so: invalid mode for dlopen(): Invalid argument

Change History

04/17/08 19:00:30 changed by vcgomes

  • hours set to 2.
  • status changed from new to closed.
  • resolution set to fixed.
  • totalhours changed from 0.0 to 2.0.

This was happening because two factors: - the dlopen doesn't support the "0" flag, as the g_module_open does. - the plugin was using some symbols from the hcid executable and it could not access theses symbols without the correct compile flags.

Changed Files - Revisions: - acinclude.m4 - 1.134 - hcid/plugin.c - 1.12