FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sun Apr 11, 2021 03:29



Post new topic Reply to topic  [ 3 posts ] 
Failed build with external libfuse 
Author Message

Joined: Fri Feb 12, 2016 11:21
Posts: 6
Post 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.h
Code:
/* ----------------------------------------------------------- *
* Compatibility stuff                                         *
* ----------------------------------------------------------- */

#if !defined(FUSE_USE_VERSION) || FUSE_USE_VERSION < 30
#  error only API version 30 or greater is supported
#endif


Thu Mar 17, 2016 12:01
Profile

Joined: Fri Feb 12, 2016 11:21
Posts: 6
Post Re: Failed build with external libfuse
Simple patch, please see attache, solve problem.


Attachments:
ntfs-3g.c.patch.gz [331 Bytes]
Downloaded 802 times
Thu Mar 17, 2016 13:02
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Failed build with external libfuse
Hi,

The new fuse library version 3.0 is not currently supported by ntfs-3g, and your patch proposal probably does not provide full support.

A more complete patch has been proposed on :
https://launchpadlibrarian.net/22284207 ... use3.patch
You can try it at your own risks.

Regards

Jean-Pierre


Thu Mar 17, 2016 14:50
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.