Hi, I’m pretty new to NetBSD, and I have some ext4 partitions that I would like to access from my NetBSD installation. So I found a fuse filesystem for ext4 (https://github.com/gerard/ext4fuse) and I’m trying to compile it against librefuse. I’ve installed wip/libexecinfo from pkgsrc, patched the Makefile (patch attached to this mail) and built a binary, but when I try to mount a fs, I get a core dump : # ./ext4fuse /dev/wd0i /f/disk [1] Abort trap (core dumped) ./ext4fuse /dev/wd0i /f/disk I attach to this mail the output of the build, and a traceback. If you think of any other way to acces ext4 fs from NetBSD, feel free to tell me :) Any help to build and use successfully this fuse filesystem would be great :) -- Envoyé depuis ma GameBoy.
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o fuse-main.o fuse-main.c
In file included from fuse-main.c:24:0:
common.h:13:0: warning: "MIN" redefined
/usr/include/sys/param.h:377:0: note: this is the location of the previous
definition
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o logging.o logging.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o extents.o extents.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o disk.o disk.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o super.o super.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o inode.o inode.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o dcache.o dcache.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_read.o op_read.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_readdir.o op_readdir.c
In file included from op_readdir.c:14:0:
common.h:13:0: warning: "MIN" redefined
/usr/include/sys/param.h:377:0: note: this is the location of the previous
definition
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_readlink.o op_readlink.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_init.o op_init.c
In file included from super.h:8:0,
from op_init.c:16:
common.h:13:0: warning: "MIN" redefined
/usr/include/sys/param.h:377:0: note: this is the location of the previous
definition
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_getattr.o op_getattr.c
cc -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
-DEXT4FUSE_VERSION=\"v0.1.3-1-g7982a83\" -g -c -o op_open.o op_open.c
cc -o ext4fuse fuse-main.o logging.o extents.o disk.o super.o inode.o dcache.o
op_read.o op_readdir.o op_readlink.o op_init.o op_getattr.o op_open.o
-L/usr/pkg/lib -Wl,-R /usr/pkg/lib -lrefuse -lexecinfo
--- ext4fuse/Makefile 2013-10-08 23:46:31.000000000 +0200 +++ ./Makefile 2013-10-08 23:45:20.000000000 +0200 @@ -4,9 +4,9 @@ VERSION = $(shell git describe --tags 2> /dev/null || basename `pwd`) -CFLAGS += $(shell pkg-config fuse --cflags) -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra +CFLAGS += -I/usr/pkg/include -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra CFLAGS += -DEXT4FUSE_VERSION=\"$(VERSION)\" -LDFLAGS += $(shell pkg-config fuse --libs) +LDFLAGS += -L/usr/pkg/lib -Wl,-R /usr/pkg/lib -lrefuse -lexecinfo ifeq ($(shell uname), Darwin) CFLAGS += -mmacosx-version-min=10.5
This GDB was configured as "i486--netbsdelf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/ext4fuse/ext4fuse...done.
[New process 1]
Core was generated by `ext4fuse'.
Program terminated with signal 6, Aborted.
#0 0xbbbb0e17 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbbbb0e17 in _lwp_kill () from /usr/lib/libc.so.12
#1 0xbbbb0dcb in raise () from /usr/lib/libc.so.12
#2 0xbbbb05a9 in abort () from /usr/lib/libc.so.12
#3 0x08049037 in signal_handle_sigsegv (signal=11) at fuse-main.c:95
#4 <signal handler called>
#5 0x0804bdcd in op_init (info=0x0) at op_init.c:20
#6 0xbbbe2ad5 in fuse_new () from /usr/lib/librefuse.so.2
#7 0xbbbe2eed in ?? () from /usr/lib/librefuse.so.2
#8 0xbbbe3032 in fuse_main_real () from /usr/lib/librefuse.so.2
#9 0x08049284 in main (argc=3, argv=0xbfbfecfc) at fuse-main.c:145
(gdb) bt full
#0 0xbbbb0e17 in _lwp_kill () from /usr/lib/libc.so.12
No symbol table info available.
#1 0xbbbb0dcb in raise () from /usr/lib/libc.so.12
No symbol table info available.
#2 0xbbbb05a9 in abort () from /usr/lib/libc.so.12
No symbol table info available.
#3 0x08049037 in signal_handle_sigsegv (signal=11) at fuse-main.c:95
array = {0xbbb46040, 0xbbbe2ad5, 0xbbbe2eed, 0xbbbe3032, 0x8049284,
0x8048de5, 0x0, 0x0, 0x0, 0x0}
size = 6
strings = 0xbb90c260
i = 6
__FUNCTION__ = "signal_handle_sigsegv"
#4 <signal handler called>
No symbol table info available.
#5 0x0804bdcd in op_init (info=0x0) at op_init.c:20
__FUNCTION__ = "op_init"
#6 0xbbbe2ad5 in fuse_new () from /usr/lib/librefuse.so.2
No symbol table info available.
#7 0xbbbe2eed in ?? () from /usr/lib/librefuse.so.2
No symbol table info available.
#8 0xbbbe3032 in fuse_main_real () from /usr/lib/librefuse.so.2
No symbol table info available.
#9 0x08049284 in main (argc=3, argv=0xbfbfecfc) at fuse-main.c:145
res = -1145147392
args = {argc = 3, argv = 0xbfbfecfc, allocated = 0}
disk_magic_offset = 1080
disk_magic = 61267
__func__ = "main"
Attachment:
pgpprqlGpfKRa.pgp
Description: PGP signature