GNU Make cannot find Makefile when using a mounted NFS drive

asked 2013-04-21 06:08:11 -0500

Jimbo gravatar image

updated 2013-04-23 07:26:07 -0500

FranciscoD_ gravatar image

This concerns a multi server setup and GNU Make having issues with an NFS mount on from a particular server but not from another server.

First the actual problem.

I am using GNU Make 3.74 ( yes I know it is old but it is part of a development environement supporting some old vxworks code). If I put a simple Makefile and build script into a local directory or my home directory (NFS mounted), the GNU Make finds the Makefile without any problems. If I put the same files on another NFS mounted directory from a different machine then it cannot find the Makefile. ( Output at end of description ). Using Solaris make does not have this problem. Could it be NFS permission or GNU make path problem. Using ls, edit or other programmes can use the Makefile.

Environment.

I have 3 servers connected together. Serv_A - Fedora 16 Login server running DHCP,NIS,SAMBA,DNS,NFS and contains the HOME drive which is exported. Serv_B - Fedora 16 Data server running Samba,NFS and exporting the Development_data directory. Serv_C - Solaris 5.9 server running SAMBA,NFS and containing the GNU Make programme used. Serv_C is the development machine which is logged in contain the development tools used for the SW development environment. Serv_C and Serv_B use Serv_A as the authentication master. When logged into Serv_C, moving to a directory HOME ( which is mounted via NFS from Serv_A ) compiling works. When logged into Serv_C, moving to a directory DEV_DATA ( which is mounted via NFS from Serv_B ) compiling does NOT work. Files for yp.bind,nsswitch,resolv.conf,hosts,fstab (vfstab on Solaris) are identical ( or as much as possible for Solaris /Linux differences. Serv_B is completely up to date with all standard Fedora 16 updates ( this is that machine that does not work) Serv_A is not up to date. 1 year ago the setup worked fine but has not been used for more than 6 months. Problem started when it was all put back together.

Log output.

Using a Login Console on Server B

Within the HOME directory mounted via NFS from Server A

beattie@sdukserv03> maketest
Setting environment variables...
End of setting environment variables
Created environment
/tools/tornado/t2_bstrx/host/sun4-solaris2/bin/make
Trying make realclean
GNU Make version 3.74 (vpath+), by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

make: Entering directory `/home/beattie/Btest'
Reading makefiles...
Reading makefile `Makefile'...
Updating makefiles....
 Considering target file `Makefile'.
  Looking for an implicit rule for `Makefile'.
  No implicit rule found for `Makefile'.
  Finished dependencies of target file `Makefile'.
 No need to remake target `Makefile'.
Updating goal targets....
Considering target file `realclean'.
 File `realclean' does not exist.
 Finished dependencies of target file `realclean'.
Must remake target `realclean'.
echo "Real Clean invoked!!"
Successfully remade target file `realclean'.
make: Leaving directory ...
(more)
edit retag flag offensive close merge delete