wxPython 2.5.3.1 -- Build OK, but problems with installation!

Hi all,

I'm trying to build and install wxPy 2.5.3.1 (using the 28/10/04 daily build:
http://starship.python.net/crew/robind/wxPython/daily/20041028/). Using the
BUILD.txt instructions, I can build with no problems and get demo.py running
when LD_LIBRARY_PATH is set to /opt/wx/2.5/lib and PYTHONPATH is set to
$WXDIR/wxPython.

However, I'm having a hell of a time getting it installed system-wide. As
root, I run the command: 'python setup.py install WXPORT=gtk2 UNICODE=1' and
this is the output that I get:

---begin

Found wx-config: /opt/wx/2.5/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=yes --version=2.5
Preparing CORE...
Preparing GLCANVAS...
Preparing OGL...
Preparing STC...
Preparing GIZMOS...
running install
running build
running build_py
copying wx/__version__.py -> build-gtk2.unicode/lib.linux-i686-2.3/wx
running build_ext
building '_ogl' extension
c++ -pthread -shared
build-gtk2.unicode/temp.linux-i686-2.3/contrib/ogl/gtk/ogl_wrap.o
-L/usr/X11R6/lib -L/opt/wx/2.5/lib -L/usr/X11R6/lib
-lwx_gtk2ud-2.5-lwx_gtk2ud_ogl-2.5 -o
build-gtk2.unicode/lib.linux-i686-2.3/wx/_ogl.so -pthread
building '_stc' extension
c++ -pthread -shared
build-gtk2.unicode/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o
-L/usr/X11R6/lib -L/opt/wx/2.5/lib -L/usr/X11R6/lib
-lwx_gtk2ud-2.5-lwx_gtk2ud_stc-2.5 -o
build-gtk2.unicode/lib.linux-i686-2.3/wx/_stc.so -pthread
building '_gizmos' extension
c++ -pthread -shared
build-gtk2.unicode/temp.linux-i686-2.3/contrib/gizmos/wxCode/src/treelistctrl.o
build-gtk2.unicode/temp.linux-i686-2.3/contrib/gizmos/gtk/gizmos_wrap.o
-L/usr/X11R6/lib -L/opt/wx/2.5/lib -L/usr/X11R6/lib -lwx_gtk2ud-2.5
-lwx_gtk2ud_gizmos-2.5 -o build-gtk2.unicode/lib.linux-i686-2.3/wx/_gizmos.so
-pthread
running build_scripts
creating build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/helpviewer -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/img2png -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/img2py -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/img2xpm -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pyalacarte -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pyalamode -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pycrust -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pyshell -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pywrap -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/pywxrc -> build-gtk2.unicode/scripts-2.3
copying and adjusting scripts/xrced -> build-gtk2.unicode/scripts-2.3
changing mode of build-gtk2.unicode/scripts-2.3/helpviewer from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/img2png from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/img2py from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/img2xpm from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pyalacarte from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pyalamode from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pycrust from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pyshell from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pywrap from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/pywxrc from 644 to 755
changing mode of build-gtk2.unicode/scripts-2.3/xrced from 644 to 755
running install_lib
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/__version__.py
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_core_.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_gdi_.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_windows_.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_controls_.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_misc_.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_calendar.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_grid.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_html.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_webkit.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_wizard.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_xrc.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_glcanvas.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_ogl.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_stc.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
copying build-gtk2.unicode/lib.linux-i686-2.3/wx/_gizmos.so
-> /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx
byte-compiling /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/__version__.py
to __version__.pyc
running install_headers
creating /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/printfw.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/pyclasses.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/pydrawxxx.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/pyistream.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/pytree.h -> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/wxPython.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
copying include/wx/wxPython/wxPython_int.h
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython
creating /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_accel.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_app.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_artprov.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_bitmap.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_brush.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_button.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/calendar.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_calendar_rename.i
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_checkbox.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_choice.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_clipbrd.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_cmndlgs.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_colour.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_combobox.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_config.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_constraints.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_control.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/controls.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__controls_rename.i
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_core_api.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/core.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__core_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_cshelp.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_cursor.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_dataobj.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_datetime.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_dc.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_defs.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_dirctrl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_display.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_dnd.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_dragimg.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_effects.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_event.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_evthandler.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_evtloop.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_filesys.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_font.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_functions.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_gauge.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_gbsizer.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_gdicmn.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/gdi.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_gdiobj.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__gdi_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/grid.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_grid_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/html.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_html_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_icon.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_image.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_imaglist.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_intl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_joystick.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_listbox.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_listctrl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_log.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_mdi.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_menu.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_mimetype.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_misc.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/misc.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__misc_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/my_fragments.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/my_typemaps.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_notebook.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_obj.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_palette.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_panel.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_pen.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_popupwin.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_printfw.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_process.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_pycontrol.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_pywindows.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_radio.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_region.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_sashwin.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_scrolbar.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_settings.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_sizers.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_slider.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_sound.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_spin.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_splitter.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_statctrls.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_statusbar.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_stockobjs.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_streams.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_taskbar.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_template.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_textctrl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_tglbtn.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_timer.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_tipdlg.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_tipwin.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_toolbar.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_toplvl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_treectrl.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_validator.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_vscroll.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/webkit.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_webkit_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_window.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/windows.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__windows_rename.i
-> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/wizard.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_wizard_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xmlhandler.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xml.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xmlres.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xmlsub.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/xrc.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xrc_rename.i -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_app_ex.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_core_ex.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_event_ex.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/__init__.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_intl_ex.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/_xrc_ex.py -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/common.swg -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/pyrun.swg -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
copying src/python.swg -> /opt/wx/2.5/include/wx-2.5/wx/wxPython/i_files
running install_scripts
copying build-gtk2.unicode/scripts-2.3/helpviewer -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/img2png -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/img2py -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/img2xpm -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pyalacarte -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pyalamode -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pycrust -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pyshell -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pywrap -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/pywxrc -> /usr/bin
copying build-gtk2.unicode/scripts-2.3/xrced -> /usr/bin
changing mode of /usr/bin/helpviewer to 755
changing mode of /usr/bin/img2png to 755
changing mode of /usr/bin/img2py to 755
changing mode of /usr/bin/img2xpm to 755
changing mode of /usr/bin/pyalacarte to 755
changing mode of /usr/bin/pyalamode to 755
changing mode of /usr/bin/pycrust to 755
changing mode of /usr/bin/pyshell to 755
changing mode of /usr/bin/pywrap to 755
changing mode of /usr/bin/pywxrc to 755
changing mode of /usr/bin/xrced to 755
running install_data
warning: wx_install: path file
'/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode.pth' not created
running install
running build
running build_py
creating build-gtk2.unicode/lib
copying wxversion/wxversion.py -> build-gtk2.unicode/lib
running install_lib
running install_data
copying src/wx.pth -> /usr/lib/python2.3/site-packages/

---end

Notice the lines:

'warning: wx_install: path file
'/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode.pth' not created'

Now, when I try to run demo.py from $WXDIR, I get the following error message:

---begin

Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "/home/ppawel/wxPython-2.5.3.1p.20041028/demo/Main.py", line 32, in ?
    import wx # This module uses the new wx namespace
  File
"/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/__init__.py", line
42, in ?
    from wx._core import *
  File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py",
line 4, in ?
    import _core_
ImportError: /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so:
undefined symbol: _ZNK8wxObject13CreateRefDataEv

---end

The undefined symbol in _core_.so looks like garbage. Seems to be a problem
with the unicode part of the installation, but I'm totally stumped. When
PYTHONPATH is $WXDIR/wxPython, everything runs fine.

For reference, here are the scripts I built wxWidgets with:

[.configure]

../configure --prefix=/opt/wx/2.5 \
                      --with-gtk \
                      --enable-monolithic \
                      --with-opengl \
                      --enable-optimize \
                      --enable-debug_flag \
                      --enable-geometry \
                      --enable-sound --with-sdl \
                      --enable-display \
                      --enable-unicode \

[.make]

make $* \
&& make -C contrib/src/gizmos/ $* \
&& make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" $* \
&& make -C contrib/src/stc $*

And the wxPython build command was:

'python setup.py build_ext --inplace --debug WXPORT=gtk2 UNICODE=1'

This is the second time I've tried. The first time, I did not have the flag
'--enable monolithic' in my .configure script.

As I mentioned, I can build 2.5.3.1 and run the accompanying demo with no
problems if my PYTHONPATH is set to $WXDIR/wxPython.

There's something wrong happening during the install script, and it appears to
have to do with installing the unicode modules.

Any help regarding this would be *greatly* appreciated. It's taken me hours to
get to the point where I could actually build this from source, so it's
pretty painful to come across this error at the very last step! :frowning:

Thanks,

Peter

Just some followup info:

My platform is Slackware 10 (actually slackware-current), running Python 2.34,
GTK2.4.13, Linux kernel version 2.6.4.

Peter D. Pawelek wrote:

warning: wx_install: path file '/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode.pth' not created
running install
running build
running build_py
creating build-gtk2.unicode/lib
copying wxversion/wxversion.py -> build-gtk2.unicode/lib
running install_lib
running install_data
copying src/wx.pth -> /usr/lib/python2.3/site-packages/

---end

Notice the lines:

'warning: wx_install: path file '/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode.pth' not created'

That is okay. You get a warning because I prevent distutils from writing that pth file since I write one with a different name. See the last line above.

Now, when I try to run demo.py from $WXDIR, I get the following error message:

---begin

Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "/home/ppawel/wxPython-2.5.3.1p.20041028/demo/Main.py", line 32, in ?
    import wx # This module uses the new wx namespace
  File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/__init__.py", line 42, in ?
    from wx._core import *
  File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py", line 4, in ?
    import _core_
ImportError: /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so: undefined symbol: _ZNK8wxObject13CreateRefDataEv

---end

The undefined symbol in _core_.so looks like garbage.

Use c++filt to see what it really is:

$ c++filt _ZNK8wxObject13CreateRefDataEv
wxObject::CreateRefData() const

Seems to be a problem with the unicode part of the installation, but I'm totally stumped. When PYTHONPATH is $WXDIR/wxPython, everything runs fine.

Do you still have LD_LIBRARY_PATH set? (Since you put the wx libs in a non-standard dir you either need to do that or add that dir to /etc/ld.so.conf, or rebuild wxWidgets to use a standard prefix...)

What do you get if you run the following command with and without LD_LIBRARY_PATH set?

ldd /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so

Does it find the wx libs that you built or some that were already on the system?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

> The undefined symbol in _core_.so looks like garbage.

Use c++filt to see what it really is:

$ c++filt _ZNK8wxObject13CreateRefDataEv
wxObject::CreateRefData() const

Robin,

Thanks for your timely reply. Indeed when I run c++filt I get the same output
as you. I hadn't realized that this was a mangled C++ function name. Thanks
for the clarification -- I was worried about data corruption.

> Seems to be a problem
> with the unicode part of the installation, but I'm totally stumped. When
> PYTHONPATH is $WXDIR/wxPython, everything runs fine.

Do you still have LD_LIBRARY_PATH set? (Since you put the wx libs in a
non-standard dir you either need to do that or add that dir to
/etc/ld.so.conf, or rebuild wxWidgets to use a standard prefix...)

Yep, I added /opt/wx/2.5/lib to my /etc/ld.so.conf (and re-ran /sbin/ldconfig)
prior to trying to install as root.

What do you get if you run the following command with and without
LD_LIBRARY_PATH set?

ldd /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so

I get the following output, whether or not LD_LIBRARY_PATH is set
to /opt/wx/2.5/lib:

$ ldd /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so

linux-gate.so.1 => (0xffffe000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x400ed000)
        libm.so.6 => /lib/libm.so.6 (0x401a4000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x401c6000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401ce000)
        libc.so.6 => /lib/libc.so.6 (0x40220000)
        /lib/ld-linux.so.2 (0x80000000)

Does it find the wx libs that you built or some that were already on the
system?

Doesn't appear to be pointing to the wx libs at all.

The odd thing is, I just ran ldd on the _core_.so file in $WXDIR, and this is
what I got:

$ ldd
wxPython-src-2.5.3.1p.20041028/wxPython/build-gtk2.unicode/lib.linux-i686-2.3/wx/_core_.so

linux-gate.so.1 => (0xffffe000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x400ed000)
        libm.so.6 => /lib/libm.so.6 (0x401a4000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x401c6000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401ce000)
        libc.so.6 => /lib/libc.so.6 (0x40220000)
        /lib/ld-linux.so.2 (0x80000000)

Once again, this is whether or not LD_LIBRARY_PATH is set to /opt/wx/2.5/lib.

Since this is the file that would be used when I get the local version of wxPy
working, the library linkages must be ok, no?

Perhaps I shouldn't be building this with '--enable-monolithic' ?? Maybe
that's the source of the problem?

Peter

···

On October 30, 2004 16:01, Robin Dunn wrote:

Peter D. Pawelek wrote:

Yep, I added /opt/wx/2.5/lib to my /etc/ld.so.conf (and re-ran /sbin/ldconfig) prior to trying to install as root.

What do you get if you run the following command with and without
LD_LIBRARY_PATH set?

ldd /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so

I get the following output, whether or not LD_LIBRARY_PATH is set to /opt/wx/2.5/lib:

$ ldd /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core_.so

linux-gate.so.1 => (0xffffe000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x400ed000)
        libm.so.6 => /lib/libm.so.6 (0x401a4000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x401c6000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401ce000)
        libc.so.6 => /lib/libc.so.6 (0x40220000)
        /lib/ld-linux.so.2 (0x80000000)

Does it find the wx libs that you built or some that were already on the
system?

Doesn't appear to be pointing to the wx libs at all.

Very weird.

Since this is the file that would be used when I get the local version of wxPy working, the library linkages must be ok, no?

Actually, when you run with the --inplace build it will be using the one in wxPython-src-2.5.3.1p.20041028/wxPython/wx/_core_.so. It gets relinked as part of the install step.

Perhaps I shouldn't be building this with '--enable-monolithic' ?? Maybe that's the source of the problem?

It shouldn't be, that's how I build mine these days.

Try removing the wxPython-src-2.5.3.1p.20041028/wxPython/build* directory and building again without using the ---inplace flag:

  python setup.py WXPORT=gtk2 UNICODE=1 build

And pay attention to the lines it shows for linking the extension modules. Does it specify the path where the wx libs are with a -L option? Does it specify the libs with -l options?

If so then use ldd on the file in wxPython-src-2.5.3.1p.20041028/wxPython/build-gtk2.unicode/lib.linux-i686-2.3/wx again to see if it is getting the libs this time, and if so then do the install step aggain.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Ok, I'm on it. I was halfway through rebuilding without '--enable-monolithic'.
I'll abort this and try it again using your recommendations.

I'll post the outputs when it's done. Takes a while on my decrepit Athlon 800
system. In fact, it takes even longer than a kernel compile... :smiley:

Peter

···

On October 30, 2004 18:29, Robin Dunn wrote:

Try removing the wxPython-src-2.5.3.1p.20041028/wxPython/build*
directory and building again without using the ---inplace flag:

python setup.py WXPORT=gtk2 UNICODE=1 build

Bingo! It worked! During the build, I now see the appropriate /opt/wx/*
directories in the -I and -L switches. And here's my ldd output on _core_.so:

linux-gate.so.1 => (0xffffe000)
        libwx_gtk2ud-2.5.so.3 => /opt/wx/2.5/lib/libwx_gtk2ud-2.5.so.3
(0x400bf000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4076e000)
        libm.so.6 => /lib/libm.so.6 (0x40825000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x40847000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4084f000)
        libc.so.6 => /lib/libc.so.6 (0x408a2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x409bc000)
        libdl.so.2 => /lib/libdl.so.2 (0x409cd000)
        libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x409d0000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x40aa8000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40d6f000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x40dde000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40df8000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40e0e000)
        libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40e13000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x40e1e000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40e55000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x40e8f000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x40e93000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40e98000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40f16000)
        libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x40f3d000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x40f40000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x40f46000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40f77000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40f94000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40fdb000)
        libSDL-1.2.so.0 => /usr/local/lib/libSDL-1.2.so.0 (0x40ffb000)
        /lib/ld-linux.so.2 (0x80000000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41074000)
        libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x4113e000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x41142000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4114a000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4115c000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x411cc000)
        libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x411f4000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x411fd000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x41205000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x41213000)

I can now run the demo from the system-wide install.

Thanks a million, Robin. This just made my day! :smiley:

Peter

···

On October 30, 2004 18:29, Robin Dunn wrote:

Try removing the wxPython-src-2.5.3.1p.20041028/wxPython/build*
directory and building again without using the ---inplace flag:

python setup.py WXPORT=gtk2 UNICODE=1 build

And pay attention to the lines it shows for linking the extension
modules. Does it specify the path where the wx libs are with a -L
option? Does it specify the libs with -l options?

If so then use ldd on the file in
wxPython-src-2.5.3.1p.20041028/wxPython/build-gtk2.unicode/lib.linux-i686-2
.3/wx again to see if it is getting the libs this time, and if so then do
the install step aggain.