oscarmore2 / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

Can't compile ext2fuse #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install MacFuse
2. Try to compile ext2fuse (including patch from Linus Gasser)

What is the expected output? What do you see instead?

compile success - but it fails:
In file included from /usr/local/include/fuse/fuse_lowlevel.h:1368,
                 from readdir.h:6,
                 from readdir.c:1:
/usr/local/include/fuse/fuse_lowlevel_compat.h:77:24: error: sys/statfs.h: No 
such file or 
directory
In file included from /usr/local/include/fuse/fuse_lowlevel.h:1368,
                 from readdir.h:6,
                 from readdir.c:1:
/usr/local/include/fuse/fuse_lowlevel_compat.h:133: warning: ‘struct 
statfs’ declared inside 
parameter list
/usr/local/include/fuse/fuse_lowlevel_compat.h:133: warning: its scope is only 
this definition or 
declaration, which is probably not what you want

What version of the product are you using? On what operating system?
MacFUSE-Core-10.5-1.3.1
Mac OSX10.5.2
XCode 3.0

Please provide any additional information below.

Attached is a patch for the file fuse_lowlevel_compat.h which makes compilation 
succeed.

Original issue reported on code.google.com by ine...@gmail.com on 24 Mar 2008 at 9:34

Attachments:

GoogleCodeExporter commented 9 years ago
No, this isn't an issue, and no, you shouldn't need a patch to  make this 
compile.

fuse_lowlevel_compat.h says this:

#ifndef __FreeBSD__

#include <sys/statfs.h>
...

You should be defining __FreeBSD__ when compiling such things with MacFUSE. 
Specifically, you should be 
defining (or making sure that it's somehow defined) __FreeBSD__=10. Both the 
MacFUSE FAQ and the MacFUSE 
HOWTO tell you this:

http://code.google.com/p/macfuse/wiki/FAQ

http://code.google.com/p/macfuse/wiki/HOWTO

Original comment by si...@gmail.com on 25 Mar 2008 at 5:00

GoogleCodeExporter commented 9 years ago
For others looking: Read/write mounting of ext2 and ext3 is available on MacOSX 
via
the Fuse-ext2 project at http://sourceforge.net/projects/fuse-ext2/

Original comment by henrik.a...@gmail.com on 23 Sep 2009 at 5:59