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 [EMAIL PROTECTED]:/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
--- 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))
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"