Fixed "mcs failing to load plugins"-issue

edscott wilson garcia edscott at
Wed Mar 5 23:59:13 CET 2003

El mié, 05-03-2003 a las 14:30, Benedikt Meurer escribió:
> Hello,
> I think I fixed the problem some people had with mcs failing to load plugins.
> The problem was, that for some reason, they were using a bogus version of
> gmodule, which does not seem to include -Wl,--export-dynamic, and that
> prevents the run time linker from resolving the dynamic symbols.

Sounds reasonable, but it still doesn't work in this RH-8 box :-(
After trying with libtool-1.4.2, I updated to 1.4.3 (binary rpm from and I confirm what Ilkka found: it still won't work.

What I see is that the -export-dynamic flag is being sent to libtool,
but libtool is not passing it on to the gcc command it generates (sh0uld

/bin/sh ../../libtool --mode=link gcc  -g -O2   -o
-rpath /usr/local/lib/xfce-mcs-manager/plugins -avoid-version
-export-dynamic -module mouse_plugin_la-mouse_plugin.lo
../../plugins/gtk_common/ -lSM -lICE -lX11 
-Wl,-R/usr/local/lib  -Wl,-R/usr/X11R6/lib  -Wl,-R/usr/X11R6/lib 
-L/usr/local/lib -L/usr/X11R6/lib -lxfcegui4 -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0     -L/usr/local/lib
-L/usr/X11R6/lib -lxfcegui4 -lxfce4mcs-manager -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   

and then...

gcc -shared  .libs/mouse_plugin_la-mouse_plugin.o -Wl,--whole-archive
../../plugins/gtk_common/.libs/libgtkcommon.a -Wl,--no-whole-archive 
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib 
../../plugins/gtk_common/.libs/libgtkcommon.a -lSM -lICE -lX11
-L/usr/local/lib -L/usr/X11R6/lib /usr/local/lib/
/usr/local/lib/ -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  -lc  -Wl,-R/usr/local/lib
-Wl,-R/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wl,-soname
-Wl, -o .libs/

> -export-dynamic is now explicitly set by libxfce4mcs and also for the
> files in xfce-mcs-{manager,plugins}.
> I hope this will work :-)
> regards,
> Benedikt
> -- 
> Those who do not understand Unix are condemned to reinvent it, poorly.
>     -- Henry Spencer
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at

More information about the Xfce4-dev mailing list