I was just wondering about this problem.  I personally use python 1.5.1 (I
haven't had time to upgrade yet), and many of the people who have been
reporting problems seem to be using python 1.5.2.

I checked the file at http://www.python.org/1.5/NEWS-152.txt, and it says
the following for the summary of changes between 1.5.1 and 1.5.2a1:

  - Revert a new feature in Unix dynamic loading: for one or two
  revisions, modules were loaded using the RTLD_GLOBAL flag.  It turned
  out to be a bad idea.

If I am correct, this means that in 1.5.2, the symbols in the _gtk module
(including those from libgtk.so and libgdk.so, which are dynamically
linked to _gtkmodule.so) are not available to the main program.  So when
gdk_imlib trys to load its png reader or whatever, the png reader can't
see the imlib symbols, so fails with a dynamic linker error.  It would be
a similar problem for theme stuff.

If someone who was having trouble with the dynamic loading, and still have
the source tree on there system, and don't mind recompiling python, would
you mind trying something for me?  You would have to edit the source file
that is responsible for dynamic module loading (it would be in the Python
sub directory, and would be the only one containing a call to dlopen).  In
that file, find all calls to dlopen, and add the flag RTLD_GLOBAL to the
second parameter.  That is, if the call looks like this:
  dlopen(string_variable, RTLD_NOW)
to:
  dlopen(string_variable, RTLD_NOW|RTLD_GLOBAL)

Now do a recompile, and see if this fixes the problems with pixmap themes
and pygtk.

If this is not the cause of the problem, I don't know what is.

James.

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


On Wed, 12 May 1999, Bill Allen wrote:

> I believe that this is all essentially exactly what I'm seeing.  Number 2
> (below)
> was solved in my case by getting a newer version of ImageMagick. Number 1
> is solved by using the default gnome theme. I never saw number 3.
> 
> If it helps:
> 
> Python 1.5.2 (#1, Apr 14 1999, 07:22:13)  [GCC 2.7.2.3] on linux2
> ImageMagick-4.2.3-1glibc.i386.rpm
> 
> >From the gnome 1.0 dist:
> gtk+-1.2.1-7.i386.rpm
> imlib-1.9.5-1.i386.rpm
> 
> Steve Ratcliffe wrote:
> 
> > > The problem is something to do with dynamic linking.  I am sure of that.
> > > When imlib can't load an image with one of the compiled in image
> > > libraries, it falls back on the imagemagick or netpbm.  If imlib fails to
> > > dynamically load the image loading code for example, this is a case when
> > > it will fall back on imagemagick.
> > >
> > > I don't see this problem on my system, so am not sure what is causing it.
> >
> >  To summarize there are three problems that seem to be related:
> >
> >         1. Slowness.  Everything appears to work, but is very slow compared
> >            to other gnome apps.
> >         2. You get 'convert: Color is not known to X server ' messages plus
> >            lots of garbage, but it otherwise appears to work.
> >         3. You get 'undefined symbol: gdk_display' and the app won't even
> >            start.
> >
> > Has anyone seen any of these problems when not using a pixmap based theme?
> > Themes such as ThinIce that use a different engine are fine.
> >
> > ..Steve
> > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to