ports/160608: sysutils/fusefs-kmod fails to build on amd64
Kevin Oberman
kob6558 at gmail.com
Sat Sep 10 03:50:10 UTC 2011
>Number: 160608
>Category: ports
>Synopsis: sysutils/fusefs-kmod fails to build on amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 10 03:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Kevin Oberman
>Release: Current (9.0-Beta2)
>Organization:
>Environment:
FreeBSD rogue.local 9.0-BETA2 FreeBSD 9.0-BETA2 #9: Thu Sep 8 20:53:55 PDT 2011 root at rogue.local:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Building of the fusefs-kmod port failed in fuse_modules/fuse_vfsops.c due to an incorrect typing of the third argument of calls to vfs_flagopt. It the variables 'mntopts and __mntopts are declared to be int when vfs_flagopt expects uint64_t.
fuse_vfsops.c: In function 'fuse_mount':
fuse_vfsops.c:339: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:339: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:340: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:340: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:341: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:341: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:342: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:342: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:343: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
fuse_vfsops.c:343: warning: passing argument 3 of 'vfs_flagopt' from incompatible pointer type
Proposed fix may not be correct, but it did allow the port to build. Perhaps a cast would have been the right answer.
>How-To-Repeat:
cd /usr/ports/sysutils/fusefs-kmod && make
>Fix:
--- fuse_vfsops.c.broken 2011-09-09 20:43:36.000000000 -0700
+++ fuse_vfsops.c 2011-09-09 20:44:32.000000000 -0700
@@ -231,7 +231,8 @@
struct cdev *fdev;
struct sx *slock;
struct fuse_data *data;
- int mntopts = 0, __mntopts = 0, max_read_set = 0, secondary = 0;
+ uint64_t mntopts = 0, __mntopts = 0;
+ int max_read_set = 0, secondary = 0;
unsigned max_read = ~0;
struct vnode *rvp;
struct fuse_vnode_data *fvdat;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list