Re: [Afpfs-ng-devel] Problems compiling afpfs-ng
Status: Alpha
Brought to you by:
alexthepuffin
From: Michael U. <mu...@re...> - 2007-06-29 13:32:13
|
James Dyer wrote: > I'm having problems getting afpfs-ng to compile; can anyone help me get > this working? > > The configure stage appeared to complete OK, but when I ran make, it > errors out with: > > if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_FILE_OFFSET_BITS=64 -g > -O2 -MT afpfsd-fuse_int.o -MD -MP -MF ".deps/afpfsd-fuse_int.Tpo" -c -o > afpfsd-fuse_int.o `test -f 'fuse_int.c' || echo './'`fuse_int.c; \ > then mv -f ".deps/afpfsd-fuse_int.Tpo" ".deps/afpfsd-fuse_int.Po"; else rm > -f ".deps/afpfsd-fuse_int.Tpo"; exit 1; fi > In file included from fuse_int.c:24: > /usr/include/asm/fcntl.h:70: error: redefinition of `struct flock' > fuse_int.c: In function `afp_getattr': > fuse_int.c:206: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_rmdir': > fuse_int.c:434: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_unlink': > fuse_int.c:494: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_readdir': > fuse_int.c:560: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_mknod': > fuse_int.c:678: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_release': > fuse_int.c:748: warning: cast to pointer from integer of different size > fuse_int.c:767: warning: cast to pointer from integer of different size > fuse_int.c:796: warning: cast to pointer from integer of different size > fuse_int.c: In function `afp_open': > fuse_int.c:823: warning: assignment makes integer from pointer without a > cast > fuse_int.c:837: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_write': > fuse_int.c:1065: warning: cast to pointer from integer of different size > fuse_int.c:1086: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c:1090: warning: implicit declaration of function `volinfo_write' > fuse_int.c: In function `afp_read': > fuse_int.c:1282: warning: cast to pointer from integer of different size > fuse_int.c:1290: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c: In function `afp_truncate': > fuse_int.c:1466: warning: passing arg 2 of `apple_translate' discards > qualifiers from pointer target type > fuse_int.c:1478: warning: cast to pointer from integer of different size > make[1]: *** [afpfsd-fuse_int.o] Error 1 > make[1]: Leaving directory `/home/jad/afpfs-ng-0.4.1' > make: *** [all] Error 2 > > > > Snipped all of the configure stuff out, and most of the make stuff - let > me know if it'd be of any use. > > Running 2.6.9-1.667smp - FC3 > > Any and all help appreciated, as I think afpfs-ng is going to dig me out > of a hole soon (assuming I can get it to compile) > > Thanks, > > j Hi, I have encountered this problem as well. To get afpfs-ng compiled, I've temporarily commented the offending definitions in /usr/include/asm/fcntl.h. Not a real "solution" but it works ;-) Hope that helps ... Michael |