I'm trying to build wxMozilla which appears to require wxPython 2.4. I
downloaded the src rpm for 2.4 from sourceforge and edited the spec file
to point to Python 2.3 but the build fails with this error:
++ /usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/wx-config
--prefix=/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4
--exec-prefix=/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build --libs
+ c++ -L/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib -pthread
-Wl,-rpath -Wl,/usr/lib/wxPython-2.4.2.4/lib -lwx_gtk2ud-2.4 wxrc.o
xml.o xmlparse.o xmlres.o xmlrole.o xmltok.o -o wxrc
/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib/libwx_gtk2ud-2.4.so:
undefined reference to `_gtk_accel_group_detach'
/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib/libwx_gtk2ud-2.4.so:
undefined reference to `_gtk_accel_group_attach'
/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib/libwx_gtk2ud-2.4.so:
undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
error: Bad exit status from /var/tmp/rpm-tmp.20378 (%build)
Is there any reason wxPython 2.4 wouldn't build against Python 2.3 or
GTK 2.4? The missing reference seems to indicate that I'm missing a
library or that wxPython is referring to a symbol that no longer exists
in gtk2.
/usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib/libwx_gtk2ud-2.4.so:
undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
error: Bad exit status from /var/tmp/rpm-tmp.20378 (%build)
Is there any reason wxPython 2.4 wouldn't build against Python 2.3 or
GTK 2.4? The missing reference seems to indicate that I'm missing a
library or that wxPython is referring to a symbol that no longer exists
in gtk2.
Correct. It (and some others) was an undocumented function that was supposed to be for internal use only, and it got changed in gtk 2.4. I know this has been fixed in the wx 2.5 tree, but I'm not sure about 2.4. You could try getting the code from the WX_2_4_BRANCH tag in cvs and see if it builds.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Thanks. I'll give cvs try (the 2.4 rpm wouldn't build either). It's a
sort of catch-22: can't use wxPython 2.4 with GTK 2.4 and can't use
GTK1 or wxPython 2.5 with wxMozilla. Bleh.
Cliff
···
On Sat, 2004-08-07 at 20:36, Robin Dunn wrote:
Cliff Wells wrote:
[...]
> /usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/build/lib/libwx_gtk2ud-2.4.so:
> undefined reference to `_gtk_rc_context_get_default_font_name'
> collect2: ld returned 1 exit status
> error: Bad exit status from /var/tmp/rpm-tmp.20378 (%build)
>
>
> Is there any reason wxPython 2.4 wouldn't build against Python 2.3 or
> GTK 2.4? The missing reference seems to indicate that I'm missing a
> library or that wxPython is referring to a symbol that no longer exists
> in gtk2.
Correct. It (and some others) was an undocumented function that was
supposed to be for internal use only, and it got changed in gtk 2.4. I
know this has been fixed in the wx 2.5 tree, but I'm not sure about 2.4.
You could try getting the code from the WX_2_4_BRANCH tag in cvs and
see if it builds.