From: jonesbr@aphelion.ecn.purdue.edu (Brian R. Jones)
Newsgroups: comp.parallel.mpi
Subject: Re: [Q] MPICH 1.1.1 install problems on Redhat 5.1 - SUMMARY
Date: 31 Oct 1998 15:55:09 GMT
Organization: Purdue University, School of AAE
Message-Id: <71fbst$ep3@mozo.cc.purdue.edu>
References: <71568l$en3@mozo.cc.purdue.edu>
    <90952892510121@abacus.mcs.anl.gov>


For the benefit of the group... yes the patch worked - sometimes.
I ended up experimenting on two different machines using clean and
fully patched distributions of MPICH 1.1.1.  On the first machine
the patch worked with no problems.  On the second, I received a
parse error at the "if LINUX_VERSION_CODE".  As the patch let me
know what to look for, however, it was fairly trivial to just fix
ad_fstype.c myself.  One other note... I started to install MPICH
on yet another machine and found that the KERNEL_VERSION macro was
not defined.  This new machine was using the Redhat update files
that move you from Redhat 5.0 to 5.1.  Of course, I also had other
individuals report that MPICH installed on their Redhat 5.1 system
with no problems - and no patches - at all.

In short... Redhat seems amazingly inconsistent, but if the patch
doesn't work outright, it is fairly simple to fix it yourself using
the information contained in the patch.

Many thanks to all that responded!

-Brian


In article <90952892510121@abacus.mcs.anl.gov>,
Rajeev Thakur <thakur@abacus.mcs.anl.gov> wrote:
>This error is due to an error in the include files in certain versions
>of Linux. One of our users sent the following patch. I haven't 
>tried using the patch myself, but if it works for you, let us know. 
>
>Rajeev
>
>
>--- romio/adio/common/ad_fstype.c~	Mon Jun 15 10:45:25 1998
>+++ romio/adio/common/ad_fstype.c	Tue Sep  8 22:59:52 1998
>@@ -11,7 +11,12 @@
> #endif
> #ifdef __LINUX
> #include <sys/vfs.h>
>+#include <linux/version.h>
>+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)
> #include <linux/nfs_fs.h>
>+#else
>+#define NFS_SUPER_MAGIC 0x6969
>+#endif
> #endif
> #ifdef __FREEBSD
> #include <sys/param.h>
>
>
>In article <71568l$en3@mozo.cc.purdue.edu>,
>Brian R. Jones <jonesbr@perihelion.ecn.purdue.edu> wrote:
>>I have been attempting to install MPICH 1.1.1 on a newly acquired
>>linux box running Redhat 5.1.  I have done this before on Solaris
>>and other versions of linux with no problems, but have been less
>>than successful with this newest version of Redhat.  It appears
>>that Redhat has started messing with the /usr/include files and
>>directory structure and this is causing the problems.  For the
>>record, I have tried this with gcc 2.7.x and 2.8.1 with the same
>>results.  I have already been in contact with the MPICH folks a
>>bit and we resolved one minor issue (summary: use -I. and not -I./)
>>but as my remaining problems appear to be Redhat related (and they
>>haven't responded yet) I figured I would tap a larger audience.
>>
>>Essentially, the compile dies with claims of syntax errors in the
>>include files.  I have checked them a bit and I didn't see any, so
>>it looks like a conflict between the standard /usr/include files
>>and the /usr/include/linux files that Redhat supplies - dueling
>>time.h files especially.  I tried hiding the /usr/include/linux
>>files, but MPICH apparently needs some of them for legitimate reasons
>>so that didn't work either.
>>
>>Has anyone faced this problem and beaten it?  Any tips would be much
>>appreciated!

