Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2012 19:04:27 +0300
From:      Ivan Klymenko <fidaj@ukr.net>
To:        AN <andy@neu.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: fusefs-kmod-0.3.9.p1.20080208_9 install fails
Message-ID:  <20120507190427.0df0ac2a@nonamehost.>
In-Reply-To: <alpine.BSF.2.00.1205061957380.32224@mail.neu.net>
References:  <alpine.BSF.2.00.1205061957380.32224@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 Sun, 6 May 2012 20:01:04 -0400 (EDT)
AN <andy@neu.net> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:

> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #15 r234992: Fri
> May  4 01:09:16 EDT 2012
> root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64
>=20
> # cd /usr/ports/sysutils/fusefs-kmod/ && make install clean
> =3D=3D=3D>  Building for fusefs-kmod-0.3.9.p1.20080208_9
> =3D=3D=3D> fuse_module (all)
> Warning: Object directory not changed from original=20
> /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0/fuse_module
> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE
> -nostdinc -I../include -I. -I@ -I@/contrib/altq -finline-limit=3D8000
> --param inline-unit-growth=3D100 --param large-function-growth=3D1000
> -fno-common -fno-omit-frame-pointer  -mcmodel=3Dkernel -mno-red-zone
> -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
> -ffreestanding -fstack-protector -std=3Diso9899:1999 -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes=20
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef=20
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs=20
> -fdiagnostics-show-option   -c fuse_vnops.c
> fuse_vnops.c: In function 'fuse_inactive':
> fuse_vnops.c:666: error: too many arguments to function 'vrecycle'
> *** [fuse_vnops.o] Error code 1
>=20
> Stop in=20
> /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0/fuse_module.
> *** [all] Error code 1
>=20
> Stop in /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0.
> *** [do-build] Error code 1
>=20
> Stop in /usr/ports/sysutils/fusefs-kmod.
> *** [install] Error code 1
>=20
> Stop in /usr/ports/sysutils/fusefs-kmod.
>=20
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to
> "freebsd-ports-unsubscribe@freebsd.org"
>=20
>=20

You need to replace this file:
/usr/ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c

the following content:
--- fuse_module/fuse_vnops.c.orig	2008-02-05 07:25:57.000000000 +0200
+++ fuse_module/fuse_vnops.c	2012-04-29 11:29:04.000000000 +0300
@@ -663,7 +663,7 @@
 	if ((err =3D fuse_recyc_backend(vp, td)))
 		return err;
=20
-	vrecycle(vp, td);
+	vrecycle(vp);
=20
 	return (0);
 }
@@ -799,8 +799,11 @@
 	struct vnode *vp =3D ap->a_vp;
 	struct vattr *vap =3D ap->a_vap;
 	struct ucred *cred =3D ap->a_cred;
+#if VOP_GETATTR_TAKES_THREAD
 	struct thread *td =3D ap->a_td;
-
+#else
+	struct thread *td =3D curthread;
+#endif
 	struct fuse_dispatcher fdi;
 	struct timespec uptsp;
 	int err =3D 0;
@@ -871,7 +874,11 @@
 fuse_access(ap)
 	struct vop_access_args /* {
 		struct vnode *a_vp;
+#if VOP_ACCESS_TAKES_ACCMODE_T
+		accmode_t a_accmode;
+#else
 		int a_mode;
+#endif
 		struct ucred *a_cred;
 		struct thread *a_td;
 	} */ *ap;
@@ -886,7 +893,13 @@
 	else
 		facp.facc_flags |=3D FACCESS_DO_ACCESS;
=20
-	return fuse_access_i(vp, ap->a_mode, ap->a_cred, ap->a_td, &facp);
+	return fuse_access_i(vp,
+#if VOP_ACCESS_TAKES_ACCMODE_T
+	    ap->a_accmode,
+#else
+	    ap->a_mode,
+#endif
+	    ap->a_cred, ap->a_td, &facp);
 }
=20
 /*
@@ -946,7 +959,11 @@
 		/* We are to do the check in-kernel */
=20
 		if (! (facp->facc_flags & FACCESS_VA_VALID)) {
-			err =3D VOP_GETATTR(vp, VTOVA(vp), cred, td);
+			err =3D VOP_GETATTR(vp, VTOVA(vp), cred
+#if VOP_GETATTR_TAKES_THREAD
+			    , td
+#endif
+			    );
 			if (err)
 				return (err);
 			facp->facc_flags |=3D FACCESS_VA_VALID;
@@ -1929,7 +1946,11 @@
 		 * It will not invalidate pages which are dirty, locked, under
 		 * writeback or mapped into pagetables.")=20
 		 */
+#if VOP_GETATTR_TAKES_THREAD
 		err =3D vinvalbuf(vp, 0, td, PCATCH, 0);
+#else
+		err =3D vinvalbuf(vp, 0, PCATCH, 0);
+#endif
 		fufh->flags |=3D FOPEN_KEEP_CACHE;
 	}
=20
@@ -3005,8 +3026,11 @@
 	struct vattr *vap =3D ap->a_vap;
 	struct vnode *vp =3D ap->a_vp;
 	struct ucred *cred =3D ap->a_cred;
+#if VOP_GETATTR_TAKES_THREAD
 	struct thread *td =3D ap->a_td;
-
+#else
+	struct thread *td =3D curthread;
+#endif
 	int err =3D 0;
 	struct fuse_dispatcher fdi;
 	struct fuse_setattr_in *fsai;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120507190427.0df0ac2a>