From: thakur@abacus.mcs.anl.gov (Rajeev Thakur) Newsgroups: comp.parallel.mpi Subject: Re: [Q] MPICH 1.1.1 install problems on Redhat 5.1 Date: Tue, 27 Oct 1998 22:55:25 GMT Organization: MCS, Argonne National Laboratory Message-Id: <90952892510121@abacus.mcs.anl.gov> References: <71568l$en3@mozo.cc.purdue.edu> 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 +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) #include +#else +#define NFS_SUPER_MAGIC 0x6969 +#endif #endif #ifdef __FREEBSD #include In article <71568l$en3@mozo.cc.purdue.edu>, Brian R. Jones 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! > >-Brian > > >Here is part of the last fraction of my make log in case it proves >informative: > > >/home/users/jonesbr/src/mpich/bin/mpicc -D__LINUX -O -D__NO_AIO -DFORTRANDOUBLEUNDERSCORE -D__NFS -D__UFS -D__NEEDS_MPI_TEST -D__MPICH -D__HAVE_LONG_LONG_64=1 -D__HAVE_MPI_LONG_LONG_INT=1 -D__HAS_MPI_INFO=1 -D__HAS_MPI_DARRAY_SUBARRAY=1 -I/home/users/jonesbr/src/mpich/include -I../../include -I../include -c ad_fstype.c >In file included from /usr/include/linux/sched.h:69, > from /usr/include/linux/nfs_fs.h:13, from ad_fstype.c:14: >/usr/include/linux/time.h:59: warning: `FD_SET' redefined/usr/include/sys/select.h:60: warning: this is the location of the previous definition/usr/include/linux/time.h:60: warning: `FD_CLR' redefined >/usr/include/sys/select.h:61: warning: this is the location of the previous definition/usr/include/linux/time.h:61: warning: `FD_ISSET' redefined/usr/include/sys/select.h:62: warning: this is the location of the previous definition/usr/include/linux/time.h:62: warning: `FD_ZERO' redefined/usr/include/sys/select.h:63: warning: this is the location of the previous definitionIn file included from /usr/include/linux/signal.h:5, > from /usr/include/linux/nfs_fs.h:12, from ad_fstype.c:14:/usr/include/asm/siginfo.h:48: parse error before `clock_t'/usr/include/asm/siginfo.h:48: warning: no semicolon at end of struct or union/usr/include/asm/siginfo.h:48: warning: no semicolon at end of struct or union/usr/include/asm/siginfo.h:49: warning: no semicolon at end of struct or union >/usr/include/asm/siginfo.h:50: warning: data definition has no type or storage class >/usr/include/asm/siginfo.h:62: parse error before `}'/usr/include/asm/siginfo.h:62: warning: data definition has no type or storage class/usr/include/asm/siginfo.h:63: parse error before `}'/usr/include/asm/siginfo.h:63: warning: data definition has no type or storage class >In file included from /usr/include/linux/vfs.h:4, > from /usr/include/linux/fs.h:14, > from /usr/include/linux/capability.h:13, from /usr/include/linux/binfmts.h:5, from /usr/include/linux/sched.h:8, from /usr/include/linux/nfs_fs.h:13, from ad_fstype.c:14: >/usr/include/asm/statfs.h:12: redefinition of `struct statfs' >In file included from /usr/include/linux/sched.h:13, > from /usr/include/linux/nfs_fs.h:13, > from ad_fstype.c:14:/usr/include/linux/times.h:5: parse error before `clock_t'/usr/include/linux/times.h:5: warning: no semicolon at end of struct or union >/usr/include/linux/times.h:6: warning: data definition has no type or storage class >/usr/include/linux/times.h:7: parse error before `tms_cutime' >/usr/include/linux/times.h:7: warning: data definition has no type or storage class/usr/include/linux/times.h:8: parse error before `tms_cstime' >/usr/include/linux/times.h:8: warning: data definition has no type or storage class >In file included from /usr/include/linux/sched.h:69, > from /usr/include/linux/nfs_fs.h:13, > from ad_fstype.c:14: