jigneshvasoya / fuse-zip

Automatically exported from code.google.com/p/fuse-zip
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Build failure of fuse-zip 0.2.5 on Mac OS X #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Building fuse-zip
2.
3.

What is the expected output? What do you see instead?
gcc fails with this error:

g++ -c  -Wall -Wextra -I/sw/include/fuse -D__FreeBSD__=10 
-D_FILE_OFFSET_BITS=64 -
I/sw/include   fuse-zip.cpp -o fuse-zip.o
fuse-zip.cpp: In function 'int main(int, char**)':
fuse-zip.cpp:511: error: invalid conversion from 'int (*)(const char*, const 
char*, const char*, 
size_t, int)' to 'int (*)(const char*, const char*, const char*, size_t, int, 
uint32_t)'
fuse-zip.cpp:512: error: invalid conversion from 'int (*)(const char*, const 
char*, char*, size_t)' to 
'int (*)(const char*, const char*, char*, size_t, uint32_t)'
make: *** [fuse-zip.o] Error 1

What version of the product are you using? On what operating system?
fuse-zip 0.2.5 on Mac OS X 10.5.4 with fuse 2.7.3

Please provide any additional information below.
I see that fuse/fuse.h contains:

    /** Set extended attributes */
#if (__FreeBSD__ >= 10)
    int (*setxattr) (const char *, const char *, const char *, size_t, int, uint32_t);
#else
    int (*setxattr) (const char *, const char *, const char *, size_t, int);
#endif /* __FreeBSD__ >= 10 */

    /** Get extended attributes */
#if (__FreeBSD__ >= 10)
    int (*getxattr) (const char *, const char *, char *, size_t, uint32_t);
#else
    int (*getxattr) (const char *, const char *, char *, size_t);
#endif /* __FreeBSD__ >= 10 */

So FreeBSD and Mac OS X need the extra uint32_t parameter.

Original issue reported on code.google.com by daniel.j...@gmail.com on 28 Aug 2008 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by alexander.galanin on 28 Aug 2008 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by alexander.galanin on 30 Sep 2008 at 2:02

GoogleCodeExporter commented 9 years ago
fixed on 0.2.6

Original comment by alexander.galanin on 30 Sep 2008 at 2:02

GoogleCodeExporter commented 9 years ago
I am having this same problem with fuse-zip 0.2.13 on Mac OS X 10.6.8 and fuse 
2.0.3
main.cpp:205: error: invalid conversion ... main.cpp:206: error: invalid 
conversion ...

Original comment by rlhelin...@gmail.com on 10 May 2012 at 12:40

GoogleCodeExporter commented 9 years ago
Can you send full compilation log for investigation?

Original comment by alexander.galanin on 10 May 2012 at 1:30