Re: Loading plugin error

Stefan Seyfried <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
On Fri, Apr 04, 2008 at 03:58:31PM +0530, rahul tank wrote:
> Ok .. i tried compiling bluez-utils with --enable-glib option and it solved
> the issue.

It did not for me.
I configured like this:

./configure --prefix=/usr \
	--mandir=/usr/share/man \
	--sysconfdir=/etc \
	--libdir=/usr/lib \
	--libexecdir=/lib \
	--localstatedir=/var \
	--enable-pie \
	--enable-all --enable-glib

(enable-all should IIUC include enable-glib, but i used it anyway, it did not
change anything)

starting hcid with "-x -s" gives:

hcid[10053]: Bluetooth HCI daemon
hcid[10053]: HCI dev 0 registered
hcid[10053]: HCI dev 0 already up
hcid[10053]: Device hci0 has been added
hcid[10053]: Starting security manager 0
hcid[10053]: Device hci0 has been activated
hcid[10053]: Starting SDP server
hcid[10053]: Can't load plugin: /usr/lib/bluetooth/plugins/libaudio.so: invalid mode for dlopen(): Invalid argument
hcid[10053]: Can't load plugin: /usr/lib/bluetooth/plugins/libserial.so: invalid mode for dlopen(): Invalid argument
hcid[10053]: Can't load plugin: /usr/lib/bluetooth/plugins/libnetwork.so: invalid mode for dlopen(): Invalid argument
hcid[10053]: Can't load plugin: /usr/lib/bluetooth/plugins/libinput.so: invalid mode for dlopen(): Invalid argument

The plugins are available, unstripped etc:
seife@susi:~> file /usr/lib/bluetooth/plugins/*so
/usr/lib/bluetooth/plugins/libaudio.so:   ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
/usr/lib/bluetooth/plugins/libinput.so:   ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
/usr/lib/bluetooth/plugins/libnetwork.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
/usr/lib/bluetooth/plugins/libserial.so:  ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

Probably i'm doing something stupid, but i have no idea what ;-)

Thanks,

	seife
-- 
Stefan Seyfried
R&D Team Mobile Devices            |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out." 

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.