Hey all, love the idea of this program. Having a rough time compiling on 64-bit Ubuntu Oneiric:
gcc -g -Wall -DUSE_AUTH -D_XOPEN_SOURCE=500 -D_ISOC99_SOURCE -Os -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -pthread -lfuse httpfs2.c -o httpfs2
httpfs2.c:367:15: warning: conflicting types for built-in function ‘strndup’ [enabled by default]
httpfs2.c: In function ‘parse_header’:
httpfs2.c:970:17: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 6 has type ‘long int’ [-Wformat]
httpfs2.c: At top level:
httpfs2.c:111:13: warning: ‘destroy_url_copy’ declared ‘static’ but never defined [-Wunused-function]
httpfs2.c:405:12: warning: ‘free_url’ defined but not used [-Wunused-function]
/tmp/ccZcTmDP.o: In function `dirbuf_add':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:256: undefined reference to `fuse_add_direntry'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:260: undefined reference to `fuse_add_direntry'
/tmp/ccZcTmDP.o: In function `httpfs_readdir':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:282: undefined reference to `fuse_reply_err'
/tmp/ccZcTmDP.o: In function `reply_buf_limited':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:273: undefined reference to `fuse_reply_buf'
/tmp/ccZcTmDP.o: In function `httpfs_lookup':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:238: undefined reference to `fuse_reply_err'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:243: undefined reference to `fuse_reply_entry'
/tmp/ccZcTmDP.o: In function `httpfs_getattr':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:220: undefined reference to `fuse_reply_err'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:222: undefined reference to `fuse_reply_attr'
/tmp/ccZcTmDP.o: In function `httpfs_open':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:301: undefined reference to `fuse_reply_err'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:309: undefined reference to `fuse_reply_open'
/tmp/ccZcTmDP.o: In function `httpfs_read':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:349: undefined reference to `fuse_reply_err'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:351: undefined reference to `fuse_reply_buf'
/tmp/ccZcTmDP.o: In function `main':
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:624: undefined reference to `fuse_parse_cmdline'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:624: undefined reference to `fuse_mount'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:648: undefined reference to `fuse_lowlevel_new'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:651: undefined reference to `fuse_set_signal_handlers'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:652: undefined reference to `fuse_session_add_chan'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:653: undefined reference to `fuse_session_loop'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:654: undefined reference to `fuse_remove_signal_handlers'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:655: undefined reference to `fuse_session_remove_chan'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:657: undefined reference to `fuse_session_destroy'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:659: undefined reference to `fuse_unmount'
/home/jeremy/Downloads/httpfs2-0.1.4/httpfs2.c:670: undefined reference to `fuse_opt_free_args'
collect2: ld returned 1 exit status
make: *** [httpfs2] Error 1
Should have all the requisite libraries. Any pointers?
looks like your libfuse is broken.
it should provide the missing symbols