Hello,

I'm the current Fedora package maintainer of OpenEXR_Viewers.
Here are patch used in order to build with gcc43 and gcc44 which apply
to 1.0.2 version.
Please get them merged.

Additional notes:
1/ On the current source archive, I need to regenerate the configure
because the CTL test is broken for some reason, so I just run
autoreconf before configure.
2/ There is also a problem to detect the CTL module path which is
usually  a CTL subdirectory of the libdir configure option. It means
that in-tree installation will use libdir as $prefix/lib but other
multilibs distro will use $prefix/lib64 or $prefix/lib64 as libdir
variable. (Hence CTL will default to libdir/CTL). CTL libdir can be
detected at configure time with pkg-config --variable=libdir CTL.

Thx
diff -up openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43 openexr_viewers-1.0.1/exrdisplay/applyCtl.h
--- openexr_viewers-1.0.1/exrdisplay/applyCtl.h.gcc43	2006-12-09 01:14:07.000000000 +0100
+++ openexr_viewers-1.0.1/exrdisplay/applyCtl.h	2008-01-10 02:07:14.000000000 +0100
@@ -49,6 +49,7 @@
 #include <ImfArray.h>
 #include <ImfHeader.h>
 #include <vector>
+#include <cstdlib>
 
 //
 // Apply a series of CTL transforms to the raw pixel data from an image file
diff -up openexr_viewers-1.0.1/configure.ac.gcc43 openexr_viewers-1.0.1/configure.ac
--- openexr_viewers-1.0.1/configure.ac.gcc43	2007-10-10 00:20:51.000000000 +0200
+++ openexr_viewers-1.0.1/configure.ac	2008-01-10 02:07:14.000000000 +0100
@@ -126,6 +126,7 @@ AM_COMPILELINKRUN(
 #include <ImfFrameBuffer.h>
 #include <ImathBox.h>
 #include <vector>
+#include <cstdlib>
     using namespace Ctl;
     using namespace Imf;
     using namespace Imath;
diff -up openexr_viewers-1.0.1/configure.gcc43 openexr_viewers-1.0.1/configure
--- openexr_viewers-1.0.1/configure.gcc43	2007-10-10 00:21:01.000000000 +0200
+++ openexr_viewers-1.0.1/configure	2008-01-10 02:07:14.000000000 +0100
@@ -20869,6 +20869,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #include <ImfFrameBuffer.h>
 #include <ImathBox.h>
 #include <vector>
+#include <cstdlib>
     using namespace Ctl;
     using namespace Imf;
     using namespace Imath;
diff -up openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43 openexr_viewers-1.0.1/playexr/ctlToLut.h
--- openexr_viewers-1.0.1/playexr/ctlToLut.h.gcc43	2008-01-10 03:09:55.000000000 +0100
+++ openexr_viewers-1.0.1/playexr/ctlToLut.h	2008-01-10 03:11:18.000000000 +0100
@@ -88,6 +88,7 @@
 #include <string>
 #include <vector>
 #include <half.h>
+#include <cstdlib>
 
 
 void
diff -up openexr_viewers-1.0.1/playexr/main.cpp.gcc43 openexr_viewers-1.0.1/playexr/main.cpp
--- openexr_viewers-1.0.1/playexr/main.cpp.gcc43	2008-01-10 03:05:03.000000000 +0100
+++ openexr_viewers-1.0.1/playexr/main.cpp	2008-01-10 03:05:48.000000000 +0100
@@ -48,6 +48,7 @@
 #include <vector>
 #include <string>
 #include <stdlib.h>
+#include <cstring>
 
 using namespace std;
 
diff -up openexr_viewers-1.0.2/exrdisplay/applyCtl.cpp.gcc44 openexr_viewers-1.0.2/exrdisplay/applyCtl.cpp
--- openexr_viewers-1.0.2/exrdisplay/applyCtl.cpp.gcc44	2010-09-03 15:56:01.000000000 +0200
+++ openexr_viewers-1.0.2/exrdisplay/applyCtl.cpp	2010-09-03 15:57:13.000000000 +0200
@@ -38,6 +38,8 @@
 //
 //-----------------------------------------------------------------------------
 
+#include <stdlib.h>
+#include <stdio.h>
 #include <applyCtl.h>
 
 #if HAVE_CTL_INTERPRETER
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to