<div dir="ltr">I've looked into this bug a bit today and I'd suggest that instead the `mkoctfile-mpi.diff` patch in src:octave (from bug #598227) be modified to be something more like:<div><br></div><div><div>-: ${XTRA_CXXFLAGS=%OCTAVE_CONF_XTRA_CXXFLAGS%}</div>
<div>+: ${XTRA_CXXFLAGS=-I/usr/include/mpi -DOMPI_SKIP_MPICXX=1 -DMPICH_SKIP_MPICXX=1 %OCTAVE_CONF_XTRA_CXXFLAGS%}</div></div><div><br></div><div style>That would contain the bug fix to Octave (which is the only place where the bug seems to have surfaced).</div>
<div style><br></div><div style>Normally this is not an issue --- a developer would use mpicc or mpicxx to do the compilation</div><div style>and linking and this would automatically ensure that the correct mpi libraries are used.  Octave</div>
<div style>is broken because it is using g++ and hacking in the MPI include directory without following it</div><div style>up with the necessary link flags.</div><div style><br></div><div style>Cheers,</div><div style>Brad</div>
</div>