mjablowout / macfuse

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

statfs.h not found #385

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Tryng to compile FDMSfs from trapdoor.org (http://www.trapdoor.org/projects/1/)

What is the expected output? What do you see instead?
Should give me an executeable binary to use in terminal

Here is my error list:
Saqib-s-G5:~ saqibhassan$ cd /Users/saqibhassan/Desktop/fdmsfs_0.4.1        
Saqib-s-G5:~/Desktop/fdmsfs_0.4.1 saqibhassan$ gcc ./fdmsfs.c -o fdmsfs
In file included from /usr/local/include/fuse/fuse.h:26,
                 from /usr/local/include/fuse.h:9,
                 from ./fdmsfs.c:46:
/usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add 
-D_FILE_OFFSET_BITS=64 to your compile flags!
In file included from /usr/local/include/fuse/fuse.h:792,
                 from /usr/local/include/fuse.h:9,
                 from ./fdmsfs.c:46:
/usr/local/include/fuse/fuse_compat.h:68:24: error: sys/statfs.h: No such file 
or directory
./fdmsfs.c: In function 'fdmsfs_open':
./fdmsfs.c:411: warning: cast from pointer to integer of different size
./fdmsfs.c: In function 'fdmsfs_release':
./fdmsfs.c:428: warning: cast to pointer from integer of different size
./fdmsfs.c: In function 'fdmsfs_read':
./fdmsfs.c:523: warning: cast to pointer from integer of different size
./fdmsfs.c: At top level:
./fdmsfs.c:636: error: unknown field 'readdir' specified in initializer
./fdmsfs.c:636: warning: initialization from incompatible pointer type
./fdmsfs.c:637: warning: initialization from incompatible pointer type
./fdmsfs.c:638: warning: initialization from incompatible pointer type
./fdmsfs.c:639: warning: initialization from incompatible pointer type

What version of the product are you using? On what operating system?
Latest MacFuse On Apple quad G5 (ppc) OSX 10.5.4

Please provide any additional information below.
I tried this:
in "fuse_compat.h" (located in /usr/local/include/fuse) 
edited the line
#include <sys/statfs.h>
to
#include <sys/statvfs.h> (is that ok?)

now it compiles but says:
fdmsfs.c: In function ‘fdmsfs_open’:
fdmsfs.c:411: warning: cast from pointer to integer of different size
fdmsfs.c: In function ‘fdmsfs_release’:
fdmsfs.c:428: warning: cast to pointer from integer of different size
fdmsfs.c: In function ‘fdmsfs_read’:
fdmsfs.c:523: warning: cast to pointer from integer of different size
gcc fdmsfs.o -O2 -lfuse -o fdmsfs

The result is not working properly....
PS: Im a newbie.....

Thanks for your help...

Original issue reported on code.google.com by saxon187...@gmail.com on 27 Sep 2008 at 6:49

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

See Q5.1

Original comment by si...@gmail.com on 27 Sep 2008 at 7:57