Fixed "mcs failing to load plugins"-issue

edscott wilson garcia edscott at imp.mx
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
rawhide.redhat.com) 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
it?):

/bin/sh ../../libtool --mode=link gcc  -g -O2   -o mouse_plugin.la
-rpath /usr/local/lib/xfce-mcs-manager/plugins -avoid-version
-export-dynamic -module mouse_plugin_la-mouse_plugin.lo
../../plugins/gtk_common/libgtkcommon.la -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/libxfcegui4.so
/usr/local/lib/libxfce4mcs-manager.so -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,mouse_plugin.so -o .libs/mouse_plugin.so





> 
> -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 xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
> 





More information about the Xfce4-dev mailing list