Error compiling wxPython 2.4.0.2

I am running Redhat 7.3, kernel 2.4.18-19.7.x, KDE 3.0.3 and trying
to compile wxPython from wxPythonSrc-2.4.0.2. Using the .spec
file I tried to generate the rpms with "rpm -ba wxPythonGTK.spec".
The only change I made to the .spec file was the suggested one of
changing "%define builtin_libs 1" (changed 1 to 0). I get the
following error:

/usr/bin/ld: lib/libwx_gtkd-2.4.so.0.0.0: undefined versioned symbol name
__dynamic_cast@@CXXABI_1.2
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libwx_gtkd-2.4.so.0.0.0] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.60563 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.60563 (%build)

Can someone help me out? Thanks.

Regards,
Jeff Stephens

Jeffrey Stephens wrote:

I am running Redhat 7.3, kernel 2.4.18-19.7.x, KDE 3.0.3 and trying
to compile wxPython from wxPythonSrc-2.4.0.2. Using the .spec
file I tried to generate the rpms with "rpm -ba wxPythonGTK.spec".
The only change I made to the .spec file was the suggested one of
changing "%define builtin_libs 1" (changed 1 to 0). I get the
following error:

/usr/bin/ld: lib/libwx_gtkd-2.4.so.0.0.0: undefined versioned symbol name __dynamic_cast@@CXXABI_1.2
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libwx_gtkd-2.4.so.0.0.0] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.60563 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.60563 (%build)

Can someone help me out? Thanks.

Is it possible that you've used different versions of GCC for various parts of the build?

···

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