atom feed6 messages in com.googlegroups.macfuseRe: Macfuse is missing header file 's...
FromSent OnAttachments
mandala.ccMar 2, 2007 5:09 pm 
Greg MillerMar 2, 2007 10:01 pm 
Amit SinghMar 3, 2007 12:27 pm 
Amit SinghMar 3, 2007 12:30 pm 
mandala.ccMar 5, 2007 11:35 pm 
Amit SinghMar 6, 2007 12:03 am 
Subject:Re: Macfuse is missing header file 'statfs.h' ?
From:Amit Singh (
Date:Mar 3, 2007 12:27:55 pm

Do read the compilation HOWTO *carefully* if you're building custom file systems.

Your compiler flags must contain __FreeBSD__ to be defined to 10 in the case of MacFUSE. Like Greg Miller said, in a "correct" MacFUSE compilation, the compiler shouldn't be including sys/statfs.h on Mac OS X because the "#ifndef __FreeBSD__" won't let it. If you have a proper installation of MacFUSE Core, then your CFLAGS will automatically contain __FreeBSD__=10 in most cases. Here you seem to be using C++. Instead of doing just "./configure", try:

CPPFLAGS="-I/usr/local/include/fuse -D__FreeBSD__=10 - D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr/local

On Mar 2, 5:09 pm, "" <> wrote:

I'm not sure where this problem comes from.

I'm trying to install an experimental file system called igorfs on mac osx with macfuse.

So far we have tested igorfs on a range of linux/fuse combinations - where it works well.

Using macfuse on Mac OSX we get an error (see output below). The error seems suggest that fuse.h requires a file called sys/statfs.h that does not seem to appear anywhere in the macfuse distribution.

This suggests that macfuse is missing an essential header file ('statfs.h').

--- config.log snip --- configure:20612: checking for fstream configure:20619: result: yes configure:20642: checking fuse.h usability configure:20654: g++ -c -g -O2 -I/usr/local/include >&5 In file included from /usr/local/include/fuse/fuse.h:619, from /usr/local/include/fuse.h:9, from /usr/local/include/fuse/fuse_compat.h:68:24: error: sys/statfs.h: No such file or directory configure:20660: $? = 1 --- config.log snap ---

What steps will reproduce the problem?

1. download distribution me or admin there if you want a password, it's no problem) 2. unpack igor, cd igor, ./configure 3. unpack igorfs, cd igorfs, ./configure

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

Expected output is that igorfs would pass configure, make, and make install. Instead it fails at the configure stage.

What version of the product are you using? On what operating system?

MacFUSE-Core-0.2.2.dmg on mac os x 10.4.8

Please provide any additional information below.

The main developer of igorfs suggested to me the following possible solutions: - it may be easily to install a sys/statfs.h that matches mac os (?) - tweak the fuse header file so it is happy - report the bug to macfuse development

Any ideas appreciated. Thanks