From: Duncan Napier <napier@voyager.chem.ubc.ca>
Newsgroups: comp.parallel.mpi
Subject: Help: MPI module serv_p4.c gives compiler error
Date: Mon, 21 Jun 1999 14:47:43 -0700
Organization: University of British Columbia
Message-Id: <376EB2FE.8310FBCC@voyager.chem.ubc.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: napier@voyager.chem.ubc.ca, thachuk@voyager.chem.ubc.ca,
    roman@voyager.chem.ubc.ca
Xref: ukc comp.parallel.mpi:5238


 Hi,

I am trying to compile MPI 1.1.2 on Linux v. 2.2.5-15smp (Red Hat 6.0),
with gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).  The
hardware is a dual Intel P-III 450 and the intent is to run MPI on a
cluster of these machines.  All the non-Optional steps in the
Installation Guide work fine, and the simple test programs run fine, on
the host machine as well as on the other nodes of the cluster.

However,  the  step

make PREFIX=/dirpath install

step fails because of the gcc compiler error

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

and  resulting failure of ch_p4 server build. Both

make server

and

make serv_p4

fail too.

The offending  lines of code are :

FILE *stdin_fp  = stdin;
FILE *stdout_fp = stdout;
FILE *stderr_fp = stderr;

which  seem to the compiler to be invalid declarations or assignments.
Anybody know what the fix may be?

                                                            Regards,

                                                            Duncan
Napier,

                                                             University
of British Columbia.

