On Sat, 30 Jul 2005 21:24:15 -0700, "J.C. Roberts" <[EMAIL PROTECTED]>
wrote:

>On Sat, 30 Jul 2005 20:46:56 -0500, <[EMAIL PROTECTED]> wrote:
>
>>when i try to build MPICH2, i can successfully configure the
>>source, but the make yields the following error:
>>
>>...
>>compiling ROMIO in directory adio/common
>>gcc -I/home/X/mpich2-1.0.2p1/src/binding/f77
>>-I/home/X/mpich2-1.0.2p1/src/binding/f77
>>-I/home/X/mpich2-1.0.2p1/src/mpid/ch3/include
>>-I/home/X/mpich2-1.0.2p1/src/mpid/ch3/include
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/datatype
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/datatype
>>-I/home/X/mpich2-1.0.2p1/src/mpid/ch3/channels/sock/include
>>-I/home/X/mpich2-1.0.2p1/src/mpid/ch3/channels/sock/include
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/sock
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/sock
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/sock/poll
>>-I/home/X/mpich2-1.0.2p1/src/mpid/common/sock/poll  -O
>>-DFORTRANDOUBLEUNDERSCORE -DHAVE_ROMIOCONF_H -I.
>>-I/home/X/mpich2-1.0.2p1/src/mpi/romio/adio/common/../include
>>-I../include  -I../../include
>>-I/home/X/mpich2-1.0.2p1/src/mpi/romio/adio/common/../../../../../src/include
>> -I../../../../../src/include  -c ad_fstype.c
>>ad_fstype.c: In function `ADIO_FileSysType_fncall':
>>ad_fstype.c:306: error: structure has no member named `f_type'
>>ad_fstype.c:320: error: structure has no member named `f_type'
>>*** Error code 1
>>
>>Stop in /home/X/mpich2-1.0.2p1/src/mpi/romio/adio/common.
>>*** Error code 1
>>...
>>

I was sent the following off list by another user and figured it would
be helpful. I have not tested it myself.

JCR

----------------------------------------------------------------------

The statfs structure doesn't have f_type anymore (see man 2 statfs and
/usr/include/sys/mount.h). For a quick hack, edit ad_fstype.c and
replace f_type with f_fstypename in lines 306 and 320. The file should
make it through the compiler than (I tested this on 3.7, x86
architecture).

$ diff -u ad_fstype.c.orig ad_fstype.c
--- ad_fstype.c.orig    Sun Jul 31 00:26:33 2005
+++ ad_fstype.c Sun Jul 31 00:29:36 2005
@@ -303,7 +303,7 @@
 # endif
     /* FPRINTF(stderr, "%d\n", fsbuf.f_type);*/
 # ifdef NFS_SUPER_MAGIC
-    if (fsbuf.f_type == NFS_SUPER_MAGIC) {
+    if (fsbuf.f_fstypename == NFS_SUPER_MAGIC) {
        *fstype = ADIO_NFS;
        return;
     }
@@ -317,7 +317,7 @@
 # endif
 
 # ifdef MOUNT_NFS
-    if (fsbuf.f_type == MOUNT_NFS) {
+    if (fsbuf.f_fstypename == MOUNT_NFS) {
        *fstype = ADIO_NFS;
        return;
     }

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Reply via email to