+++ Wookey [2011-05-31 03:49 +0100]:
+++ Bill Gee [2011-05-29 20:17 -0500]:
Hello everyone -
I just did a clean (not an upgrade) install of Fedora 15, 64-bit. Trying to compile Therion 5.3.6 and 5.3.7 produces an error in thbezier. There are warnings, too, but I think they can be ignored.
c++ -c -Wall -DTHLINUX -O2 -o thbezier.o thbezier.cxx In file included from thbezier.cxx:48:0: thbezier.h:53:3: error: ‘size_t’ does not name a type thbezier.h:66:3: error: ‘size_t’ does not name a type thbezier.cxx: In member function ‘void thbezier_curve::copy_polyline(thbezier_polyline*, double)’: thbezier.cxx:1372:25: error: ‘struct thbezier_polyline’ has no member named ‘get_length’ make: *** [thbezier.o] Error 1
OK. I've reproduced this now. By building on unstable instead of stable. Could be updating to vtk v5.6 instead of v5.4. but a number of other libs were upgraded too. Will investigate.
In fact this problem is due to using gcc-4.5 which has stricter rules for including c++ headers. This patch fixes it: Index: therion-5.3.7/thbezier.h =================================================================== --- therion-5.3.7.orig/thbezier.h 2011-05-31 18:10:26.269303221 +0100 +++ therion-5.3.7/thbezier.h 2011-05-31 18:11:13.621303221 +0100 @@ -29,6 +29,7 @@ #ifndef thbezier_h #define thbezier_h +#include <cstddef> #include <list> #include <vector> Index: therion-5.3.7/thdb2dcp.cxx =================================================================== --- therion-5.3.7.orig/thdb2dcp.cxx 2011-05-31 18:10:26.285303221 +0100 +++ therion-5.3.7/thdb2dcp.cxx 2011-05-31 18:11:13.621303221 +0100 @@ -27,6 +27,8 @@ #include "thdb2dcp.h" +#include <cstddef> + thdb2dcp::thdb2dcp() { this->point = NULL; Index: therion-5.3.7/thscraplo.cxx =================================================================== --- therion-5.3.7.orig/thscraplo.cxx 2011-05-31 18:10:26.309303221 +0100 +++ therion-5.3.7/thscraplo.cxx 2011-05-31 18:11:13.621303221 +0100 @@ -27,6 +27,8 @@ #include "thscraplo.h" +#include <cstddef> + thscraplo::thscraplo() { this->next_line = NULL; Index: therion-5.3.7/thscrapen.cxx =================================================================== --- therion-5.3.7.orig/thscrapen.cxx 2011-05-31 18:10:26.317303221 +0100 +++ therion-5.3.7/thscrapen.cxx 2011-05-31 18:11:13.621303221 +0100 @@ -27,6 +27,8 @@ #include "thscrapen.h" +#include <cstddef> + thscrapen::thscrapen() { this->next_end = NULL; Index: therion-5.3.7/extern/lxMath.h =================================================================== --- therion-5.3.7.orig/extern/lxMath.h 2011-05-31 18:10:26.293303221 +0100 +++ therion-5.3.7/extern/lxMath.h 2011-05-31 18:11:13.621303221 +0100 @@ -31,6 +31,7 @@ // Standard libraries #ifndef LXDEPCHECK +#include <cstddef> #include <list> #include <vector> #include <map> Index: therion-5.3.7/thwarp.h =================================================================== --- therion-5.3.7.orig/thwarp.h 2011-05-31 18:10:26.277303221 +0100 +++ therion-5.3.7/thwarp.h 2011-05-31 18:11:13.621303221 +0100 @@ -32,6 +32,7 @@ #include "thpic.h" #include "thsketch.h" +#include <cstddef> class thwarp { Index: therion-5.3.7/extern/poly2tri/sweep/sweep_context.h =================================================================== --- therion-5.3.7.orig/extern/poly2tri/sweep/sweep_context.h 2011-05-31 18:11:20.237303221 +0100 +++ therion-5.3.7/extern/poly2tri/sweep/sweep_context.h 2011-05-31 18:11:44.145303221 +0100 @@ -32,6 +32,7 @@ #ifndef SWEEP_CONTEXT_H #define SWEEP_CONTEXT_H +#include <cstddef> #include <list> #include <vector> Index: therion-5.3.7/loch/lxMath.h =================================================================== --- therion-5.3.7.orig/loch/lxMath.h 2011-05-31 18:14:22.781303222 +0100 +++ therion-5.3.7/loch/lxMath.h 2011-05-31 18:14:44.793303222 +0100 @@ -31,6 +31,7 @@ // Standard libraries #ifndef LXDEPCHECK +#include <cstddef> #include <list> #include <vector> #include <map> Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/