2008-04-11 08:33:06

by dong yan

[permalink] [raw]
Subject: [Bluez-users] bluez3.30 audio/serial plugin issue

Hi All:

i just upgraded my bluez from 3.26 to 3.30...It's said that all
audio/serial...services are moved into plugin libraries...
It seems i got a problem while loading these new plugins,here's the log:

hcid[173]: Bluetooth HCI daemon
hcid[173]: Enabling debug information
hcid[173]: HCI dev 0 registered
hcid[173]: Starting SDP server
hcid[173]: Adding rec : 0x4d8c0
hcid[173]: with handle : 0x1
hcid[173]: Adding rec : 0x4d980
hcid[173]: with handle : 0x0
hcid[173]: Service classes 0x00
hcid[173]: Creation of inotify context failed

hcid[173]: Loading plugins /bluetooth//lib/bluetooth/plugins
hcid[173]: Can't load plugin:
/bluetooth//lib/bluetooth/plugins/libaudio.so: invalid mode for
dlopen(): Invalid argument
hcid[173]: Can't load plugin:
/bluetooth//lib/bluetooth/plugins/libnetwork.so: invalid mode for
dlopen(): Invalid argument
hcid[173]: Can't load plugin:
/bluetooth//lib/bluetooth/plugins/libinput.so: invalid mode for
dlopen(): Invalid argument
hcid[173]: Can't load plugin:
/bluetooth//lib/bluetooth/plugins/libserial.so: invalid mode for
dlopen(): Invalid argument

hcid[173]: Registering service object: ident=serial, name=Serial
service (/org/bluez/service_serial)
hcid[173]: Registering service object: ident=audio, name=Audio service
(/org/bluez/service_audio)
hcid[173]: Registering service object: ident=input, name=Input service
(/org/bluez/service_input)
hcid[173]: Registering service object: ident=echo, name=Echo service
(/org/bluez/service_echo)
hcid[173]: Registering service object: ident=network, name=Network
service (/org/bluez/service_network)
hcid[173]: HCI dev 0 up
hcid[173]: Device hci0 has been added
hcid[173]: Starting security manager 0
hcid[173]: Device hci0 has been activated
hcid[173]: child 179 exited
hcid[173]: /org/bluez: org.bluez.Security.RegisterDefaultPasskeyAgent()
hcid[173]: name_listener_add(:1.1)
hcid[173]: Default passkey agent (:1.1, /org/bluez/passkey_agent_178) registered
hcid[173]: child 191 exited




Anybody help me pls?



Thanks in advance

semiyd

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-04-15 18:07:37

by Stefan Seyfried

[permalink] [raw]
Subject: Re: [Bluez-users] bluez3.30 audio/serial plugin issue

Marcel Holtmann schrieb:
> I would like to ignore it, but I can't. Can you do a ls -la inside the
> installed plugins directory. Maybe libtool is messing this up. Or

seife@stoetzler:~> ls -la /usr/lib64/bluetooth/plugins/
total 204
drwxr-xr-x 2 root root 4096 10. Apr 14:07 .
drwxr-xr-x 3 root root 4096 9. Apr 07:09 ..
-rw-r--r-- 1 root root 794 9. Apr 07:09 libinput.la
-rwxr-xr-x 1 root root 53680 9. Apr 07:09 libinput.so
-rw-r--r-- 1 root root 806 9. Apr 07:09 libnetwork.la
-rwxr-xr-x 1 root root 58896 9. Apr 07:09 libnetwork.so
-rw-r--r-- 1 root root 800 9. Apr 07:09 libserial.la
-rwxr-xr-x 1 root root 53888 9. Apr 07:09 libserial.so

then i built a package without "--enable-glib", and i removed the .la files:
seife@stoetzler:~> ls -la /usr/lib64/bluetooth/plugins/
total 220
drwxr-xr-x 2 root root 4096 15. Apr 20:03 .
drwxr-xr-x 3 root root 4096 15. Apr 20:01 ..
-rwxr-xr-x 1 root root 64758 15. Apr 20:01 libinput.so
-rwxr-xr-x 1 root root 71327 15. Apr 20:01 libnetwork.so
-rwxr-xr-x 1 root root 65302 15. Apr 20:01 libserial.so

alas, it does not work:
Apr 15 20:03:26 stoetzler hcid[27467]: Device hci0 has been activated
Apr 15 20:03:26 stoetzler hcid[27467]: Starting SDP server
Apr 15 20:03:26 stoetzler hcid[27467]: Can't load plugin:
/usr/lib64/bluetooth/plugins/libnetwork.so: invalid mode for dlopen(): Inva=
lid
argument
Apr 15 20:03:26 stoetzler hcid[27467]: Can't load plugin:
/usr/lib64/bluetooth/plugins/libserial.so: invalid mode for dlopen(): Inval=
id
argument
Apr 15 20:03:26 stoetzler hcid[27467]: Can't load plugin:
/usr/lib64/bluetooth/plugins/libinput.so: invalid mode for dlopen(): Invalid
argument

-- =

Stefan Seyfried
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "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=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Don't miss this year's exciting event. There's still time to save $100. =

Use priority code J8TL2D2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-15 03:26:45

by dong yan

[permalink] [raw]
Subject: Re: [Bluez-users] bluez3.30 audio/serial plugin issue

Hi Marcel:

problem solved by adding --enable-glib.thanks.



semiyd


2008/4/11, Marcel Holtmann <[email protected]>:
> Hi,
>
> > i just upgraded my bluez from 3.26 to 3.30...It's said that all
> > audio/serial...services are moved into plugin libraries...
> > It seems i got a problem while loading these new plugins,here's
> > the log:
> >
> > hcid[173]: Bluetooth HCI daemon
> > hcid[173]: Enabling debug information
> > hcid[173]: HCI dev 0 registered
> > hcid[173]: Starting SDP server
> > hcid[173]: Adding rec : 0x4d8c0
> > hcid[173]: with handle : 0x1
> > hcid[173]: Adding rec : 0x4d980
> > hcid[173]: with handle : 0x0
> > hcid[173]: Service classes 0x00
> > hcid[173]: Creation of inotify context failed
> >
> > hcid[173]: Loading plugins /bluetooth//lib/bluetooth/plugins
> > hcid[173]: Can't load plugin:
> > /bluetooth//lib/bluetooth/plugins/libaudio.so: invalid mode for
> > dlopen(): Invalid argument
>
> it seems the solution to this is to use --enable-glib. For some reason
> our eglib plugin loader doesn't work always. I never saw this problem
> and still can't reproduce it.
>
> Regards
>
> Marcel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-12 20:02:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bluez3.30 audio/serial plugin issue

Hi Stefan,

>> it seems the solution to this is to use --enable-glib. For some
>> reason
>> our eglib plugin loader doesn't work always. I never saw this problem
>> and still can't reproduce it.
>
> If you want to debug it, i could e.g. provide you with a qemu image of
> openSUSE FACTORY where it is reproducible.
>
> OTOH, if eglib is going away anyway, maybe there are more important
> things to
> debug ;-)

I would like to ignore it, but I can't. Can you do a ls -la inside the
installed plugins directory. Maybe libtool is messing this up. Or
maybe is still tries to load the *.la files and fails, because of
that. So please try to remove the *.la files since these are
unimportant, but I can't tell libtool to not install them.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-12 10:13:26

by Stefan Seyfried

[permalink] [raw]
Subject: Re: [Bluez-users] bluez3.30 audio/serial plugin issue

Marcel Holtmann wrote:
> it seems the solution to this is to use --enable-glib. For some reason =

> our eglib plugin loader doesn't work always. I never saw this problem =

> and still can't reproduce it.

If you want to debug it, i could e.g. provide you with a qemu image of
openSUSE FACTORY where it is reproducible.

OTOH, if eglib is going away anyway, maybe there are more important things =
to
debug ;-)
-- =

Stefan Seyfried
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "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=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Don't miss this year's exciting event. There's still time to save $100. =

Use priority code J8TL2D2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2008-04-11 08:44:12

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bluez3.30 audio/serial plugin issue

Hi,

> i just upgraded my bluez from 3.26 to 3.30...It's said that all
> audio/serial...services are moved into plugin libraries...
> It seems i got a problem while loading these new plugins,here's
> the log:
>
> hcid[173]: Bluetooth HCI daemon
> hcid[173]: Enabling debug information
> hcid[173]: HCI dev 0 registered
> hcid[173]: Starting SDP server
> hcid[173]: Adding rec : 0x4d8c0
> hcid[173]: with handle : 0x1
> hcid[173]: Adding rec : 0x4d980
> hcid[173]: with handle : 0x0
> hcid[173]: Service classes 0x00
> hcid[173]: Creation of inotify context failed
>
> hcid[173]: Loading plugins /bluetooth//lib/bluetooth/plugins
> hcid[173]: Can't load plugin:
> /bluetooth//lib/bluetooth/plugins/libaudio.so: invalid mode for
> dlopen(): Invalid argument

it seems the solution to this is to use --enable-glib. For some reason
our eglib plugin loader doesn't work always. I never saw this problem
and still can't reproduce it.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users