cd ${PRODUCT_SRC_DIR}/${PRODUCT}_SRC
-# apply a small patch for VTK (needed for gcc-3.4)
-sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkBMPReader.cxx > IO/vtkBMPReader.cxx.orig
-mv -f IO/vtkBMPReader.cxx.orig IO/vtkBMPReader.cxx
-sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" IO/vtkImageReader.cxx > IO/vtkImageReader.cxx.orig
-mv -f IO/vtkImageReader.cxx.orig IO/vtkImageReader.cxx
+# patch for gcc-3.4
+for f in IO/vtkBMPReader.cxx IO/vtkImageReader.cxx ; do
+ sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast<long>(self->GetFile()->tellg())%g" ${f} > ${f}_
+ mv -f ${f}_ ${f}
+done
+
+# patch for gcc 4.3
+for f in Utilities/DICOMParser/DICOMAppHelper.cxx Utilities/DICOMParser/DICOMFile.cxx Utilities/DICOMParser/DICOMParser.cxx ; do
+ sed -e "s%#include <string>%#include <string>\n#include <string.h>%g" ${f} > ${f}_
+ mv -f ${f}_ ${f}
+done
sed -e "s%char \*doc \=%const char \*doc \=%g" Common/vtkPythonUtil.cxx > Common/vtkPythonUtil.cxx.orig
mv -f Common/vtkPythonUtil.cxx.orig Common/vtkPythonUtil.cxx
cd ${PRODUCT_SRC_DIR}/${PRODUCT}_SRC/Wrapping/Python
-check_job ${PRODUCT_DIR}/SETUPPYTHON.LOG python setup.py install --prefix=${PRODUCT_DIR}
+check_job ${PRODUCT_DIR}/SETUPPYTHON.LOG python ./setup.py install --prefix=${PRODUCT_DIR}
# set correct symbolic links - bug of python wrappings installation
# cd ${PRODUCT_DIR}/include
# additional patching for SALOME
(cd ${PRODUCT_SRC_DIR}; cp ngtcltk/ngnewdelete.* libsrc/interface)
+# patch for gcc 4.3
+(cd ${PRODUCT_SRC_DIR}; sed -e "s%#include <string>%#include <string>\n#include <string.h>%g" libsrc/include/mystdlib.h > libsrc/include/mystdlib.h.1 ; mv -f libsrc/include/mystdlib.h.1 libsrc/include/mystdlib.h )
+
# to generate environment scripts
try_preinstalled
}