[vtk-developers] Mpi compile broken when using mpich2

Wylie, Brian bnwylie at sandia.gov
Tue Dec 26 13:03:58 EST 2006


Actually I'm going to wait until tomorrow morning to catch the
continuous dash boards.... :)

  Brian Wylie - Org 1424
  Sandia National Laboratories
  MS 0822 - Building 880/A1-J
  (505)844-2238 FAX(505)845-0833                       
       ____                  _    __
      / __ \____  _________ | |  / (_)__ _      __ 
     / /_/ / __ `/ ___/ __ `/ | / / / _ \ | /| / /
    / ____/ /_/ / /  / /_/ /| |/ / /  __/ |/ |/ /
   /_/    \__,_/_/   \__,_/ |___/_/\___/|__/|__/

                                    Unleash the Beast
 

> -----Original Message-----
> From: vtk-developers-bounces+bnwylie=sandia.gov at vtk.org 
> [mailto:vtk-developers-bounces+bnwylie=sandia.gov at vtk.org] On 
> Behalf Of Wylie, Brian
> Sent: Tuesday, December 26, 2006 10:45 AM
> To: VTK Developers
> Subject: [vtk-developers] Mpi compile broken when using mpich2
> 
> All,
> 
> The following error occurs in 5 different places when trying 
> to compile VTK with mpich2...
> 
> // There is a name conflict between stdio.h and the MPI C++ 
> binding // with respect to the names SEEK_SET, SEEK_CUR, and 
> SEEK_END.  MPI // wants these in the MPI namespace, but 
> stdio.h will #define these // to integer values.  #undef'ing 
> these can cause obscure problems // with other include files 
> (such as iostream), so we instead use // #error to indicate a 
> fatal error.  Users can either #undef // the names before 
> including mpi.h or include mpi.h *before* stdio.h // or iostream.  
> 
> #ifndef MPICH_IGNORE_CXX_SEEK
> #ifdef SEEK_SET
> #error "SEEK_SET is #defined but must not be for the C++ 
> binding of MPI"
> 
> The patch file is attached...
> 
> I'll check in the changes momentarily...
> 
> 
> 
>   Brian Wylie - Org 1424
>   Sandia National Laboratories
>   MS 0822 - Building 880/A1-J
>   (505)844-2238 FAX(505)845-0833                       
>        ____                  _    __
>       / __ \____  _________ | |  / (_)__ _      __ 
>      / /_/ / __ `/ ___/ __ `/ | / / / _ \ | /| / /
>     / ____/ /_/ / /  / /_/ /| |/ / /  __/ |/ |/ /
>    /_/    \__,_/_/   \__,_/ |___/_/\___/|__/|__/
> 
>                                     Unleash the Beast
>  
> 




More information about the vtk-developers mailing list