[Pkg-phototools-devel] Bug#788102: ilmbase: fatal error: asm/sigcontext.h: No such file or directory
Mathieu Malaterre
malat at debian.org
Mon Jun 8 14:14:08 UTC 2015
Source: ilmbase
Version: 2.2.0-3
Severity: normal
Currenly ilmbase fails to build on non-linux arch because of the following try-compile. ilmbase checks for an old bug in GNU libc
[...]
//
// Ugly, the mxcsr isn't defined in GNU libc ucontext_t, but
// it's passed to the signal handler by the kernel. Use
// the kernel's version of the ucontext to get it, see
// <asm/sigcontext.h>
//
#include <asm/sigcontext.h>
[...]
This code path is only executed when the following autoconf step fails:
AC_MSG_CHECKING(for fpe support handling)
control_register_support="no"
AC_TRY_COMPILE([
#include <stdint.h>
#include <ucontext.h>
],[
ucontext_t ucon;
uint32_t mxcsr = ucon.uc_mcontext.fpregs->mxcsr;
uint16_t cw = ucon.uc_mcontext.fpregs->cwd;
],
AC_DEFINE(ILMBASE_HAVE_CONTROL_REGISTER_SUPPORT) control_register_support=yes)
AC_MSG_RESULT($control_register_support)
If I check online, it appears that ilmbase compile and runs nicely on FreeBSD, therefore ucontext.h does not seems linux specific after all:
https://www.freebsd.org/ports/graphics.html#ilmbase-2.2.0
-- System Information:
Debian Release: 8.0
APT prefers stable
APT policy: (700, 'stable'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Pkg-phototools-devel
mailing list