From owner-freebsd-questions@FreeBSD.ORG Mon Apr 24 19:47:07 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07B2816A402 for ; Mon, 24 Apr 2006 19:47:07 +0000 (UTC) (envelope-from doug@polands.org) Received: from corinth.polands.org (CPE-72-129-222-120.new.res.rr.com [72.129.222.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78AA243D49 for ; Mon, 24 Apr 2006 19:47:05 +0000 (GMT) (envelope-from doug@polands.org) Received: from email.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.4/8.13.4) with ESMTP id k3OJl4LB044360 for ; Mon, 24 Apr 2006 14:47:04 -0500 (CDT) (envelope-from doug@polands.org) Received: from 209.103.215.99 (proxying for 209.103.215.99) (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Mon, 24 Apr 2006 14:47:04 -0500 (CDT) Message-ID: <59944.209.103.215.99.1145908024.squirrel@email.polands.org> Date: Mon, 24 Apr 2006 14:47:04 -0500 (CDT) From: "Doug Poland" To: questions@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.87/1424/Mon Apr 24 09:39:06 2006 on corinth.polands.org X-Virus-Status: Clean Cc: Subject: make installkernel confused by automounter and symlinks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 19:47:07 -0000 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