LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-06-19 15:40:57


On Sat, 19 Jun 2004, Bogdan Costescu wrote:

>> mpi++.cc:49: error: function `int* MPI::__errno_location()' is initialized
>> like a variable
>
> This looks again to be related to the threading changes cause by NPTL.
> For NPTL, the errno variable is a thread local one, as opposed to a
> global variable that used to be before. I don't have any idea how to fix
> this...

The problem is that this [very very old ;-)] version of LAM didn't include
<errno.h> in some of the files where it was needed. Insertting that will
probably make it compile better.

My $0.02: I realize that you started the thread by saying that you tried
to upgrade to 7.0.x and got seg faults in your application, but I would
still strongly recommend trying to upgrade again. Even though your app
runs properly with 6.3.2, it may still have some latent bugs that are
tripped on other implementations (or simply other versions of LAM).

The 7.0.x series is much more stable and has a lot more features than the
6.3 series; it may be worth your time to find and fix any latent bugs.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/