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
amdtest# cd /usr/src/
amdtest# patch -p3 < /u
unionfs6-p17.diff usr/
amdtest# patch -p3 < /unionfs6-p17.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sbin/mount_unionfs/Makefile
|================================================================== |RCS file:
/home/ncvs/src/sbin/mount_unionfs/Makefile,v
|retrieving revision 1.12
|diff -u -u -r1.12 Makefile
|--- /usr/src/sbin/mount_unionfs/Makefile 23 Feb 2004 20:13:54 -0000
1.12
|+++ /usr/src/sbin/mount_unionfs/Makefile 19 Jan 2007 03:41:24 -0000
--------------------------
Patching file sbin/mount_unionfs/Makefile using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 7.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sbin/mount_unionfs/mount_unionfs.8
|================================================================== |RCS file:
/home/ncvs/src/sbin/mount_unionfs/mount_unionfs.8,v
|retrieving revision 1.20
|diff -u -u -r1.20 mount_unionfs.8
|--- /usr/src/sbin/mount_unionfs/mount_unionfs.8 18 Jan 2005 10:09:36
-0000 1.20
|+++ /usr/src/sbin/mount_unionfs/mount_unionfs.8 19 Jan 2007 03:41:24
-0000
--------------------------
Patching file sbin/mount_unionfs/mount_unionfs.8 using Plan A...
Hunk #1 succeeded at 29.
Hunk #2 succeeded at 64.
Hunk #3 succeeded at 83.
Hunk #4 succeeded at 138.
Hunk #5 succeeded at 182.
Hunk #6 succeeded at 266.
Hunk #7 succeeded at 327.
Hunk #8 succeeded at 352.
Hunk #9 succeeded at 368.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sbin/mount_unionfs/mount_unionfs.c
|================================================================== |RCS file:
/home/ncvs/src/sbin/mount_unionfs/mount_unionfs.c,v
|retrieving revision 1.24
|diff -u -u -r1.24 mount_unionfs.c
|--- /usr/src/sbin/mount_unionfs/mount_unionfs.c 10 Jun 2005 09:51:43
-0000 1.24
|+++ /usr/src/sbin/mount_unionfs/mount_unionfs.c 19 Jan 2007 03:41:24
-0000
--------------------------
Patching file sbin/mount_unionfs/mount_unionfs.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 44.
Hunk #3 succeeded at 59.
Hunk #4 succeeded at 180.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/fs/unionfs/union.h
|================================================================== |RCS file:
/home/ncvs/src/sys/fs/unionfs/union.h,v
|retrieving revision 1.31
|diff -u -u -r1.31 union.h
|--- /usr/src/sys/fs/unionfs/union.h 6 Jan 2005 18:10:42 -0000 1.31
|+++ sys/fs/unionfs/union.h 19 Jan 2007 03:41:51 -0000
--------------------------
Patching file sys/fs/unionfs/union.h using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 33.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/fs/unionfs/union_subr.c
|================================================================== |RCS file:
/home/ncvs/src/sys/fs/unionfs/union_subr.c,v
|retrieving revision 1.86
|diff -u -u -r1.86 union_subr.c
|--- /usr/src/sys/fs/unionfs/union_subr.c 27 Apr 2005 09:06:06 -0000
1.86
|+++ /usr/src/sys/fs/unionfs/union_subr.c 19 Jan 2007 03:41:51 -0000
--------------------------
Patching file sys/fs/unionfs/union_subr.c using Plan A...
Hunk #1 succeeded at 2.
Hunk #2 succeeded at 33.
Hunk #3 succeeded at 659.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/fs/unionfs/union_vfsops.c
|================================================================== |RCS file:
/home/ncvs/src/sys/fs/unionfs/union_vfsops.c,v
|retrieving revision 1.76.2.1
|diff -u -u -r1.76.2.1 union_vfsops.c
|--- /usr/src/sys/fs/unionfs/union_vfsops.c 9 Oct 2006 19:47:15 -0000
1.76.2.1
|+++ /usr/src/sys/fs/unionfs/union_vfsops.c 19 Jan 2007 03:41:51 -0000
--------------------------
Patching file sys/fs/unionfs/union_vfsops.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 33.
Hunk #3 succeeded at 478.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/fs/unionfs/union_vnops.c
|================================================================== |RCS file:
/home/ncvs/src/sys/fs/unionfs/union_vnops.c,v
|retrieving revision 1.132
|diff -u -u -r1.132 union_vnops.c
|--- /usr/src/sys/fs/unionfs/union_vnops.c 3 May 2005 11:05:33 -0000
1.132
|+++ /usr/src/sys/fs/unionfs/union_vnops.c 19 Jan 2007 03:41:51 -0000
--------------------------
Patching file sys/fs/unionfs/union_vnops.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 34.
done
amdtest# cp /usr/src/sys/fs/unionfs/union.h /usr/include/fs/unionfs/
overwrite /usr/include/fs/unionfs/union.h? (y/n [n]) y
/usr/src/sys/fs/unionfs/union.h -> /usr/include/fs/unionfs/union.h
amdtest# cd /usr/src/sbin/mount_unionfs/
amdtest# make obj depend && make && make install
/usr/obj/usr/src/sbin/mount_unionfs created for /usr/src/sbin/mount_unionfs
rm -f .depend
mkdep -f .depend -a -I/usr/src/sbin/mount_unionfs/../mount mount_unionfs.c
/usr/src/sbin/mount_unionfs/../mount/getmntopts.c
echo mount_unionfs: /usr/lib/libc.a >> .depend
cc -O2 -fno-strict-aliasing -pipe -I/usr/src/sbin/mount_unionfs/../mount
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -c
/usr/src/sbin/mount_unionfs/mount_unionfs.c
/usr/src/sbin/mount_unionfs/mount_unionfs.c: In function `main':
/usr/src/sbin/mount_unionfs/mount_unionfs.c:163: warning: overflow in implicit
constant conversion
/usr/src/sbin/mount_unionfs/mount_unionfs.c:185: warning: overflow in implicit
constant conversion
/usr/src/sbin/mount_unionfs/mount_unionfs.c:186: warning: overflow in implicit
constant conversion
/usr/src/sbin/mount_unionfs/mount_unionfs.c:187: warning: overflow in implicit
constant conversion
*** Error code 1
Stop in /usr/src/sbin/mount_unionfs.
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.
cheers,
elan
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.