* [Bluez-devel] bluez-utils 3.30, uClibc, hcid, plugin handling
@ 2008-05-04 20:10 Wolfram Joost
2008-05-09 12:35 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Joost @ 2008-05-04 20:10 UTC (permalink / raw)
To: bluez-devel
Hello,
I had some trouble using hcid from bluez-utils 3.30 on my openwrt-router.
Openwrt uses uClibc, not glibc.
I discovered the following two problems:
1. In eglib/gmodule.c, function g_module_open, line 29 dlopen is used.
The flags for dlopen come from hcid/plugin.c, function plugin_init, line 94.
The flag-value is 0. According to the manpage of dlopen
(http://www.kernel.org/pub/linux/docs/manpages/man-pages-2.79.tar.bz2),
one of RTLD_LAZY or RTLD_NOW has to be set. uClibc checks this and returns an error.
2. hcid needs to be linked with -rdynamic or --export-dynamic. Some functions
in the hcid-executable are used by the plugins. Without -rdynamic uClibc
doesn't resolve the symbols in the plugins resulting in a NULL pointer
dereference and a SIGSEGV. Again, its documented in the man-page of
dlopen.
Wolfram
-------------------------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] bluez-utils 3.30, uClibc, hcid, plugin handling
2008-05-04 20:10 [Bluez-devel] bluez-utils 3.30, uClibc, hcid, plugin handling Wolfram Joost
@ 2008-05-09 12:35 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2008-05-09 12:35 UTC (permalink / raw)
To: BlueZ development
Hi Wolfram,
> I had some trouble using hcid from bluez-utils 3.30 on my openwrt-router.
> Openwrt uses uClibc, not glibc.
>
> I discovered the following two problems:
>
> 1. In eglib/gmodule.c, function g_module_open, line 29 dlopen is used.
> The flags for dlopen come from hcid/plugin.c, function plugin_init, line 94.
> The flag-value is 0. According to the manpage of dlopen
> (http://www.kernel.org/pub/linux/docs/manpages/man-pages-2.79.tar.bz2),
> one of RTLD_LAZY or RTLD_NOW has to be set. uClibc checks this and returns an error.
>
> 2. hcid needs to be linked with -rdynamic or --export-dynamic. Some functions
> in the hcid-executable are used by the plugins. Without -rdynamic uClibc
> doesn't resolve the symbols in the plugins resulting in a NULL pointer
> dereference and a SIGSEGV. Again, its documented in the man-page of
> dlopen.
this has been fixed a long time ago. However we just recently released
bluez-utils-3.31 and that should be fine.
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-09 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-04 20:10 [Bluez-devel] bluez-utils 3.30, uClibc, hcid, plugin handling Wolfram Joost
2008-05-09 12:35 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).