[Python-Dev] Build errors under RH9

"Martin v. L÷wis" martin@v.loewis.de
Fri, 18 Apr 2003 00:35:15 +0200


Gary Herron wrote:

> I just upgraded my development system to RedHat 9, and now I get two
> compilation errors on the Python CVS tree.  I'll have time to examine
> them tonight, but I thought I'd get a notice out now on the chance
> that someone else has already resolved them.
> 
> 1. Compilation of _tkinter comes up wit
>      #error "unsupported Tcl configuration"
> 
>    The failing test was changed just yesterday, but the previous
>    version gives the same results:
>    In revision 1.155:
>      #if TCL_UTF_MAX != 3 && !(defined(Py_UNICODE_WIDE) && TCL_UTF_MAX==6)
>    and in revision 1.154:
>      #if TCL_UTF_MAX != 3
>   
>   And yet, if I remove the test, I get a (very minimally tested)
>   working version of Tkinter, so the test should probably be modified
>   to pass in whatever circumstances RH 9 presents.

That change is indeed intended to fix the problem. You need to configure
Python with --enable-unicode=ucs4 on Redhat 9; compiling in UCS-2 
support is not supported if you want Tkinter to work with the Tk 
provided by Redhat. Before this change, --enable-unicode=ucs4 would not
work, either. Outright removing the test gives is incorrect as well.

>    (How to I get past the
>       "Use of the `network' resource not enabled"
>     result of running test_socket_ssl.py?)

Pass "-u network" to regrtest.

Regards,
Martin