On Mon, 5 Mar 2001, Danie Roux wrote:

> Hi,
> 
> I've had a whole of lot of trouble with this gtk widget I wrote and
> wrapped in gnome-python. The module compiled and worked on RedHat, but
> would only compile on Debian. When I run it it would stop with
> "Undefined
> symbol ..."
> 
> Turned out the problem was that RedHat patched Python so that modules
> are
> loaded with RTLD_GLOBAL.
> 
> So after specifying that the module should link against all known
> libraries, it now runs. BUT it spits out a lot of errors like this:
> 
> /usr/bin/convert: No such file or directory
> gdk_imlib ERROR: Cannot load image:
> /usr/share/themes/E-Brushed/gtk/bc.xpm
> All fallbacks failed.
> 
> So what library do I still need to link in? Imagemagick is installed and
> 
> the convert program does exist. My current LDSHARED looks like this:
> 
> -L/usr/X11R6/lib -L/usr/lib -lICE -lIIOP -lORBit -lORBitCosNaming
> -lORBitutil -lSM -lX11 -lXext -lXi -lart_lgpl -laudiofile -lc -ldb -ldl
> -lesd -lgdk -lgdk_imlib -lglib -lgmodule -lgnome -lgnomesupport
> -lgnomeui -lgnorba -lgtk -ljpeg -lm -lpng -ltiff -lz -rdynamic -shared
> 
> Yes I know it's too much. I'm desperate. :-)

This is a bit of a FAQ :)

Either modify python to use RTLD_GLOBAL, or modify the imlib build
procedure so that the image loader modules are dynamically linked back to
gdk_imlib.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to