Date: Fri, 23 Mar 2007 14:46:37 +0900 From: Daichi GOTO <daichi@freebsd.org> To: Elan Marikit <elan619xi@yahoo.com> Cc: freebsd-stable@freebsd.org, Masanori OZAWA <ozawa@ongs.co.jp> Subject: Re: 6.2-amd64-unionfs6-p17: compilation error Message-ID: <460369BD.3060005@freebsd.org> In-Reply-To: <51000.68360.qm@web38505.mail.mud.yahoo.com> References: <51000.68360.qm@web38505.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?460369BD.3060005>