4

suse-11.2: tcl threads, pydoc -g fix

view full story
linux-howto

http://forums.opensuse.org – $ pydoc -g dies with the last words: "TclError: out of stack space (infinite loop?)" This error may indicate that tcl has been compiled without thread support: http://bugs.python.org/issue3835#msg73304 Solution: Download tcl-8.5.7-4.6.src.rpm from the "standard" repo. (download.opensuse.org/source/distribution/11.2/repo/oss/suse/src/) # rpm -ivh tcl-8.5.7-4.6.src.rpm # vi tcl.spec (1) add "http-4.15" to the "known-failures" list (line# 111) (2) fix the typo on line# 93: should be "--enable-threads", rather than "--enable-treads" (3) line# 104 ("instrumentation for profiling"): replace with PFLAGS="" # rpmbuild -bb --clean tcl.cpec # rpm -Uvh --force tcl-8.5.7-4.6.x86_64.rpm Reasons for the changes: (r1) test "http-4.15" fails since my isp screws DNS queries and "no_such_host" is redirected to earthlink-help. (r2) obvious typo (r3) buggy gcc-4.4 optimizer fails with "error: corrupted profile info...", - every time in different files. see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38292 After the fix "pydoc -g" works fine. > uname -a 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux (Distributions)