compiling wxPython (continued)

John Duarte yellowdog-general@lists.terrasoftsolutions.com
Wed Dec 3 13:09:02 2003


Hello again.

Thanks to Matthias Saou pointing out that I needed gtk+-devel installed, I was 
able to get wxGTK to compile without complaint.

make (works)
make install (works)

Now I am on to building and installing wxPython and am getting errors.
(I appologize in advance for the length of this output, but the 'c++' command 
is one line.)

cd ../wxPython
python setup.py WX_CONFIG=/usr/lib/wxPython/bin/wx-config WXPORT=gtk2 
UNICODE=1 build install

<yields>
...<snip>
c++ -shared build-gtk2.unicode/temp.linux-ppc-2.2/src/helpers.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/drawlist.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/libpy.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/wx.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/windows.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/windows2.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/windows3.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/events.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/misc.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/misc2.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/gdi.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/mdi.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/controls.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/controls2.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/cmndlgs.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/stattool.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/frames.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/image.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/printfw.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/sizers.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/clip_dnd.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/filesys.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/streams.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/utils.o 
build-gtk2.unicode/temp.linux-ppc-2.2/src/gtk/fonts.o -L/usr/X11R6/lib -o 
build-gtk2.unicode/lib.linux-ppc-2.2/wxPython/wxc.so -L/usr/lib/wxPython/lib 
-pthread -Wl,-rpath -Wl,/usr/lib/wxPython/lib -lwx_gtk2ud-2.4
/usr/bin/ld: build-gtk2.unicode/lib.linux-ppc-2.2/wxPython/wxc.so: undefined 
versioned symbol name _restfpr_20@@WXGTK2UD_2.4
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1
...</snip>

Thinking that unicode libraries may not be installed correctly, I changed the 
command to omit the unicode support, and got the following:

python setup.py WX_CONFIG=/usr/lib/wxPython/bin/wx-config WXPORT=gtk2 
UNICODE=0 build install

<yields>
...<snip>
c++ -shared build-gtk2/temp.linux-ppc-2.2/src/helpers.o 
build-gtk2/temp.linux-ppc-2.2/src/drawlist.o 
build-gtk2/temp.linux-ppc-2.2/src/libpy.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/wx.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/windows.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/windows2.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/windows3.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/events.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/misc.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/misc2.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/gdi.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/mdi.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/controls.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/controls2.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/cmndlgs.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/stattool.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/frames.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/image.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/printfw.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/sizers.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/clip_dnd.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/filesys.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/streams.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/utils.o 
build-gtk2/temp.linux-ppc-2.2/src/gtk/fonts.o -L/usr/X11R6/lib -o 
build-gtk2/lib.linux-ppc-2.2/wxPython/wxc.so -L/usr/lib/wxPython/lib -pthread 
-Wl,-rpath -Wl,/usr/lib/wxPython/lib -lwx_gtk2ud-2.4
/usr/bin/ld: build-gtk2/lib.linux-ppc-2.2/wxPython/wxc.so: undefined versioned 
symbol name _restfpr_20@@WXGTK2UD_2.4
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1
...</snip>

Anyone have any suggestions???

Thanks,
John