shared lib problems on Solaris/x86

I'm at my wits' end :frowning:

I've been trying to get wxPython up and running for nearly a week, and
I'm >this< close ..

I've compiled and installed the following packages:
atk-1.10.1, cairo-1.0.0, expat-1.95.8, fontconfig-2.3.2,
freetype-2.1.10, gettext-0.13, glib-2.8.1, gtk+-2.8.3, jpeg-6b,
libXinerama-1.0.1, libiconv-1.9.1, libpng-1.2.8, pango-1.10.0,
panoramixext-1.1, pkg-config-0.19, render-0.8, tiff-3.7.3,
xproto-6.6.2, xrender-0.8.3, zlib-1.2.3.

In preparation for installing wxPython-src-2.6.1.0.

everything builds. Demos and tests for all of the supporting packages
compile and run.

However, when I get to running the demo.py script, I get this:

% python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File
"/home/mcuddy/pkgsrc/gtk/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 32, in ?
    import wx # This module uses the new wx namespace
  File "wx/__init__.py", line 42, in ?
  File "wx/_core.py", line 4, in ?
ImportError: ld.so.1: python: fatal: relocation error: file
/home/mcuddy/local/SunOS.i386/lib/libwx_gtk2d_core-2.6.so.0.0.0: symbol
pango_x_get_context: referenced symbol not found

I'm compiling everything with --prefix=$HOME/local
--exec-prefix=$HOME/SunOS.i386.
uname -a says:
SunOS build05.tellme.com 5.9 Generic_112234-11 i86pc i386 i86pc

LD_LIBRARY_PATH is:
/usr/local/X11R6/lib:/home/mcuddy/local/SunOS.i386/lib

PYTHONPATH is:
/home/mcuddy/pkgsrc/gtk/wxPython-src-2.6.1.0/wxPython/

I suspect it's a shared-library-linking-to-a-shared-library problem.

-- mcuddy

This pango_x_get_context were a deprecated function on pango 1.8(I
think). Your are using pango 1.10. It's problably that they removed it
from pango.

I advice you to use the gtk+-2.6 and all it's dependecies, since the gtk
+-2.8 is very new and wxWidgets is not fully ready at the moment for it.

Ricardo

···

On Fri, 2005-09-02 at 12:56 -0700, Michael Cuddy wrote:

I'm at my wits' end :frowning:

I've been trying to get wxPython up and running for nearly a week, and
I'm >this< close ..

I've compiled and installed the following packages:
atk-1.10.1, cairo-1.0.0, expat-1.95.8, fontconfig-2.3.2,
freetype-2.1.10, gettext-0.13, glib-2.8.1, gtk+-2.8.3, jpeg-6b,
libXinerama-1.0.1, libiconv-1.9.1, libpng-1.2.8, pango-1.10.0,
panoramixext-1.1, pkg-config-0.19, render-0.8, tiff-3.7.3,
xproto-6.6.2, xrender-0.8.3, zlib-1.2.3.

In preparation for installing wxPython-src-2.6.1.0.

everything builds. Demos and tests for all of the supporting packages
compile and run.

However, when I get to running the demo.py script, I get this:

% python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File
"/home/mcuddy/pkgsrc/gtk/wxPython-src-2.6.1.0/wxPython/demo/Main.py",
line 32, in ?
    import wx # This module uses the new wx namespace
  File "wx/__init__.py", line 42, in ?
  File "wx/_core.py", line 4, in ?
ImportError: ld.so.1: python: fatal: relocation error: file
/home/mcuddy/local/SunOS.i386/lib/libwx_gtk2d_core-2.6.so.0.0.0: symbol
pango_x_get_context: referenced symbol not found