Skip to content

Status with FUSE for macOS? #67

Closed
Closed

Description

@ilovezfs

Is sshfs still intended to be compatible with https://osxfuse.github.io/ ?

I'm seeing

Requested 'fuse3 >= 3.1' but version of fuse is 2.9.7

Activity

  1. ilovezfs commented on Jul 8, 2017

    @ilovezfs
    Author

    And that is after doing

     ln -s fuse.pc fuse3.pc
    

    Without that, I just get

    No package 'fuse3' found
    
  2. ilovezfs commented on Jul 8, 2017

    @ilovezfs
    Author
  3. ilovezfs commented on Jul 8, 2017

    @ilovezfs
    Author

    Attempting to force it to build leads to

    iMac-TMP:~ joe$ brew instal -dvs sshfs
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sshfs.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glib.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
    /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
    ==> Using the sandbox
    /usr/bin/sandbox-exec -f /tmp/homebrew20170708-26559-13x3xb7.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sshfs.rb --verbose --debug
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sshfs.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glib.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
    ==> Downloading https://github.com/libfuse/sshfs/releases/download/sshfs-3.0.0/sshfs-3.0.0.tar.gz
    Already downloaded: /Users/joe/Library/Caches/Homebrew/sshfs-3.0.0.tar.gz
    ==> Verifying sshfs-3.0.0.tar.gz checksum
    tar xzf /Users/joe/Library/Caches/Homebrew/sshfs-3.0.0.tar.gz
    ==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/sshfs/3.0.0
    checking build system type... x86_64-apple-darwin15.6.0
    checking host system type... x86_64-apple-darwin15.6.0
    checking target system type... x86_64-apple-darwin15.6.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    checking whether clang understands -c and -o together... yes
    checking for style of include used by make... GNU
    checking dependency style of clang... none
    checking for library containing dlsym... none required
    checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for SSHFS... yes
    checking for fuse_opt_parse... yes
    checking for fusermount... umount
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating test/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    ==> make install
    Making install in test
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    clang -DHAVE_CONFIG_H -I.  -D_REENTRANT -DFUSE_USE_VERSION=31 -DLIBDIR=\"/usr/local/Cellar/sshfs/3.0.0/lib\" -DIDMAP_DEFAULT="\"user\""  -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -D_REENTRANT -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.40/include -I/usr/local/include/osxfuse/fuse -g -O2 -Wall -W -I./compat -c -o sshfs-sshfs.o `test -f 'sshfs.c' || echo './'`sshfs.c
    clang -DHAVE_CONFIG_H -I.  -D_REENTRANT -DFUSE_USE_VERSION=31 -DLIBDIR=\"/usr/local/Cellar/sshfs/3.0.0/lib\" -DIDMAP_DEFAULT="\"user\""  -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -D_REENTRANT -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.40/include -I/usr/local/include/osxfuse/fuse -g -O2 -Wall -W -I./compat -c -o sshfs-cache.o `test -f 'cache.c' || echo './'`cache.c
    clang -DHAVE_CONFIG_H -I.  -D_REENTRANT -DFUSE_USE_VERSION=31 -DLIBDIR=\"/usr/local/Cellar/sshfs/3.0.0/lib\" -DIDMAP_DEFAULT="\"user\""  -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -D_REENTRANT -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.40/include -I/usr/local/include/osxfuse/fuse -g -O2 -Wall -W -I./compat -c -o compat/sshfs-darwin_compat.o `test -f 'compat/darwin_compat.c' || echo './'`compat/darwin_compat.c
    cache.c:258:36: error: too many arguments to function call, expected 1, have 2
            res = cache.next_oper->init(conn, cfg);
                  ~~~~~~~~~~~~~~~~~~~~~       ^~~
    cache.c:261:12: error: incomplete definition of type 'struct fuse_config'
            cfg->nullpath_ok = 0;
            ~~~^
    cache.c:255:32: note: forward declaration of 'struct fuse_config'
                            struct fuse_config *cfg)
                                   ^
    cache.c:272:47: error: too many arguments to function call, expected 2, have 3
                    err = cache.next_oper->getattr(path, stbuf, fi);
                          ~~~~~~~~~~~~~~~~~~~~~~~~              ^~
    cache.c:336:31: error: variable has incomplete type 'enum fuse_fill_dir_flags'
                              enum fuse_fill_dir_flags flags)
                                                       ^
    cache.c:336:11: note: forward declaration of 'enum fuse_fill_dir_flags'
                              enum fuse_fill_dir_flags flags)
                                   ^
    cache.c:359:29: error: variable has incomplete type 'enum fuse_readdir_flags'
                             enum fuse_readdir_flags flags)
                                                     ^
    cache.c:359:10: note: forward declaration of 'enum fuse_readdir_flags'
                             enum fuse_readdir_flags flags)
                                  ^
    cache.c:376:32: error: too many arguments to function call, expected 4, have 5
                                    filler(buf, *dir, NULL, 0, 0);
                                    ~~~~~~                     ^
    cache.c:456:46: error: too many arguments to function call, expected 2, have 3
            int err = cache.next_oper->rename(from, to, flags);
                      ~~~~~~~~~~~~~~~~~~~~~~~           ^~~~~
    cache.c:475:47: error: too many arguments to function call, expected 2, have 3
            int err = cache.next_oper->chmod(path, mode, fi);
                      ~~~~~~~~~~~~~~~~~~~~~~             ^~
    cache.c:484:51: error: too many arguments to function call, expected 3, have 4
            int err = cache.next_oper->chown(path, uid, gid, fi);
                      ~~~~~~~~~~~~~~~~~~~~~~                 ^~
    cache.c:493:47: error: too many arguments to function call, expected 2, have 3
            int err = cache.next_oper->utimens(path, tv, fi);
                      ~~~~~~~~~~~~~~~~~~~~~~~~           ^~
    cache.c:520:50: error: too many arguments to function call, expected 2, have 3
            int err = cache.next_oper->truncate(path, size, fi);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~             ^~
    sshfs.c:872:35: error: too many arguments to function call, expected 4, have 5
                                    filler(dbuf, name, &stbuf, 0, 0);
                                    ~~~~~~                        ^
    11 errors generated.
    make[1]: *** [sshfs-cache.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    sshfs.c:1732:12: error: incomplete definition of type 'struct fuse_config'
            cfg->nullpath_ok = ~(sshfs.truncate_workaround || sshfs.fstat_workaround);
            ~~~^
    sshfs.c:1725:32: note: forward declaration of 'struct fuse_config'
                            struct fuse_config *cfg)
                                   ^
    sshfs.c:1738:48: error: use of undeclared identifier 'FUSE_CAP_WRITEBACK_CACHE'
            if (sshfs.writeback_cache && (conn->capable & FUSE_CAP_WRITEBACK_CACHE))
                                                          ^
    sshfs.c:1739:17: error: use of undeclared identifier 'FUSE_CAP_WRITEBACK_CACHE'
                    conn->want |= FUSE_CAP_WRITEBACK_CACHE;
                                  ^
    sshfs.c:1745:8: error: no member named 'time_gran' in 'struct fuse_conn_info'
            conn->time_gran = 1000000000;
            ~~~~  ^
    sshfs.c:1912:41: error: too many arguments to function call, expected 2, have 3
                    err = sshfs.op->getattr(path, &stbuf, NULL);
                          ~~~~~~~~~~~~~~~~~               ^~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h:105:16: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                   ^~~~~~~~~~
    sshfs.c:2153:29: error: variable has incomplete type 'enum fuse_readdir_flags'
                             enum fuse_readdir_flags flags)
                                                     ^
    sshfs.c:2153:10: note: forward declaration of 'enum fuse_readdir_flags'
                             enum fuse_readdir_flags flags)
                                  ^
    sshfs.c:4004:40: error: too few arguments to function call, expected 5, have 4
                            sizeof(struct fuse_operations), NULL);
                                                                ^
    /usr/local/include/osxfuse/fuse/fuse.h:709:1: note: 'fuse_new' declared here
    struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
    ^
    sshfs.c:4032:20: error: too few arguments to function call, expected 2, have 1
                    fuse_unmount(fuse);
                    ~~~~~~~~~~~~     ^
    /usr/local/include/osxfuse/fuse/fuse_common.h:290:1: note: 'fuse_unmount' declared here
    void fuse_unmount(const char *mountpoint, struct fuse_chan *ch);
    ^
    sshfs.c:4039:20: error: too few arguments to function call, expected 2, have 1
                    fuse_unmount(fuse);
                    ~~~~~~~~~~~~     ^
    /usr/local/include/osxfuse/fuse/fuse_common.h:290:1: note: 'fuse_unmount' declared here
    void fuse_unmount(const char *mountpoint, struct fuse_chan *ch);
    ^
    sshfs.c:4047:28: error: too many arguments to function call, expected single argument 'f', have 2 arguments
                    res = fuse_loop_mt(fuse, 0);
                          ~~~~~~~~~~~~       ^
    /usr/local/include/osxfuse/fuse/fuse.h:756:1: note: 'fuse_loop_mt' declared here
    int fuse_loop_mt(struct fuse *f);
    ^
    sshfs.c:4055:19: error: too few arguments to function call, expected 2, have 1
            fuse_unmount(fuse);
            ~~~~~~~~~~~~     ^
    /usr/local/include/osxfuse/fuse/fuse_common.h:290:1: note: 'fuse_unmount' declared here
    void fuse_unmount(const char *mountpoint, struct fuse_chan *ch);
    ^
    12 errors generated.
    make[1]: *** [sshfs-sshfs.o] Error 1
    make: *** [install-recursive] Error 1
    /usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
    BuildError: Failed executing: make install
    1. raise
    2. ignore
    3. backtrace
    4. irb
    5. shell
    Choose an action:
    

    Though the documentation in 3414644 still seems to anticipate macOS compatibility.

  4. ilovezfs commented on Jul 8, 2017

    @ilovezfs
    Author

    Reported to FUSE for macOS as well: macfuse/macfuse#390.

  5. Nikratio commented on Jul 8, 2017

    @Nikratio
    Contributor

    You'll have to wait until OSXFUSE catches up to the changed libfuse 3.x API.

  6. ilovezfs commented on Jul 8, 2017

    @ilovezfs
    Author

    @Nikratio yikes. OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions