From: isaacson@cray.com (Andrew Isaacson)
Newsgroups: comp.parallel.mpi
Subject: Re: prob compiling mpich on RH6.0
Date: 16 Jul 1999 22:02:15 GMT
Organization: Cray Research, a subsidiary of Silicon Graphics, Inc.
Message-Id: <7moa57$c3r$1@walter-fddi.cray.com>
References: <378F60E8.55BB1548@eecs.uic.edu>
Xref: ukc comp.parallel.mpi:5350


In article <378F60E8.55BB1548@eecs.uic.edu>,
Ben Kao  <bkao@eecs.uic.edu> wrote:
>
>When I compile mpich1.1.2 on a Red Hat 6.0 system I get the following
>message
>Has anyone run into this and know what is wrong?
>
>- ben
[snip]
>serv_p4.c:136: initializer element is not constant
>serv_p4.c:138: initializer element is not constant
>serv_p4.c:140: initializer element is not constant


It would be most helpful if you could post a few lines of the source code
for perusal.  At a guess, I'm imagining that this code attempts to use
stdin, stdout, or stderr (or all three) as an initializer.  This used to
work on old versions of glibc, but does not on the new glibc 2.1.  (And,
I think it's not guaranteed to work by the C standard.)

If you're a programmer (or even if you've just dabbled in C a bit), you
should be able to move the initializations inside an appropriate function.
Otherwise, wait for the mpich people to release a new version of their
code, or for someone else to do the work and post their patch here.

-andy

