Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/statfs.h included but unnecessary #25

Closed
toothbrush opened this issue Mar 22, 2012 · 4 comments
Assignees

Comments

@toothbrush
Copy link

@toothbrush toothbrush commented Mar 22, 2012

Hi. I'm having a problem building hfuse (a Haskell interface to FUSE) on OS X Lion. I've got OSXFUSE version 2.3.9, and the error I get is the following:

/usr/bin/gcc returned ExitFailure 1 with error message:
In file included from /usr/local/include/osxfuse/fuse/fuse.h:857,
from /usr/local/include/osxfuse/fuse.h:9,
from /var/folders/nn/c27x8b4x2z90lb0tvy70psfw0000gn/T/58799.c:2:
/usr/local/include/osxfuse/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No
such file or directory

The problem is solved if I touch /usr/local/include/sys/statfs.h, so it seems there should be a conditional include. I can provide more information about the attempted build if it is required.

@bfleischer

This comment has been minimized.

Copy link
Member

@bfleischer bfleischer commented Mar 22, 2012

Please have a look at /usr/local/lib/pkgconfig/osxfuse.pc. Did you call gcc with the correct CFLAGS and LDFLAGS? fuse_compat.h only includes sys/statfs.hif __FreeBSD__ is not defined:

#ifndef __FreeBSD__
#include <sys/statfs.h>
...
@ghost ghost assigned bfleischer Mar 22, 2012
@toothbrush

This comment has been minimized.

Copy link
Author

@toothbrush toothbrush commented Mar 22, 2012

Hm, true. Seems I was barking up the wrong tree. I thought I'd solved that by setting FreeBSD in the package I was trying to build, namely www.github.com/realdesktop/hfuse, but that wasn't solving it. I guess I'd better file a bug there. Thanks!

@toothbrush toothbrush closed this Mar 22, 2012
@bfleischer

This comment has been minimized.

Copy link
Member

@bfleischer bfleischer commented Mar 22, 2012

The next version of OSXFUSE will remove the need for the __FreeBSD__ flag. The flag was inherited from MacFUSE and has been causing other issues, too.

@toothbrush

This comment has been minimized.

Copy link
Author

@toothbrush toothbrush commented Mar 22, 2012

Okay, though I don't know if that will solve my issue. I've
filed a bug against HFuse. I've tried messing about a bit, but
unfortunately I'm not really sure where it's breaking.

On Thu, Mar 22, 2012 at 16:32:08 -0700, quoth Benjamin Fleischer:

The next version of OSXFUSE will remove the need for the __FreeBSD__ flag. The flag was inherited from MacFUSE and has been causing other issues, too.


Reply to this email directly or view it on GitHub:
#25 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.