Re: FUSE not work.

From: Nikolai Lifanov <lifanov_at_mail.lifanov.com>
Date: Fri, 19 Jul 2013 12:24:54 -0400
On 07/19/13 11:29, Alexander Panyushkin wrote:
> 19.07.2013 17:36, Pedro Giffuni пишет:
>> Hello;
>>
>> The internal data structures in the FUSE kernel module have been
>> updated to be more compatible with MacFUSE and the linux FUSE.
>>
>> This basically measn you have to rebuild your fuse modules
>> (including NTFS).
>>
>> We should not really update the FUSE_KERNEL_MINOR_VERSION yet.
>> I will add a note to UPDATING.
>>
>> Pedro.
>
>
>
> Unfortunately the port is not  build in FreeBSD 10
>
>
> ===>>> Starting build for sysutils/fusefs-kmod <<<===
>
> ===>>> All dependencies are up to date
>
> ===>  Cleaning for fusefs-kmod-0.3.9.p1.20080208_11
> ===>  Found saved configuration for fusefs-kmod-0.3.9.p1.20080208_11
> ===> Fetching all distfiles required by fusefs-kmod-0.3.9.p1.20080208_11
> for building
> ===>  Extracting for fusefs-kmod-0.3.9.p1.20080208_11
> => SHA256 Checksum OK for fuse4bsd/498acaef33b0.tar.gz.
> ===>  Patching for fusefs-kmod-0.3.9.p1.20080208_11
> ===>  Applying extra patch
> /usr/ports/sysutils/fusefs-kmod/files/extra-patch-fuse_module__fuse_vnops.c
> ===>  Applying extra patch
> /usr/ports/sysutils/fusefs-kmod/files/extrapatch-fuse_module__fuse_vnops.c
> ===>  Applying FreeBSD patches for fusefs-kmod-0.3.9.p1.20080208_11
> ===>   fusefs-kmod-0.3.9.p1.20080208_11 depends on package:
> fusefs-libs>2.4.1 - found
> ===>   fusefs-kmod-0.3.9.p1.20080208_11 depends on executable: deplate -
> found
> ===>  Configuring for fusefs-kmod-0.3.9.p1.20080208_11
> ===>  Building for fusefs-kmod-0.3.9.p1.20080208_11
> ===> fuse_module (all)
> Warning: Object directory not changed from original
> /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0/fuse_module
> _at_ -> /usr/src/sys
> machine -> /usr/src/sys/amd64/include
> x86 -> /usr/src/sys/x86/include
> awk -f _at_/tools/vnode_if.awk _at_/kern/vnode_if.src -p
> awk -f _at_/tools/vnode_if.awk _at_/kern/vnode_if.src -q
> awk -f _at_/tools/vnode_if.awk _at_/kern/vnode_if.src -h
> cc -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe
> -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security
> -D_KERNEL -DKLD_MODULE -nostdinc  -I../include -I. -I_at_ -I_at_/contrib/altq
> -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse
> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option  -Wno-error-tautological-compare
> -Wno-error-empty-body  -Wno-error-parentheses-equality  -c fuse_main.c
> cc -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe
> -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security
> -D_KERNEL -DKLD_MODULE -nostdinc  -I../include -I. -I_at_ -I_at_/contrib/altq
> -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse
> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option  -Wno-error-tautological-compare
> -Wno-error-empty-body  -Wno-error-parentheses-equality  -c fuse_msg.c
> cc -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe
> -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security
> -D_KERNEL -DKLD_MODULE -nostdinc  -I../include -I. -I_at_ -I_at_/contrib/altq
> -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse
> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option  -Wno-error-tautological-compare
> -Wno-error-empty-body  -Wno-error-parentheses-equality  -c fuse_dev.c
> cc -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe
> -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security
> -D_KERNEL -DKLD_MODULE -nostdinc  -I../include -I. -I_at_ -I_at_/contrib/altq
> -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse
> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option  -Wno-error-tautological-compare
> -Wno-error-empty-body  -Wno-error-parentheses-equality  -c fuse_vfsops.c
> cc -Oz -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe
> -Qunused-arguments -Qunused-parameter -Wformat -Wformat-security
> -D_KERNEL -DKLD_MODULE -nostdinc  -I../include -I. -I_at_ -I_at_/contrib/altq
> -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse
> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option  -Wno-error-tautological-compare
> -Wno-error-empty-body  -Wno-error-parentheses-equality  -c fuse_vnops.c
> In file included from fuse_vnops.c:36:
> _at_/vm/vm_pager.h:126:2: warning: implicit declaration of function
> 'rw_assert' is invalid in C99 [-Wimplicit-function-declaration]
>          VM_OBJECT_ASSERT_WLOCKED(object);
>          ^
> _at_/vm/vm_object.h:226:2: note: expanded from macro
> 'VM_OBJECT_ASSERT_WLOCKED'
>          rw_assert(&(object)->lock, RA_WLOCKED)
>          ^
> In file included from fuse_vnops.c:36:
> _at_/vm/vm_pager.h:126:2: error: use of undeclared identifier 'RA_WLOCKED'
> _at_/vm/vm_object.h:226:29: note: expanded from macro
> 'VM_OBJECT_ASSERT_WLOCKED'
>          rw_assert(&(object)->lock, RA_WLOCKED)
>                                     ^
> In file included from fuse_vnops.c:36:
> _at_/vm/vm_pager.h:143:2: error: use of undeclared identifier 'RA_WLOCKED'
>          VM_OBJECT_ASSERT_WLOCKED(object);
>          ^
> _at_/vm/vm_object.h:226:29: note: expanded from macro
> 'VM_OBJECT_ASSERT_WLOCKED'
>          rw_assert(&(object)->lock, RA_WLOCKED)
>                                     ^
> In file included from fuse_vnops.c:36:
> _at_/vm/vm_pager.h:167:2: error: use of undeclared identifier 'RA_WLOCKED'
>          VM_OBJECT_ASSERT_WLOCKED(object);
>          ^
> _at_/vm/vm_object.h:226:29: note: expanded from macro
> 'VM_OBJECT_ASSERT_WLOCKED'
>          rw_assert(&(object)->lock, RA_WLOCKED)
>                                     ^
> In file included from fuse_vnops.c:36:
> _at_/vm/vm_pager.h:190:2: error: use of undeclared identifier 'RA_WLOCKED'
>          VM_OBJECT_ASSERT_WLOCKED(m->object);
>          ^
> _at_/vm/vm_object.h:226:29: note: expanded from macro
> 'VM_OBJECT_ASSERT_WLOCKED'
>          rw_assert(&(object)->lock, RA_WLOCKED)
>                                     ^
> fuse_vnops.c:3397:3: warning: implicit declaration of function
> 'VM_OBJECT_LOCK' is invalid in C99 [-Wimplicit-function-declaration]
>                  VM_OBJECT_LOCK(vp->v_object);
>                  ^
> fuse_vnops.c:3398:3: warning: implicit declaration of function
> 'vm_page_lock_queues' is invalid in C99 [-Wimplicit-function-declaration]
>                  vm_page_lock_queues();
>                  ^
> fuse_vnops.c:3406:4: warning: implicit declaration of function
> 'vm_page_unlock_queues' is invalid in C99 [-Wimplicit-function-declaration]
>                          vm_page_unlock_queues();
>                          ^
> fuse_vnops.c:3407:4: warning: implicit declaration of function
> 'VM_OBJECT_UNLOCK' is invalid in C99 [-Wimplicit-function-declaration]
>                          VM_OBJECT_UNLOCK(vp->v_object);
>                          ^
> 5 warnings and 4 errors generated.
> *** Error code 1
>
> Stop.
> make: stopped in
> /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0/fuse_module
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/sysutils/fusefs-kmod/work/fuse4bsd-498acaef33b0
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/sysutils/fusefs-kmod
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/sysutils/fusefs-kmod
>
> ===>>> make failed for sysutils/fusefs-kmod
> ===>>> Aborting update
>
> ===>>> Killing background jobs
> Terminated
> Terminated
>
> ===>>> You can restart from the point of failure with this command line:
>         portmaster <flags> sysutils/fusefs-kmod
>
> ===>>> Exiting
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

You don't need sysutils/fusefs-kmod, since FreeBSD 10 includes FUSE in 
base. Reverse dependencies (sysutils/fusefs-curlftpfs, etc.) will 
correctly skip building it.

This ought to use logic like that from emulators/virtio-kmod/Makefile.

- Nikolai Lifanov
Received on Fri Jul 19 2013 - 14:33:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:39 UTC