On 2013-02-02 Andreas Metzler <ametz...@downhill.at.eu.org> wrote:
[....]
> ilmbase-1.0.3-ucontext.patch
> # fix build on i686/32bit
> # https://github.com/openexr/openexr/issues/3
[...]

Fedora only applies this patch on 32bit archs, find attached a version
which does not break building on amd64.

FWIW ilmbase does not build on kfreebsd-amd64:
---------------------
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../config -I.. -I../Iex 
-I../config -D_FORTIFY_SOURCE=2 -pipe -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -c 
IexMathFpu.cpp  -fPIC -DPIC -o .libs/IexMathFpu.o
IexMathFpu.cpp: In function 'void Iex::FpuControl::restoreControlRegs(const 
ucontext_t&, bool)':
IexMathFpu.cpp:234:30: error: 'const struct mcontext_t' has no member named 
'fpregs'
IexMathFpu.cpp:235:32: error: 'const struct mcontext_t' has no member named 
'fpregs'
IexMathFpu.cpp: In function 'void 
Iex::setFpExceptionHandler(Iex::FpExceptionHandler)':
IexMathFpu.cpp:437:9: error: 'struct sigaction' has no member named 
'sa_restorer'
---------------------

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Description: Fix build-error on ix86
Author: Nicolas Chauvet <kwiz...@gmail.com>
Origin: other, git://pkgs.fedoraproject.org/ilmbase.git
Bug: https://github.com/openexr/openexr/issues/3
Forwarded: http://lists.nongnu.org/archive/html/openexr-devel/2013-02/msg00000.html
Last-Update: 2013-02-03

--- ilmbase-1.0.3+dfsg.orig/IexMath/IexMathFpu.cpp
+++ ilmbase-1.0.3+dfsg/IexMath/IexMathFpu.cpp
@@ -228,6 +228,7 @@ clearExceptions ()
 const uint16_t cwRestoreMask = ~((3 << 10) | (3 << 8));
 const uint16_t cwRestoreVal = (0 << 10) | (3 << 8);
 
+#if defined(__x86_64__)
 inline void
 restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
 {
@@ -235,7 +236,7 @@ restoreControlRegs (const ucontext_t & u
     setMxcsr (ucon.uc_mcontext.fpregs->mxcsr, clearExceptions);
 }
 
-#if 0
+#else
 
 //
 // Ugly, the mxcsr isn't defined in GNU libc ucontext_t, but
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to