Problem with xfce-mcs-manager and sound_settings plugin

Landry Breuil landry.breuil at gmail.com
Tue Apr 24 21:34:07 CEST 2007


2007/4/24, Alexander Toresson <alexander.toresson at gmail.com>:
>
> On 4/24/07, Landry Breuil <landry.breuil at gmail.com> wrote:
> >
> >
> > 2007/4/24, Alexander Toresson <alexander.toresson at gmail.com>:
> > > On 4/24/07, Landry Breuil <landry.breuil at gmail.com> wrote:
> > > > Hello,
> > > >
> > > > i'm currently updating Xfce to 4.4.1 in OpenBSD, and i struggle in
> an
> > issue
> > > > with xfce-mcs-manager.
> > > >
> > > > mcs-plugins/sound_settings.so installed by xfce4-mixer cannot be
> loaded
> > into
> > > > manager :
> > > >
> > > > (xfce-mcs-manager:552): xfce-mcs-manager-WARNING **: Module
> > > > /usr/local/lib/xfce4/mcs-plugins/sound_settings.so
> > cannot
> > > > be opened (Cannot load specified object)
> > > >
> > > > Other mcs-plugins are correctly loaded/shown (apart
> > > > xscreensaver_settings.so, but i assume it's normal as xscreensaver
> is
> > not
> > > > available/installed), and all plugins are installed in the same
> > directory :
> > > > /usr/local/lib/xfce4/mcs-plugins/
> > > >
> > > > I see in
> > > >
> >
> http://svn.xfce.org/svn/xfce/xfce-mcs-manager/tags/xfce_4_4_1/xfce-mcs-manager/xfce-mcs-manager.c
> > > > that g_module_open() fails, what can i change to get more debug
> > information
> > > > ? a dlopen() fails ? with a simple test program, is it possible to
> test
> > > > mcs-plugin 'integrity' ? nm on the .so file shows lots of syms, but
> no
> > > > g_module_* call, is it normal (others have g_module_check_init()) ?
> > > >
> > > > nm /usr/local/lib/xfce4/mcs-plugins/sound_settings.so |
> > > > grep g_module => nothing
> > > >
> > > > using gtk+2-2.8.20 and glib2-2.10.3..
> > > > should i file a bug report ?
> > > >
> > > > Thanks,
> > > > Landry
> > > >
> > >
> > > Did you try just running ldd on the .so file?
> >
> > Yep, but as it's a .so file...
> > $file sound_settings.so
> > sound_settings.so: ELF 32-bit LSB shared object, Intel 80386, version 1,
> not
> > stripped
> > $ldd sound_settings.so
> > sound_settings.so:
> > sound_settings.so: Exec format error
> > sound_settings.so: exit status 1
> >
> > The only quirk i'm seeing is in sound_settings.la, -lossaudio is listed
> in
> > dependencies but the path isn't in the -L list
> (/usr/lib/libossaudio.so.3.0)
> > I tried add -L/usr/lib to dependency_libs, but this changed nothing, and
> i
> > don't know if .la file is read by g_module_open as .so file exists..
> >
> > I attach the output of nm and the .la file here.
> >
> > Landry
> >
>
> Odd, ldd works on shared objects here and has always done.


On linux systems, yes, but not OpenBSD afaik..

i wrote a small test program :

#include <stdio.h>
#include <gmodule.h>

int main()
{
        gchar* path;
        gpointer init;
        GModule *module;
        path=g_strdup("/usr/local/lib/xfce4/mcs-plugins/sound_settings.so");
        if ((module = g_module_open (path, 0)) == NULL)
                g_warning ("Module %s cannot be opened (%s)", path,
g_module_error ());
        else
        {
                if (g_module_symbol (module, "mcs_plugin_init", (gpointer) &
init))
                        g_message ("module %s successfully loaded", path);
        }
        path=g_strdup("/usr/local/lib/xfce4/mcs-plugins/orage_plugin.so");
        if ((module = g_module_open (path, 0)) == NULL)
                g_warning ("Module %s cannot be opened (%s)", path,
g_module_error ());
        else
        {
                if (g_module_symbol (module, "mcs_plugin_init", (gpointer) &
init))
                        g_message ("module %s successfully loaded", path);
        }
}

output gives :

** (process:8787): WARNING **: Module
/usr/local/lib/xfce4/mcs-plugins/sound_settings.so cannot be opened (Cannot
load specified object)
/home/landry/test:/usr/local/lib/xfce4/mcs-plugins/orage_plugin.so:
undefined symbol 'xfce_textdomain'
/home/landry/test:/usr/local/lib/xfce4/mcs-plugins/orage_plugin.so:
undefined symbol 'xfce_themed_icon_load'
** Message: module /usr/local/lib/xfce4/mcs-plugins/orage_plugin.so
successfully loaded

Really weird...


Landry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20070424/9f0d2b12/attachment.html>


More information about the Xfce4-dev mailing list