Opened 4 years ago

Last modified 15 months ago

#16171 new bug

[bfs_fuse] Segmentation fault: 11 on macOS — at Initial Version

Reported by: diver Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

hrev54280 on macOS 10.14.6.

I hacked up bfs_shell to build on macOS:

diff --git a/src/tools/bfs_shell/Jamfile b/src/tools/bfs_shell/Jamfile
index 80f4175323..373b3e3bf7 100644
--- a/src/tools/bfs_shell/Jamfile
+++ b/src/tools/bfs_shell/Jamfile
@@ -86,7 +86,7 @@ BuildPlatformMain <build>bfs_fuse
 	<build>bfs.o
 	<build>fuse_module.a
 	$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
-	$(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse
+	$(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) libosxfuse.2.dylib
 ;
 
 SEARCH on [ FGristFiles DeviceOpener.cpp QueryParserUtils.cpp ]
diff --git a/src/tools/fs_shell/fuse.cpp b/src/tools/fs_shell/fuse.cpp
index d975e4e4cb..9b386696fb 100644
--- a/src/tools/fs_shell/fuse.cpp
+++ b/src/tools/fs_shell/fuse.cpp
@@ -5,7 +5,7 @@
 
 #define FUSE_USE_VERSION 27
 
-#include <fuse/fuse.h>
+#include <osxfuse/fuse/fuse.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <syslog.h>

However, when I try to use it it segfaults:

sudo objects/darwin/x86_64/release/tools/bfs_shell/bfs_fuse -d /dev/disk0s4 /Volumes/Haiku64
Segmentation fault: 11

Not sure what to do here.

Change History (0)

Note: See TracTickets for help on using tickets.