ninja build error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ninja build error

星龙剑
Hi,fuse-devel:

     there is an error occur when I build the fuse with ninja.
     my env:
     Mac OS : 10.12
     meson :0.40.1
     ninja :1.7.2
     fuse:3.0.2

     I guess this problem is due to versioning problems,could you tell me how to fix this problem?
     
➜  build ninja
[1/47] Compiling c object 'util/fusermount3@exe/util_mount_util.c.o'
FAILED: util/fusermount3@exe/util_mount_util.c.o
cc  '-Iutil/fusermount3@exe' '-Iutil' '-I../util' '-I.' '-I../' '-Ilib' '-I../lib' '-Iinclude' '-I../include' '-Xclang' '-fcolor-diagnostics' '-pipe' '-D_REENTRANT' '-DHAVE_CONFIG_H' '-Wall' '-Wextra' '-Wno-sign-compare' '-Wstrict-prototypes' '-Wmissing-declarations' '-Wwrite-strings' '-O2' '-g' '-fno-strict-aliasing' '-MMD' '-MQ' 'util/fusermount3@exe/util_mount_util.c.o' '-MF' 'util/fusermount3@exe/util_mount_util.c.o.d' -o 'util/fusermount3@exe/util_mount_util.c.o' -c util/mount_util.c
util/mount_util.c:24:10: fatal error: 'mntent.h' file not found
#include <mntent.h>
         ^
1 error generated.
[2/47] Compiling c object 'util/fusermount3@exe/fusermount.c.o'
FAILED: util/fusermount3@exe/fusermount.c.o
cc  '-Iutil/fusermount3@exe' '-Iutil' '-I../util' '-I.' '-I../' '-Ilib' '-I../lib' '-Iinclude' '-I../include' '-Xclang' '-fcolor-diagnostics' '-pipe' '-D_REENTRANT' '-DHAVE_CONFIG_H' '-Wall' '-Wextra' '-Wno-sign-compare' '-Wstrict-prototypes' '-Wmissing-declarations' '-Wwrite-strings' '-O2' '-g' '-fno-strict-aliasing' '-MMD' '-MQ' 'util/fusermount3@exe/fusermount.c.o' '-MF' 'util/fusermount3@exe/fusermount.c.o.d' -o 'util/fusermount3@exe/fusermount.c.o' -c ../util/fusermount.c
../util/fusermount.c:24:10: fatal error: 'mntent.h' file not found
#include <mntent.h>
         ^
1 error generated.
[3/47] Compiling c object 'lib/fuse3@sha/mount_bsd.c.o'
FAILED: lib/fuse3@sha/mount_bsd.c.o
cc  '-Ilib/fuse3@sha' '-Ilib' '-I../lib' '-I.' '-I../' '-Iinclude' '-I../include' '-Xclang' '-fcolor-diagnostics' '-pipe' '-D_REENTRANT' '-DHAVE_CONFIG_H' '-Wall' '-Wextra' '-Wno-sign-compare' '-Wstrict-prototypes' '-Wmissing-declarations' '-Wwrite-strings' '-O2' '-g' '-fno-strict-aliasing' '-pthread' '-DFUSE_USE_VERSION=30' '-DFUSERMOUNT_DIR="{}"' '-MMD' '-MQ' 'lib/fuse3@sha/mount_bsd.c.o' '-MF' 'lib/fuse3@sha/mount_bsd.c.o.d' -o 'lib/fuse3@sha/mount_bsd.c.o' -c ../lib/mount_bsd.c
../lib/mount_bsd.c:105:29: warning: unused parameter 'outargs' [-Wunused-parameter]
                               struct fuse_args *outargs)
                                                 ^
../lib/mount_bsd.c:124:19: error: use of undeclared identifier 'SPECNAMELEN'
        char device_path[SPECNAMELEN + 12];
                         ^
../lib/mount_bsd.c:129:24: error: use of undeclared identifier 'SPECNAMELEN'
        snprintf(device_path, SPECNAMELEN + 12, _PATH_DEV "%s", dev);
                              ^
../lib/mount_bsd.c:182:55: warning: incompatible pointer types passing 'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long *') [-Wincompatible-pointer-types]
        if (sysctlbyname("vfs.fuse.init_backgrounded", &ibg, &len, NULL, 0))
                                                             ^~~~
/usr/include/sys/sysctl.h:760:48: note: passing argument to parameter here
int     sysctlbyname(const char *, void *, size_t *, void *, size_t);
                                                   ^
2 warnings and 2 errors generated.
[5/47] Compiling c object 'example/passthrough@exe/passthrough.c.o'
../example/passthrough.c:416:12: warning: implicit declaration of function 'lsetxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lsetxattr(path, name, value, size, flags);
                  ^
../example/passthrough.c:425:12: warning: implicit declaration of function 'lgetxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lgetxattr(path, name, value, size);
                  ^
../example/passthrough.c:433:12: warning: implicit declaration of function 'llistxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = llistxattr(path, list, size);
                  ^
../example/passthrough.c:441:12: warning: implicit declaration of function 'lremovexattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lremovexattr(path, name);
                  ^
4 warnings generated.
[6/47] Compiling c object 'example/passthrough_fh@exe/passthrough_fh.c.o'
../example/passthrough_fh.c:511:12: warning: implicit declaration of function 'lsetxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lsetxattr(path, name, value, size, flags);
                  ^
../example/passthrough_fh.c:520:12: warning: implicit declaration of function 'lgetxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lgetxattr(path, name, value, size);
                  ^
../example/passthrough_fh.c:528:12: warning: implicit declaration of function 'llistxattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = llistxattr(path, list, size);
                  ^
../example/passthrough_fh.c:536:12: warning: implicit declaration of function 'lremovexattr' is invalid in C99 [-Wimplicit-function-declaration]
        int res = lremovexattr(path, name);
                  ^
4 warnings generated.
ninja: build stopped: subcommand failed.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
fuse-devel mailing list
To unsubscribe or subscribe, visit https://lists.sourceforge.net/lists/listinfo/fuse-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ninja build error

Nikolaus Rath
On Jun 06 2017, "星龙剑" <[hidden email]> wrote:
> Hi,fuse-devel:
>
> there is an error occur when I build the fuse with ninja.
> my env:
> Mac OS : 10.12
> meson :0.40.1
> ninja :1.7.2
> fuse:3.0.2

libfuse does not support OS-X, you probably want
https://osxfuse.github.io/ instead.

Best,
-Nikolaus

--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
fuse-devel mailing list
To unsubscribe or subscribe, visit https://lists.sourceforge.net/lists/listinfo/fuse-devel
Loading...