Fixed "mcs failing to load plugins"-issue

Benedikt Meurer Benedikt.Meurer at
Thu Mar 6 00:01:40 CET 2003

On Wed, 05, Mar 2003, edscott wilson garcia wrote:

> 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
> -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/

Ok, heres something missing: -Wl--export-dynamic

Please try to use the libtool version I suggested. Maybe RedHat fucked up
their libtool package.


Those who do not understand Unix are condemned to reinvent it, poorly.
    -- Henry Spencer

More information about the Xfce4-dev mailing list