[Paraview] 3.4.0 compilation broken due to xdfm / old hdf5

Dominik Szczerba dominik at itis.ethz.ch
Tue Jan 20 15:40:09 EST 2009


Below is a fix, fedora 10, hdf5-1.6.8
-- Dominik

--- XdmfObject.h.orig	2009-01-20 21:32:02.000000000 +0100
+++ XdmfObject.h	2009-01-20 21:30:45.000000000 +0100
@@ -82,6 +82,9 @@
 # ifdef UNIX
 #  include "sys/file.h"
 #  include "strings.h"
+/* DSZ */
+#include <stdio.h>
+#include <string.h>
 #  define STRCASECMP strcasecmp
 #  define STRNCASECMP strncasecmp
 #  define STRCMP strcmp





On Sun, 2009-01-18 at 13:38 +0100, Dominik Szczerba wrote:
> PV 3.4.0 + bundled hdf5 tandem is buggy somewhere, as reported long ago,
> so I need a newer ("system") version of hdf5. However, compiling both
> with hdf5 1.8.x and 1.6.8 breaks the compilation, e.g. errors with
> 1.6.8:
> 
> In file included
> from /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfArray.h:29,
> 
> from /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfArray.cxx:26:
> /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfDataDesc.h:
> In member function ‘XdmfInt32 XdmfDataDesc::SetHeavyDataSetName(const
> char*)’:
> /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfDataDesc.h:198: error: ‘strcmp’ was not declared in this scope
> /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfDataDesc.h:198: error: ‘strlen’ was not declared in this scope
> /home/domel/pack/ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfDataDesc.h:198: error: ‘strcpy’ was not declared in this scope
> (...)
> 
> The simplest solution for me would be disabling Xdfm (the only user of
> hdf5 in PV) that I don't need, but it is not possible, it is referenced
> in the server code.
> 
> 1) can xdfm be disabled at option?
> 
> 2) how can I compile with a newer version of hdf5?
> 
> Thanks,
> Dominik
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list