From owner-freebsd-stable@FreeBSD.ORG Fri Mar 23 06:08:47 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8338A16A401 for ; Fri, 23 Mar 2007 06:08:47 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.232.58]) by mx1.freebsd.org (Postfix) with ESMTP id 48B5913C4BF for ; Fri, 23 Mar 2007 06:08:47 +0000 (UTC) (envelope-from daichi@freebsd.org) Received: from [192.168.1.101] (dullmdaler.ongs.co.jp [202.216.232.62]) by natial.ongs.co.jp (Postfix) with ESMTP id F31B6244C19; Fri, 23 Mar 2007 14:46:37 +0900 (JST) Message-ID: <460369BD.3060005@freebsd.org> Date: Fri, 23 Mar 2007 14:46:37 +0900 From: Daichi GOTO User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Elan Marikit References: <51000.68360.qm@web38505.mail.mud.yahoo.com> In-Reply-To: <51000.68360.qm@web38505.mail.mud.yahoo.com> Content-Type: multipart/mixed; boundary="------------050409010907000503010600" Cc: freebsd-stable@freebsd.org, Masanori OZAWA Subject: Re: 6.2-amd64-unionfs6-p17: compilation error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 06:08:47 -0000 This is a multi-part message in MIME format. --------------050409010907000503010600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Elan Marikit wrote: > Greetz Daichi, List! > > I had a clean 6.2p2 src and I encounter error in compiling unionfs6-p17. > > amdtest# uname -a > FreeBSD amdtest.XXXXXXXXXXXX 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #0: > Thu Mar 1 16:56:53 PHT 2007 root@XXXXXX:/usr/obj/usr/src/sys/ELAN > amd64 (snip) > Is there any workaround to make this works? or am I missing something > before compiling? > > I made the same thing in i386 arch, and it works fine. > > Thanks and FYI. Try attached patch for amd64 :) NOTICE: attached patch is for amd64 only. -- Daichi GOTO, http://people.freebsd.org/~daichi --------------050409010907000503010600 Content-Type: text/x-patch; name="mount_unionfs.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mount_unionfs.c.diff" --- mount_unionfs.c.orig Fri Mar 23 14:30:52 2007 +++ mount_unionfs.c Fri Mar 23 14:30:21 2007 @@ -160,7 +160,7 @@ val = uid_str; } } - build_iovec(&iov, &iovlen, optarg, val, (size_t)-1); + build_iovec(&iov, &iovlen, optarg, val, -1); break; case '?': default: @@ -182,9 +182,9 @@ errx(EX_USAGE, "%s (%s) and %s (%s) are not distinct paths", argv[0], target, argv[1], source); - build_iovec(&iov, &iovlen, "fstype", "unionfs", (size_t)-1); - build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1); - build_iovec(&iov, &iovlen, "from", target, (size_t)-1); + build_iovec(&iov, &iovlen, "fstype", "unionfs", -1); + build_iovec(&iov, &iovlen, "fspath", source, -1); + build_iovec(&iov, &iovlen, "from", target, -1); build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); if (nmount(iov, iovlen, mntflags)) --------------050409010907000503010600--