Subject: Compiling over NFS.
To: None <tech-pkg@netbsd.org>
From: Juan RP <jrp@hispabsd.org>
List: tech-pkg
Date: 03/15/2003 17:19:28
Hi folks, I'm having some problems compiling packages
over a NFS ( pkgsrc mostly, src too ). 

For example, mozilla fails when it is installing the files
( install target ) and kdebase3 too.


===> Buildlinking for kdebase-3.1
lafile="/usr/pkgsrc/x11/kdebase3/work/.buildlink/lib/libpthread.la";            
        libpattern="/usr/lib/libpthread.*";     if [ ! -f $lafile ]; then       
                          case ELF in                                    
Mach-O) _lib=`/bin/ls -1 $libpattern 2>/dev/null | /usr/bin/head -1` ;;  *)     
_lib=`/bin/ls -1r $libpattern 2>/dev/null | /usr/bin/head -1` ;;  esac;         
                                         if [ -n "$_lib" ]; then                
           true "Creating libtool archive: $lafile"; 
/usr/pkgsrc/x11/kdebase3/work/.buildlink/bin/.fake-la $_lib > $lafile;         
fi;                                                     fi
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/kdebase3
*** Error code 1

I have PKG_VERBOSE set in mk.conf. 
Is there another way to debug this problem better and
know why it fails ? 

My mount | grep nfs shows that ( client ):

Redemption:/usr/src on /usr/src type nfs
Redemption:/usr/xsrc on /usr/xsrc type nfs
Redemption:/usr/pkgsrc on /usr/pkgsrc type nfs
Redemption:/rescue on /rescue type nfs
Redemption:/home/juan/varios on /home/juan/varios type nfs

fstab's client:

Redemption:/usr/src /usr/src nfs rw,-T,-b 0 0
Redemption:/usr/xsrc /usr/xsrc nfs rw,-T,-b 0 0
Redemption:/usr/pkgsrc /usr/pkgsrc nfs rw,-T,-b 0 0
Redemption:/rescue /rescue nfs rw,-T,-b 0 0
Redemption:/home/juan/varios /home/juan/varios nfs rw,-T,-b 0 0


uname's from my server:
NetBSD Redemption 1.6P NetBSD 1.6P ($Redemption-2003-03-09$) #0: Sun Mar  9
14:16:01 CET 2003  root@redemption:/usr/obj/sys/arch/i386/compile/Redemption
i386

uname's from my client:
NetBSD Masquerade 1.6P NetBSD 1.6P ($Masquerade-2003-03-15$) #2: Sat Mar 15
08:18:34 CET 2003  root@Masquerade:/usr/obj/sys/arch/i386/compile/Masquerade
i386

I have set vfs.nfs.iothreads=4 on the client.

Is there any problem compiling packages over NFS ? 
How can I debug this problem to fix it ?

Thank you!

-- 
Juan RP		jrp@hispabsd.org
--