Package: python2.2
Version: 2.2.3dfsg-1
Severity: important
Tags: patch

Hi,

Your package failed to build automatically:

Automatic build of python2.2_2.2.3dfsg-1 on beethoven by
sbuild/hurd-i386 1.170.5
Build started at 20050430-1727
******************************************************************************
[...]
** Using build dependencies supplied by package:
Build-Depends: debhelper (>= 3), autoconf2.13, libreadline4-dev (>=
2.2-13.3), libncurses5-dev (>= 4.2-3.1), tk8.4-dev, libdb4.2-dev,
zlib1g-dev (>= 1:1.1.3), libexpat1-dev, libgmp3-dev, libgdbm-dev,
blt-dev (>= 2.4z), tix8.1-dev (>= 8.1.3.93), libssl-dev
Build-Depends-Indep: libhtml-tree-perl, tetex-bin, tetex-extra, texinfo,
emacs21, tar, gzip, bzip2, sharutils
Build-Conflicts: tcl8.0-dev, tk8.0-dev, tcl8.2-dev, tk8.2-dev,
tcl8.3-dev, tk8.3-dev
** Filtered missing central deps that are dependencies of or provide
build-deps:
xlibs-dev (>> 4.1.0)
[...]
Checking correctness of source dependencies...
Toolchain package versions: libc0.3-dev_2.3.2.ds1-20.0.1
gcc-3.3_1:3.3.5-12 g++-3.3_1:3.3.5-12 binutils_2.15-5
libstdc++5-3.3-dev_1:3.3.5-12 libstdc++5_1:3.3.5-12
------------------------------------------------------------------------------
dpkg-source: extracting python2.2 in python2.2-2.2.3dfsg
dpkg-buildpackage: source package is python2.2
dpkg-buildpackage: source version is 2.2.3dfsg-1
dpkg-buildpackage: host architecture is hurd-i386
[...]
gcc -c -DNDEBUG -g -O3 -fno-strict-aliasing -Wall -Wstrict-prototypes
-I. -I../Include -DHAVE_CONFIG_H -o Python/thread.o ../Python/thread.c
In file included from ../Python/thread.c:117:
../Python/thread_cthread.h: In function `PyThread__init_thread':
../Python/thread_cthread.h:19: warning: implicit declaration of function
`cthread_init'
../Python/thread_cthread.h: In function `PyThread_start_new_thread':
../Python/thread_cthread.h:41: warning: implicit declaration of function
`cthread_detach'
../Python/thread_cthread.h:41: warning: implicit declaration of function
`cthread_fork'
../Python/thread_cthread.h:41: error: `cthread_fn_t' undeclared (first
use in this function)
../Python/thread_cthread.h:41: error: (Each undeclared identifier is
reported only once
../Python/thread_cthread.h:41: error: for each function it appears in.)
../Python/thread_cthread.h:41: error: syntax error before "func"
../Python/thread_cthread.h: In function `PyThread_get_thread_ident':
../Python/thread_cthread.h:50: warning: implicit declaration of function
`cthread_self'
../Python/thread_cthread.h: In function `do_PyThread_exit_thread':
../Python/thread_cthread.h:57: warning: suggest explicit braces to avoid
ambiguous `else'
../Python/thread_cthread.h:62: warning: implicit declaration of function
`cthread_exit'
../Python/thread_cthread.h: In function `PyThread_allocate_lock':
../Python/thread_cthread.h:112: error: `mutex_t' undeclared (first use
in this function)
../Python/thread_cthread.h:112: error: syntax error before "lock"
../Python/thread_cthread.h:118: error: `lock' undeclared (first use in
this function)
../Python/thread_cthread.h:118: warning: implicit declaration of
function `mutex_alloc'
../Python/thread_cthread.h:119: warning: implicit declaration of
function `mutex_init'
../Python/thread_cthread.h: In function `PyThread_free_lock':
../Python/thread_cthread.h:132: warning: implicit declaration of
function `mutex_free'
../Python/thread_cthread.h: In function `PyThread_acquire_lock':
../Python/thread_cthread.h:138: error: `FALSE' undeclared (first use in
this function)
../Python/thread_cthread.h:142: warning: implicit declaration of
function `mutex_lock'
../Python/thread_cthread.h:142: error: `mutex_t' undeclared (first use
in this function)
../Python/thread_cthread.h:142: error: syntax error before "lock"
../Python/thread_cthread.h:143: error: `TRUE' undeclared (first use in
this function)
../Python/thread_cthread.h:145: warning: implicit declaration of
function `mutex_try_lock'
../Python/thread_cthread.h:145: error: syntax error before "lock"
../Python/thread_cthread.h: In function `PyThread_release_lock':
../Python/thread_cthread.h:155: warning: implicit declaration of
function `mutex_unlock'
../Python/thread_cthread.h:155: error: `mutex_t' undeclared (first use
in this function)
../Python/thread_cthread.h:155: error: syntax error before "lock"
make[1]: *** [Python/thread.o] Error 1
make[1]: Leaving directory `/build/mbanck/python2.2-2.2.3dfsg/builddir'
make: *** [build-stamp] Error 2
******************************************************************************
Build finished at 20050430-1736
FAILED [dpkg-buildpackage died]


Switching from cthreads to pthread (as is done for python2.3 and should
be done for python2.4 as well) makes python2.2 build fine.  I simply
added the attached patch (which is similar to cthreads.dpatch from
python2.3) to debian/patches/hurd.dpatch, I have not checked whether the
rest of hurd.dpatch is still needed (it probably is not, but oh well,
python2.2 is legacy).


cheers,

Michael
--- configure.in.orig   2005-04-30 16:52:11.091728016 +0200
+++ configure.in        2005-04-30 16:52:27.073298448 +0200
@@ -1090,15 +1090,6 @@
     AC_MSG_RESULT($unistd_defines_pthreads)
 
     AC_DEFINE(_REENTRANT)
-    AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
-    AC_DEFINE(C_THREADS)
-    AC_DEFINE(HURD_C_THREADS)
-    LIBS="$LIBS -lthreads"
-    LIBOBJS="$LIBOBJS thread.o"],[
-    AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
-    AC_DEFINE(C_THREADS)
-    AC_DEFINE(MACH_C_THREADS)
-    LIBOBJS="$LIBOBJS thread.o"],[
     AC_MSG_CHECKING(for --with-pth)
     AC_ARG_WITH(pth,
     [  --with-pth                      use GNU pth threading libraries], [
@@ -1151,7 +1142,7 @@
     LIBS="$LIBS -lcma"
     LIBOBJS="$LIBOBJS thread.o"],[
     USE_THREAD_MODULE="#"])
-    ])])])])])])])])])])
+    ])])])])])])])])
 
     if test "$posix_threads" = "yes"; then
       if test "$unistd_defines_pthreads" = "no"; then

Reply via email to