Discussion:
[fuse-devel] ninja build error
星龙剑
2017-06-06 12:30:56 UTC
Permalink
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/***@exe/util_mount_util.c.o'FAILED: util/***@exe/util_mount_util.c.occ '-Iutil/***@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/***@exe/util_mount_util.c.o' '-MF' 'util/***@exe/util_mount_util.c.o.d' -o 'util/***@exe/util_mount_util.c.o' -c util/mount_util.cutil/mount_util.c:24:10: fatal error: 'mntent.h' file not found#include <mntent.h> ^1 error generated.[2/47] Compiling c object 'util/***@exe/fusermount.c.o'FAILED: util/***@exe/fusermount.c.occ '-Iutil/***@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/***@exe/fusermount.c.o' '-MF' 'util/***@exe/fusermount.c.o.d' -o 'util/***@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/***@sha/mount_bsd.c.o'FAILED: lib/***@sha/mount_bsd.c.occ '-Ilib/***@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/***@sha/mount_bsd.c.o' '-MF' 'lib/***@sha/mount_bsd.c.o.d' -o 'lib/***@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 hereint sysctlbyname(const char *, void *, size_t *, void *, size_t); ^2 warnings and 2 errors generated.[5/47] Compiling c object 'example/***@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/***@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.
Nikolaus Rath
2017-06-06 13:28:38 UTC
Permalink
Hi,fuse-devel:
there is an error occur when I build the fuse with ninja.
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.«
Loading...