Tcl threads, pydoc -g error

Hello,

Configuration :
Opensuse 11.4-x86_64, kernel 2.6.37.6-0.11-desktop
tcl-8.5.9-2.11.x86_64
python-2.7-9.12.1.x86_64

When I used pydoc -g, I have the following error :
$ pydoc -g
dies with the last words:
“TclError: out of stack space (infinite loop?)”

It’s the same problem as this link http://forums.opensuse.org/english/get-technical-help-here/applications/427691-suse-11-2-tcl-threads-pydoc-g-fix.html
I tried to fix my problem with the explanation with the link above with the last tcl-8.5.11-40.1.src.rpm version from /repositories/devel:/languages:/tcl/openSUSE_11.4 but I have an errors

Tests ended at Tue Feb 14 17:34:11 CET 2012
all.tcl:        Total   27009   Passed  25732   Skipped 1272    Failed  5
Sourced 137 Test Files.
Files with failing tests: env.test httpold.test unixInit.test
Number of tests skipped for each constraint:
        9       !ieeeFloatingPoint
        3       asyncPipeChan
        76      bigEndian
        5       bug-3057639
        1       dontCopyLinks
        59      emptyTest
        2       hasIsoLocale
        1       impossible
        1       knownBadTest
        30      knownBug
        2       largefileSupport
        100     localeRegexp
        50      longIs32bit
        14      macosxFileAttr
        17      memory
        40      nonPortable
        265     notRoot
        8       nt
        1       testWinCPUID
        7       testaccessproc
        1       testexprparser && !ieeeFloatingPoint
        8       testopenfilechannelproc
        7       teststatproc
        1       testwinclock
        21      testwordend
        3       unknownFailure
        2       unthreaded
        2       wideBiggerThanInt
        523     win
        2       win2000orXP
+ grep -Fqvwf known-failures
+ grep FAILED testresults
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.L6imTf (%build)


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

The problem seems to be tcl.
I used 2 versions : tcl-8.5.9-2.11.x86_64 and tcl-8.5.11-40.1.x86_64
I have the same error with the command pydoc

> pydoc -g
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 483, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/pydoc.py", line 2053, in serve
    DocServer(port, callback).serve_until_quit()
  File "/usr/lib64/python2.7/pydoc.py", line 2035, in __init__
    self.base.__init__(self, self.address, self.handler)
  File "/usr/lib64/python2.7/SocketServer.py", line 409, in __init__
    self.server_activate()
  File "/usr/lib64/python2.7/pydoc.py", line 2046, in server_activate
    if self.callback: self.callback(self)
  File "/usr/lib64/python2.7/pydoc.py", line 2136, in ready
    text='Python documentation server at
' + server.url)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1202, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1193, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: out of stack space (infinite loop?)

As explain in this link http://forums.opensuse.org/english/get-technical-help-here/applications/427691-suse-11-2-tcl-threads-pydoc-g-fix.html
I downloaded the last src version from Index of /repositories/devel:/languages:/tcl/openSUSE_11.4/src and I do the same modification.
But the rpmbuild command return error

/usr/src/packages/SPECS # rpmbuild -bb --clean tcl.spec
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf tcl8.5.11
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/tcl8.5.11-src.tar.gz
+ /bin/tar -xf -                                                                                                                            
+ STATUS=0                                                                                                                                  
+ '' 0 -ne 0 ']'                                                                                                                           
+ cd tcl8.5.11
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (tcl.patch):'
+ /bin/cat /usr/src/packages/SOURCES/tcl.patch
+ /usr/bin/patch -s -p0 --fuzz=0
+ echo 'Patch #1 (tcl-unload.patch):'
+ /bin/cat /usr/src/packages/SOURCES/tcl-unload.patch
+ /usr/bin/patch -s -p0 --fuzz=0
+ exit 0
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
++ dirname /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
+ cd tcl8.5.11
+ cd unix
+ autoconf
+ CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-man-symlinks --enable-threads --enable-man-compression=gzip
+ MAKE='make 
        TCL_LIBRARY="/usr/lib64/tcl/tcl8.5"
        TCL_PACKAGE_PATH="/usr/lib64/tcl /usr/share/tcl"
        CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"
        LDFLAGS_OPTIMIZE="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"
        SHLIB_LD="gcc -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"'
+ PFLAGS=
+ eval make 'TCL_LIBRARY="/usr/lib64/tcl/tcl8.5"' 'TCL_PACKAGE_PATH="/usr/lib64/tcl' '/usr/share/tcl"' 'CFLAGS="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'LDFLAGS_OPTIMIZE="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'SHLIB_LD="gcc' -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"'
++ make TCL_LIBRARY=/usr/lib64/tcl/tcl8.5 'TCL_PACKAGE_PATH=/usr/lib64/tcl /usr/share/tcl' 'CFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables ' 'LDFLAGS_OPTIMIZE=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables ' 'SHLIB_LD=gcc -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '
+ mkdir home
+ export HOME=/usr/src/packages/BUILD/tcl8.5.11/unix/home
+ HOME=/usr/src/packages/BUILD/tcl8.5.11/unix/home
+ cat
+ tee testresults
+ eval make 'TCL_LIBRARY="/usr/lib64/tcl/tcl8.5"' 'TCL_PACKAGE_PATH="/usr/lib64/tcl' '/usr/share/tcl"' 'CFLAGS="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'LDFLAGS_OPTIMIZE="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'SHLIB_LD="gcc' -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' test
+ grep FAILED testresults
+ grep -Fqvwf known-failures
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.6z73Sw (%build)
    Bad exit status from /var/tmp/rpm-tmp.6z73Sw (%build)

If someone have an idea…

More output information from rpmbuild command

/usr/src/packages/SPECS # rpmbuild -bb --clean tcl.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.raRDZI
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf tcl8.5.11
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/tcl8.5.11-src.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '' 0 -ne 0 ']'
+ cd tcl8.5.11
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (tcl.patch):'
Patch #0 (tcl.patch):
+ /bin/cat /usr/src/packages/SOURCES/tcl.patch
+ /usr/bin/patch -s -p0 --fuzz=0
+ echo 'Patch #1 (tcl-unload.patch):'
Patch #1 (tcl-unload.patch):
+ /bin/cat /usr/src/packages/SOURCES/tcl-unload.patch
+ /usr/bin/patch -s -p0 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.QjXXyb
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
++ dirname /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/tcl-8.5.11-40.1.x86_64
+ cd tcl8.5.11
+ cd unix
+ autoconf
+ CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-man-symlinks --enable-threads --enable-man-compression=gzip
checking whether to use symlinks for manpages... yes
checking whether to compress the manpages... gzip
checking for compressed file suffix... .gz
checking whether to add a package name suffix for the manpages... no
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking for fts... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking system version... (cached) Linux-2.6.37.6-0.11-desktop
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking whether to use dll unloading... yes
checking for timezone data... /usr/share/zoneinfo
checking whether to enable DTrace support... no
checking if the C stack grows upwards in memory... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dltest/Makefile
config.status: creating tclConfig.sh
+ MAKE='make 
        TCL_LIBRARY="/usr/lib64/tcl/tcl8.5"
        TCL_PACKAGE_PATH="/usr/lib64/tcl /usr/share/tcl"
        CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"
        LDFLAGS_OPTIMIZE="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"
        SHLIB_LD="gcc -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables $PFLAGS"'
+ PFLAGS=
+ eval make 'TCL_LIBRARY="/usr/lib64/tcl/tcl8.5"' 'TCL_PACKAGE_PATH="/usr/lib64/tcl' '/usr/share/tcl"' 'CFLAGS="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'LDFLAGS_OPTIMIZE="-O2' -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"' 'SHLIB_LD="gcc' -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '$PFLAGS"'
++ make TCL_LIBRARY=/usr/lib64/tcl/tcl8.5 'TCL_PACKAGE_PATH=/usr/lib64/tcl /usr/share/tcl' 'CFLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables ' 'LDFLAGS_OPTIMIZE=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables ' 'SHLIB_LD=gcc -shared -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '
gcc -c -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -Wall -fPIC -I"." -I/usr/src/packages/BUILD/tcl8.5.11/unix/../unix -I/usr/src/packages/BUILD/tcl8.5.11/unix/../generic -I/usr/src/packages/BUILD/tcl8.5.11/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_GETATTR_NP=1 -DGETATTRNP_NOT_DECLARED=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_GETHOSTBYNAME_R_6=1 -DHAVE_GETHOSTBYNAME_R=1 -DHAVE_GETHOSTBYADDR_R_8=1 -DHAVE_GETHOSTBYADDR_R=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1      /usr/src/packages/BUILD/tcl8.5.11/unix/../generic/regcomp.c
..
..
make[1]: Leaving directory `/usr/src/packages/BUILD/tcl8.5.11/unix/dltest'
make tcltest-real LIB_RUNTIME_DIR="`pwd`"
make[1]: Entering directory `/usr/src/packages/BUILD/tcl8.5.11/unix'
gcc -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -Wl,--export-dynamic  tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclUnixTest.o -L/usr/src/packages/BUILD/tcl8.5.11/unix -ltcl8.5 -ldl  -lpthread -lieee -lm  \
        -Wl,-rpath,/usr/src/packages/BUILD/tcl8.5.11/unix -o tcltest
make[1]: Leaving directory `/usr/src/packages/BUILD/tcl8.5.11/unix'
LD_LIBRARY_PATH="`pwd`:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
TCL_LIBRARY="/usr/src/packages/BUILD/tcl8.5.11/library"; export TCL_LIBRARY; \
./tcltest /usr/src/packages/BUILD/tcl8.5.11/unix/../tests/all.tcl 
Tests running in interp:  /usr/src/packages/BUILD/tcl8.5.11/unix/tcltest
Tests located in:  /usr/src/packages/BUILD/tcl8.5.11/tests
Tests running in:  /usr/src/packages/BUILD/tcl8.5.11/unix
Temporary files stored in /usr/src/packages/BUILD/tcl8.5.11/unix
Test files run in separate interpreters
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  *.test
Tests began at Wed Feb 15 10:32:02 CET 2012
append.test
appendComp.test
apply.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
chan.test
chanio.test
clock.test
cmdAH.test
cmdIL.test
cmdInfo.test
cmdMZ.test
compExpr-old.test
compExpr.test
compile.test
concat.test
config.test
dcall.test
dict.test
dstring.test
encoding.test
env.test


==== env-4.3 setting international environment variables FAILED
==== Contents of test case:

    set env(\ua7) \ub6
    getenv

---- Result was:
\u00c2\u00a7=\u00c2\u00b6
---- Result should have been (exact matching):
\u00a7=\u00b6
==== env-4.3 FAILED



==== env-4.4 changing international environment variables FAILED
==== Contents of test case:

    set env(\ua7) \ua7
    getenv

---- Result was:
\u00c2\u00a7=\u00c2\u00a7
---- Result should have been (exact matching):
\u00a7=\u00a7
==== env-4.4 FAILED



==== env-4.5 unsetting international environment variables FAILED
==== Contents of test case:

    set env(\ub6) \ua7
    unset env(\ua7)
    set result [getenv]
    unset env(\ub6)
    set result

---- Result was:
\u00c2\u00b6=\u00c2\u00a7
---- Result should have been (exact matching):
\u00b6=\u00a7
==== env-4.5 FAILED

error.test
eval.test
event.test
exec.test
execute.test
expr-old.test
expr.test
fCmd.test
fileName.test
fileSystem.test
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
Running httpd in thread 139718430787328
httpold.test


==== httpold-4.12 httpEvent FAILED
==== Contents of test case:

    update
    set x {}
    after 500 {lappend x ok}
    set token [http_get $url -timeout 1 -command {lappend x fail}]
    vwait x
    list [http_status $token] $x

---- Result was:
ok ok
---- Result should have been (exact matching):
timeout ok
==== httpold-4.12 FAILED

if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
interp.test
io.test
ioCmd.test
ioUtil.test
iogt.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
lrange.test
lrepeat.test
lreplace.test
lsearch.test
lset.test
lsetComp.test
macOSXFCmd.test
macOSXLoad.test
main.test
mathop.test
misc.test
msgcat.test
namespace-old.test
namespace.test
notify.test
obj.test
opt.test
package.test
parse.test
parseExpr.test
parseOld.test
pid.test
pkg.test
pkgMkIndex.test
platform.test
proc-old.test
proc.test
pwd.test
reg.test
regexp.test
regexpComp.test
registry.test
rename.test
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test
source.test
split.test
stack.test
string.test
stringComp.test
stringObj.test
subst.test
switch.test
tcltest.test
thread.test
timer.test
tm.test
trace.test
unixFCmd.test
unixFile.test
unixInit.test


==== unixInit-3.1 TclpSetInitialEncodings FAILED
==== Contents of test case:

    set env(LANG) C
    set f [open "|[list [interpreter]]" w+]
    fconfigure $f -buffering none
    puts $f {puts [encoding system]; exit}
    set enc [gets $f]
    close $f
    unset env(LANG)
    set enc

---- Result was:
utf-8
---- Result should have been (regexp matching):
^iso8859-15?$
==== unixInit-3.1 FAILED

unixNotfy.test
unknown.test
unload.test
uplevel.test
upvar.test
utf.test
util.test
var.test
while-old.test
while.test
winConsole.test
winDde.test
winFCmd.test
winFile.test
winNotify.test
winPipe.test
winTime.test

Tests ended at Wed Feb 15 10:35:57 CET 2012
all.tcl:        Total   27009   Passed  25732   Skipped 1272    Failed  5
Sourced 137 Test Files.
Files with failing tests: env.test httpold.test unixInit.test
Number of tests skipped for each constraint:
        9       !ieeeFloatingPoint
        3       asyncPipeChan
        76      bigEndian
        5       bug-3057639
        1       dontCopyLinks
        59      emptyTest
        2       hasIsoLocale
        1       impossible
        1       knownBadTest
        30      knownBug
        2       largefileSupport
        100     localeRegexp
        50      longIs32bit
        14      macosxFileAttr
        17      memory
        40      nonPortable
        265     notRoot
        8       nt
        1       testWinCPUID
        7       testaccessproc
        1       testexprparser && !ieeeFloatingPoint
        8       testopenfilechannelproc
        7       teststatproc
        1       testwinclock
        21      testwordend
        3       unknownFailure
        2       unthreaded
        2       wideBiggerThanInt
        523     win
        2       win2000orXP
+ grep -Fqvwf known-failures
+ grep FAILED testresults
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.CuQfZU (%build)


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

I solved my problem in part by commenting on the line 102 to 112 in the tcl.spec file

# Some of the regressioin tests write to $HOME, so better redirect them
#mkdir home
#export HOME=$PWD/home
# Run the testsuite to gather some data for the profile-based
# optimisation and let rpmbuild fail on unexpected test failures.
#cat > known-failures <<EOF
#httpold-4.12
#mathop-25.14
#EOF
#%ifnarch %arm
#eval $MAKE test 2>&1 | tee testresults
#grep FAILED testresults | grep -Fqvwf known-failures && exit 1
#%endif

I did not change PFLAGS="%{?cflags_profile_generate}"
I add enable-threads option between enable-man-symlinks and enable-man-compression=gzip options

Now, pydoc -g is ok

On 02/15/2012 05:06 PM, fchaudier wrote:
> Now, pydoc -g is ok

happy to hear you worked it out,! and sorry, you didn’t get more help…

info for next time: instead posting to the ‘applications’ forum i’d
suggest your questions like this one would be better in our forum on
“Programming/Scripting - Questions about programming, bash scripts,
perl, php, cron jobs, ruby, python, etc.” http://tinyurl.com/5v695w4

there, i expect you to find more hanging around that could help…

alternatively, at least when asked “is what you are showing us the
output of an attempt to build a package from source?” provide an answer
rather than abandoning one and posting to a different thread… cite:
http://forums.opensuse.org/english/get-technical-help-here/applications/427691-suse-11-2-tcl-threads-pydoc-g-fix.html#post2440298


DD http://tinyurl.com/DD-Caveat http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW

This still seems to be an issue on 12.2, so I filed https://bugzilla.novell.com/show_bug.cgi?id=798578 to track it.