Hello,

I'm running 6.x i386 and am having a problem with "make" and symlinks.
 In this case, I'm exporting /usr/src and /usr/obj from an NFS server.
 The box in question has the NFS exports defined in fstab:

fs:/usr/src /mnt/src nfs -3,-R=3,-b,-i,-s,-r=32768,-w=32768,rw,noauto 
  fs:/usr/obj /mnt/obj nfs
-3,-R=3,-b,-i,-s,-r=32768,-w=32768,rw,noauto

and in amd.map

localhost/src  type:=program;fs:=/mnt/src;\
               mount:="/sbin/mount mount /mnt/src";\
               unmount:="/sbin/umount umount /mnt/src"

localhost/obj  type:=program;fs:=/mnt/obj;\
               mount:="/sbin/mount mount /mnt/obj";\
               unmount:="/sbin/umount umount /mnt/obj"

When one peeks in /usr:

# ls -l /usr
lrwxr-xr-x   1 root  wheel 19 Apr 18 00:58 obj -> /host/localhost/obj
lrwxr-xr-x   1 root  wheel 19 Apr 18 00:58 src -> /host/localhost/src


I can "cd" to the directories and everything mounts/umounts fine.  The
problem is with make installkernel.  I cd /usr/src and type:

# make installkernel KERNCONF=FIREWALL
--------------------------------------------------------------
>>> Installing kernel
--------------------------------------------------------------
cd /usr/obj/mnt/src/sys/FIREWALL;  MAKEOBJDIRPREFIX=/usr/obj 
MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE= 
GROFF_BIN_PATH=/usr/obj/mnt/src/tmp/legacy/usr/bin 
GROFF_FONT_PATH=/usr/obj/mnt/src/tmp/legacy/usr/share/groff_font 
GROFF_TMAC_PATH=/usr/obj/mnt/src/tmp/legacy/usr/share/tmac
PATH=/usr/obj/mnt/src/tmp/legacy/usr/sbin:/usr/obj/mnt/src/tmp/legacy/usr/bin:/usr/obj/mnt/src/tmp/legacy/usr/games:/usr/obj/mnt/src/tmp/usr/sbin:/usr/obj/mnt/src/tmp/usr/bin:/usr/obj/mnt/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 make KERNEL=kernel install
cd: can't cd to /usr/obj/mnt/src/sys/FIREWALL
*** Error code 2


Notice how the path has somehow been mangled to include "mnt/src/"? 
Does anyone know how I can get make and the automouter to play nicely?
Many thanks for your assistance.


-- 
Regards,
Doug

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to