compiling wxPython (continued)

Greg Hamilton yellowdog-general@lists.terrasoftsolutions.com
Wed Dec 3 16:19:06 2003


I had the same problem building wxPython. This is a bug in 'ld'. You  
need binutils >= 2.14. The latest YDL RPM is too old. I installed a  
Fedora PPC RPM which I downloaded from my local Fedora mirror.

http://mirror.pacific.net.au/linux/redhat/fedora/development/ppc/ 
Fedora/RPMS/binutils-2.14.90.0.6-3.ppc.rpm

It installed with no dependancy problems and doesn't seem to have  
broken anything but it's worth bearing in mind that it isn't a YDL  
package.



On 04/12/2003, at 7:08 AM, John Duarte wrote:

> 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
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
>