gensrjh / macfuse

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

#include <sys/statfs.h> with OS X Leopard will not compile. #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to build a fuse filesystem

What is the expected output? What do you see instead?
Filesystem should build as expected. However, the following error occurs.

/usr/local/include/fuse/fuse_compat.h:68:24: error: sys/statfs.h: No such
file or directory

This file is included in both fuse_compat.h, and fuse_lowlevel_compat.h. I
believe it is a problem with the #ifndef __FreeBSD__ which may not be
catching anymore due to a change in the defined value in Leopard. As a temp
fix, I simply changed the statfs.h file to statvfs.h file, which allows me
to compile, but may not work as expected (haven't tested it yet). I'm new
to OS X, and as such, am still getting used to how this all works. 

What version of the product are you using? On what operating system?
This is macfuse Core 10.5-1 installed from the disk image. I installed it
new on a Leopard install which was done a few days ago.

Please provide any additional information below.

Original issue reported on code.google.com by goballst...@gmail.com on 30 Oct 2007 at 7:16

GoogleCodeExporter commented 9 years ago
Which file system are you trying to compile? Which exact CFLAGS are you using?

> which may not be catching anymore due to a change in the defined value in 
Leopard.

Change in the value to what? What do you think has changed on Leopard in this 
regard?

Original comment by si...@gmail.com on 30 Oct 2007 at 7:19

GoogleCodeExporter commented 9 years ago
Not sure, but I just did a search, and surprise, I turned up results (changed 
from
open to all, duh). Basically, others have seen this, and I see lots of answers, 
but
they all seem to indicate it's not a problem. Seems odd as OS X doesn't have 
this
file, but it includes it in a default header file. I'm new to fuse mostly, and 
much
newer to OS X, so a lot of this is still in the getting familiar stage.

Original comment by goballst...@gmail.com on 30 Oct 2007 at 7:22

GoogleCodeExporter commented 9 years ago
> Not sure

Well, what about the specific things I asked you:

* Which file system are you trying to compile?

* What exact CFLAGS are you using?

Original comment by si...@gmail.com on 30 Oct 2007 at 7:24

GoogleCodeExporter commented 9 years ago
Sorry, was so excited about learning to search, I left that out so the 
filesystem is
my own. I wrote a pass through + mysql filesystem which builds/works well 
enough on a
Fedora 7 box and was trying to get it to work on my new OS X laptop. My CFLAGS 
are
"-g -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25".

Original comment by goballst...@gmail.com on 30 Oct 2007 at 7:33

GoogleCodeExporter commented 9 years ago
See http://code.google.com/p/macfuse/wiki/FAQ

You need to add -D__FreeBSD__=10 in your CFLAGS.

Original comment by si...@gmail.com on 30 Oct 2007 at 8:11

GoogleCodeExporter commented 9 years ago

Original comment by si...@gmail.com on 1 Nov 2007 at 12:09