Package: pth
Version: 2.0.7-9
Severity: important

Hi,

building pth on hurd-i386 makes the buildd die during the "checking for
stack setup via sigaltstack..." check, the conftest just runs forever
and eventually makes the system hang.

Problem is this snippet from configure.ac:

dnl #  GNU Hurd has a broken libc which has stubs for sigaltstack and
dnl #  sigstack. When the following Autoconf checks for them are run, it
dnl #  even crashes the system. So we have to disable these checks here.
case $PLATFORM in
    *86-*-gnu0* ) ac_cv_func_sigaltstack="no"; ac_cv_func_sigstack="no"
;;
esac

However, debian/rules passes DEB_HOST_GNU_TYPE/DEB_BUILD_GNU_TYPE to
configure, so PLATFORM becomes "i486-pc-gnu" instead of the
"i686-unknown-gnu0.3" returned by config.guess, on which the above test
is based.  So ac_cv_func_sigaltstack and ac_cv_func_sigstack are not
forced to undefined, resulting in the above hang.

Not sure how to fix this properly so as to make the configure test work
for both Debian and upstream.  For reference, this is the
dpkg-archtecture output on hurd-i386:

DEB_BUILD_ARCH=hurd-i386
DEB_BUILD_ARCH_OS=hurd
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=gnu
DEB_BUILD_GNU_TYPE=i486-gnu
DEB_HOST_ARCH=hurd-i386
DEB_HOST_ARCH_OS=hurd
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=gnu
DEB_HOST_GNU_TYPE=i486-gnu

Also, even when I rudely fix the above configure check to match on
"*86-*-gnu", I get the following build failure you might want to forward
upstream:

./libtool --mode=compile --quiet i486-gnu-gcc -c -I. -Wall -O2 -pipe pth_mctx.c
pth_mctx.c: In function '__pth_mctx_set':
pth_mctx.c:477: error: request for member '__pc' in something not a structure 
or union
pth_mctx.c:478: error: request for member '__sp' in something not a structure 
or union
make[1]: *** [pth_mctx.lo] Error 1
make[1]: Leaving directory `/build/mbanck/pth-2.0.7'


cheers,

Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to