Compile problem on MDK 9.1 ppc

Hi,

I've tried to compile wxPython from source on a Mandrake 9.1 ppc box and
I got the following:

ogrisel@localhost wxPython]$ sudo python setup.py install
(...)
gcc -DNDEBUG -O2 -fsigned-char -frename-registers -mcpu=750 -mtune=7450
-pipe -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG
-Isrc -I/usr/include/python2.2 -c src/gtk/mdi.cpp -o
build/temp.linux-ppc-2.2/src/gtk/mdi.o
-I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
g++ -shared build/temp.linux-ppc-2.2/src/helpers.o
build/temp.linux-ppc-2.2/src/drawlist.o
build/temp.linux-ppc-2.2/src/libpy.o
build/temp.linux-ppc-2.2/src/gtk/wx.o
build/temp.linux-ppc-2.2/src/gtk/windows.o
build/temp.linux-ppc-2.2/src/gtk/windows2.o
build/temp.linux-ppc-2.2/src/gtk/windows3.o
build/temp.linux-ppc-2.2/src/gtk/events.o
build/temp.linux-ppc-2.2/src/gtk/misc.o
build/temp.linux-ppc-2.2/src/gtk/misc2.o
build/temp.linux-ppc-2.2/src/gtk/gdi.o
build/temp.linux-ppc-2.2/src/gtk/mdi.o
build/temp.linux-ppc-2.2/src/gtk/controls.o
build/temp.linux-ppc-2.2/src/gtk/controls2.o
build/temp.linux-ppc-2.2/src/gtk/cmndlgs.o
build/temp.linux-ppc-2.2/src/gtk/stattool.o
build/temp.linux-ppc-2.2/src/gtk/frames.o
build/temp.linux-ppc-2.2/src/gtk/image.o
build/temp.linux-ppc-2.2/src/gtk/printfw.o
build/temp.linux-ppc-2.2/src/gtk/sizers.o
build/temp.linux-ppc-2.2/src/gtk/clip_dnd.o
build/temp.linux-ppc-2.2/src/gtk/filesys.o
build/temp.linux-ppc-2.2/src/gtk/streams.o
build/temp.linux-ppc-2.2/src/gtk/utils.o
build/temp.linux-ppc-2.2/src/gtk/fonts.o -L/usr/X11R6/lib -o
build/lib.linux-ppc-2.2/wxPython/wxc.so -L/usr/local/lib -pthread
-lwx_gtk-2.4
/usr/bin/ld: build/lib.linux-ppc-2.2/wxPython/wxc.so: undefined
versioned symbol name _restfpr_26_x@@WXGTK_2.4
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

The wxGTK compilation was fine and I have:

[ogrisel@localhost ogrisel]$ wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES

Any idea?

Thanks for any help.

Best,

Olivier

[...]

build/temp.linux-ppc-2.2/src/gtk/utils.o
build/temp.linux-ppc-2.2/src/gtk/fonts.o -L/usr/X11R6/lib -o
build/lib.linux-ppc-2.2/wxPython/wxc.so -L/usr/local/lib -pthread
-lwx_gtk-2.4
/usr/bin/ld: build/lib.linux-ppc-2.2/wxPython/wxc.so: undefined
versioned symbol name _restfpr_26_x@@WXGTK_2.4
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

Sorry, "restfpr_26_x" is not anywhere in wxWindows, but looks like some symbol the compiler would generate. Also, I don't know what that error message means. Have you tried googling for "failed to set dynamic section sizes: Bad value"?

ยทยทยท

olivier.grisel@ensta.org wrote:

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