    if ( ! myInfinite )
      return myMin + ( myMax - myMin ) * ( val - myFirst ) / ( myLast - myFirst );
  //  Standard_Real x = log ( ( val - myFirst ) / ( myLast - val ) ); // exponent
+diff -Naur occt-7.1.0-orig/src/OSD/OSD_signal.cxx occt-7.1.0/src/OSD/OSD_signal.cxx
+--- occt-7.1.0-orig/src/OSD/OSD_signal.cxx	2016-11-25 11:50:18.000000000 +0100
++++ occt-7.1.0/src/OSD/OSD_signal.cxx	2017-01-24 00:14:21.899689000 +0100
+@@ -616,7 +616,8 @@
+ #include <pthread.h>
+ 
+ #ifdef __linux__
+-#include <fenv.h>
++#include  <cfenv>
++//#include  <fenv.h>
+ static Standard_Boolean fFltExceptions = Standard_False;
+ #endif
+ 
+@@ -800,7 +801,7 @@
+     (*ADR_ACT_SIGIO_HANDLER)() ;
+ #ifdef __linux__
+   if (fFltExceptions)
+-    feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
++     feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
+     //feenableexcept (FE_INVALID | FE_DIVBYZERO);
+ #endif
+   sigset_t set;
 diff -Naur occt-7.1.0-orig/src/Standard/Standard_OutOfMemory.cxx occt-7.1.0/src/Standard/Standard_OutOfMemory.cxx
 --- occt-7.1.0-orig/src/Standard/Standard_OutOfMemory.cxx	2016-11-25 11:50:18.000000000 +0100
-+++ occt-7.1.0/src/Standard/Standard_OutOfMemory.cxx	2017-01-23 22:00:07.462834300 +0100
++++ occt-7.1.0/src/Standard/Standard_OutOfMemory.cxx	2017-01-23 23:41:06.570523000 +0100
 @@ -15,6 +15,10 @@
  
  #include <Standard_OutOfMemory.hxx>

 set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
diff -Naur occt-7.1.0-orig/src/Geom/Geom_Ellipse.cxx occt-7.1.0/src/Geom/Geom_Ellipse.cxx
--- occt-7.1.0-orig/src/Geom/Geom_Ellipse.cxx	2016-11-25 11:50:18.000000000 +0100
+++ occt-7.1.0/src/Geom/Geom_Ellipse.cxx	2017-01-23 22:03:42.136216200 +0100
@@ -31,7 +31,6 @@
 
 IMPLEMENT_STANDARD_RTTIEXT(Geom_Ellipse,Geom_Conic)

 
diff -Naur occt-7.1.0-orig/src/Message/Message_ProgressScale.cxx occt-7.1.0/src/Message/Message_ProgressScale.cxx
--- occt-7.1.0-orig/src/Message/Message_ProgressScale.cxx	2016-11-25 11:50:18.000000000 +0100
+++ occt-7.1.0/src/Message/Message_ProgressScale.cxx	2017-01-23 23:41:06.570523000 +0100
@@ -15,8 +15,8 @@
 #include <Message_ProgressScale.hxx>
 #include <TCollection_HAsciiString.hxx>
