LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Rajeev Thakur (thakur_at_[hidden])
Date: 2005-05-19 11:16:01


Jeff,
     I just untarred a fresh version of LAM 7.1.1 and ran emacs on
romio/configure. Lines 4304 to 4382, which I am including below, are indeed
the ones to be deleted. They don't appear to be in the middle of logic
blocks, unless I am mistaken.

Rajeev

> Date: Thu, 19 May 2005 12:02:16 -0400
> From: Jeff Squyres <jsquyres_at_[hidden]>
> Subject: Re: LAM: RE: Configuring ROMIO problem
> To: General LAM/MPI mailing list <lam_at_[hidden]>
> Message-ID: <592f34d0cdc9fbb532105b16312a5bb4_at_[hidden]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Rajeev --
>
> I'm interested in fixing this in the LAM code base so that
> future users
> don't have this problem. Those line numbers for me seem to be in the
> middle of logic blocks -- can you confirm that [4304, 4382] are the
> correct line numbers for the ROMIO configure that ships with LAM/MPI?
>
> Thanks!
>
>
> On May 18, 2005, at 1:42 PM, Rajeev Thakur wrote:
> >
> > Rossen,
> > You need to delete lines 4304--4382 (both included). I just
> > deleted
> > them, ran configure in the top-level directory, and it created a
> > Makefile in
> > the romio directory.
> >
> > Rajeev
> >
> >> Date: Wed, 18 May 2005 19:36:03 +0900
> >> From: Rossen Apostolov <rpa_at_[hidden]>
> >> Subject: LAM: Re: Configuring ROMIO problem
> >> To: lam_at_[hidden]
> >> Message-ID: <428B1A93.6030002_at_[hidden]>
> >> Content-Type: text/plain; charset=ISO-2022-JP
> >>
> >> I had the problem configuring ROMIO described here
> >> http://www.lam-mpi.org/MailArchives/lam/2005/05/10455.php ,
> >> i.e. the configure script gets stuck when performing
> >> checks for lockd.
> >> I uncommented the corresponding lines 4307~4378 ( for lam-7.0.6),
> >> as Rajeev recommened, and configuration passed.
> >>
> >> But then make failed saying
> >> ......
> >> make[2]: Entering directory
> `/misc/home/pi/rossen/src/lam-7.1.1/romio'
> >> make[2]: *** No targets specified and no makefile found. Stop.
> >> ...........
> >> Same for lam-7.1.1.
> >>
> >> So, disabling the lockd checks resulted in skipping
> configuration for
> >> ROMIO altogether...? How can this be fixed?
> >>
> >> Thanks,
> >> Rossen

Lines to be deleted:

if test -n "$file_system_nfs" ; then
   # Check for problems with locks
   if test -z "$ac_echo_n" ; then
ac_echo_n=yes
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t=' '
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
# This does not work on OpenBSD, and causes Badness later. It's not
#necessary at all, so just skip it.
#ac_echo_test=`echo foo 1>&1`
#if test -z "$ac_echo_test" ; then
# print_error "Your sh shell does not handle the output redirection"
# print_error "1>&1 correctly. Configure will work around this
problem,"
# print_error "but you should report the problem to your vendor."
#fi
ac_echo_test=

fi
if test -z "$ac_echo_test" -a 1 = 1 ; then
echo $ac_n "checking whether file locks work with NFS""... $ac_c"
else
echo $ac_n "checking whether file locks work with NFS""... $ac_c" 1>&1
fi
   cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"

#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

int main()
{
    struct flock lock;
    int fd, err;

    lock.l_type = F_WRLCK;
    lock.l_start = 0;
    lock.l_whence = SEEK_SET;
    lock.l_len = 100;

    fd = open("conftest.dat", O_RDWR | O_CREAT, 0644);

    err = fcntl(fd, F_SETLKW, &lock);

   /* printf("err = %d, errno = %d\n", err, errno); */
    close(fd);
    return err;
}
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  nfs_locks_work=yes

else
  nfs_locks_work=no
fi
rm -fr conftest*
    if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""$nfs_locks_work"
else
echo "$ac_t""$nfs_locks_work" 1>&1
fi
    if test "$nfs_locks_work" != "yes" ; then
        if test -z "$ac_echo_test" -a 1 = 1 ; then
echo "$ac_t""Warning: File locks do not work with NFS. See the Installation
and
users manual for instructions on fixing this"
else
echo "$ac_t""Warning: File locks do not work with NFS. See the Installation
and
users manual for instructions on fixing this" 1>&1
fi
    fi
fi