
Failed build with external libfuse
Helllo!
I work with ntfs-3g_ntfsprogs-2015.3.14 and latest libfuse (
https://github.com/libfuse/libfuse.git, commit feed2061ceb2b96b99871338e1a17de35578f24b).
ntfs-3g configuration:
Code:
./configure --prefix=/tmp/$@ --host=arm-bcm2708-linux \
--disable-mtab --with-fuse=external \
CC=$(CROSS)gcc \
FUSE_MODULE_CFLAGS="-I$(SRC_DIR)/$(LIBFUSE)/include" \
FUSE_MODULE_LIBS="-L$(SRC_DIR)/$(LIBFUSE)/lib/.libs -lfuse"
But compilation alwais fail:
Code:
/home/kirill/Projects/Dozor_nano/src/raspberrypi_tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -DFUSE_USE_VERSION=30 -I/home/kirill/Projects/Dozor_nano/src/libfuse/include -I../include/ntfs-3g -g -O2 -Wall -MT ntfs_3g-ntfs-3g.o -MD -MP -MF .deps/ntfs_3g-ntfs-3g.Tpo -c -o ntfs_3g-ntfs-3g.o `test -f 'ntfs-3g.c' || echo './'`ntfs-3g.c
ntfs-3g.c: In function 'ntfs_fuse_filler':
ntfs-3g.c:1083:3: error: too few arguments to function 'fill_ctx->filler'
ntfs-3g.c: At top level:
ntfs-3g.c:3397:2: warning: initialization from incompatible pointer type [enabled by default]
ntfs-3g.c:3397:2: warning: (near initialization for 'ntfs_3g_ops.readdir') [enabled by default]
ntfs-3g.c:3412:2: warning: initialization from incompatible pointer type [enabled by default]
ntfs-3g.c:3412:2: warning: (near initialization for 'ntfs_3g_ops.rename') [enabled by default]
Makefile:674: recipe for target 'ntfs_3g-ntfs-3g.o' failed
make[3]: *** [ntfs_3g-ntfs-3g.o] Error 1
make[3]: *** Waiting for unfinished jobs....
How can I solve this problem?
Thank you and excuse my bad english.
P.S. Also I change FUSE_USE_VERSION define on 30 because libfuse required this:
libfuse/include/fuse_common.hCode:
/* ----------------------------------------------------------- *
* Compatibility stuff *
* ----------------------------------------------------------- */
#if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30
# error only API version 30 or greater is supported
#endif