derrickchoi / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

make command fails to complie #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried to compile the downloaded source. I get the following errors.

make: xml2-config: Command not found
g++ -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse  -pthread -lfuse  
-lcurl  -ggdb s3fs.cpp -o s3fs
s3fs.cpp:33:23: error: curl/curl.h: No such file or directory
s3fs.cpp:34:27: error: libxml/parser.h: No such file or directory
s3fs.cpp:35:25: error: libxml/tree.h: No such file or directory
s3fs.cpp:58: error: 'CURL' was not declared in this scope
s3fs.cpp:58: error: template argument 1 is invalid
s3fs.cpp:58: error: template argument 2 is invalid
s3fs.cpp:58: error: invalid type in declaration before ';' token
s3fs.cpp:62: error: ISO C++ forbids declaration of 'CURL' with no type
s3fs.cpp:62: error: expected ';' before '*' token
s3fs.cpp:80: error: ISO C++ forbids declaration of 'CURL' with no type
s3fs.cpp:80: error: expected ';' before '*' token
s3fs.cpp:83: error: expected `;' before 'operator'
s3fs.cpp:83: error: expected type-specifier before 'CURL'
s3fs.cpp: In constructor 'auto_curl::auto_curl()':
s3fs.cpp:66: error: request for member 'size' in 'curl_handles', which is
of non-class type 'int'
s3fs.cpp:67: error: 'curl' was not declared in this scope
s3fs.cpp:67: error: 'curl_easy_init' was not declared in this scope
s3fs.cpp:69: error: 'curl' was not declared in this scope
s3fs.cpp:69: error: request for member 'top' in 'curl_handles', which is of
non-class type 'int'
s3fs.cpp:70: error: request for member 'pop' in 'curl_handles', which is of
non-class type 'int'
s3fs.cpp:72: error: 'curl' was not declared in this scope
s3fs.cpp:72: error: 'curl_easy_reset' was not declared in this scope
s3fs.cpp:74: error: 'CURLOPT_CONNECTTIMEOUT' was not declared in this scope
s3fs.cpp:74: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp: In destructor 'auto_curl::~auto_curl()':
s3fs.cpp:78: error: request for member 'push' in 'curl_handles', which is
of non-class type 'int'
s3fs.cpp:78: error: 'curl' was not declared in this scope
s3fs.cpp: In destructor 'auto_curl_slist::~auto_curl_slist()':
s3fs.cpp:94: error: 'curl_slist_free_all' was not declared in this scope
s3fs.cpp: In member function 'void auto_curl_slist::append(const
std::string&)':
s3fs.cpp:100: error: 'curl_slist_append' was not declared in this scope
s3fs.cpp: In function 'std::string calc_signature(std::string, std::string,
std::string, curl_slist*, std::string)':
s3fs.cpp:181: error: invalid use of undefined type 'struct curl_slist'
s3fs.cpp:89: error: forward declaration of 'struct curl_slist'
s3fs.cpp:182: error: invalid use of undefined type 'struct curl_slist'
s3fs.cpp:89: error: forward declaration of 'struct curl_slist'
s3fs.cpp:184: error: invalid use of undefined type 'struct curl_slist'
s3fs.cpp:89: error: forward declaration of 'struct curl_slist'
s3fs.cpp:187: error: invalid use of undefined type 'struct curl_slist'
s3fs.cpp:89: error: forward declaration of 'struct curl_slist'
s3fs.cpp: In function 'int s3fs_getattr(const char*, stat*)':
s3fs.cpp:261: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:261: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:262: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:263: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:264: error: 'CURLOPT_NOBODY' was not declared in this scope
s3fs.cpp:265: error: 'CURLOPT_FILETIME' was not declared in this scope
s3fs.cpp:271: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:273: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp:275: error: 'CURLINFO_RESPONSE_CODE' was not declared in this scope
s3fs.cpp:275: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp:285: error: 'CURLINFO_FILETIME' was not declared in this scope
s3fs.cpp:285: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp:289: error: 'CURLINFO_CONTENT_TYPE' was not declared in this scope
s3fs.cpp:289: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp:293: error: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' was not declared in
this scope
s3fs.cpp:293: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp: In function 'int s3fs_mknod(const char*, mode_t, dev_t)':
s3fs.cpp:318: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:318: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:319: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:320: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:321: error: 'CURLOPT_UPLOAD' was not declared in this scope
s3fs.cpp:322: error: 'CURLOPT_INFILESIZE' was not declared in this scope
s3fs.cpp:330: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:332: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_mkdir(const char*, mode_t)':
s3fs.cpp:346: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:346: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:347: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:348: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:349: error: 'CURLOPT_UPLOAD' was not declared in this scope
s3fs.cpp:350: error: 'CURLOPT_INFILESIZE' was not declared in this scope
s3fs.cpp:357: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:359: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_unlink(const char*)':
s3fs.cpp:374: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:374: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:375: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:376: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:377: error: 'CURLOPT_CUSTOMREQUEST' was not declared in this scope
s3fs.cpp:383: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:385: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_rmdir(const char*)':
s3fs.cpp:399: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:399: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:400: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:401: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:402: error: 'CURLOPT_CUSTOMREQUEST' was not declared in this scope
s3fs.cpp:408: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:410: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_truncate(const char*, off_t)':
s3fs.cpp:459: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:459: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:460: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:461: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:462: error: 'CURLOPT_UPLOAD' was not declared in this scope
s3fs.cpp:463: error: 'CURLOPT_INFILESIZE' was not declared in this scope
s3fs.cpp:470: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:472: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_read(const char*, char*, size_t, off_t,
fuse_file_info*)':
s3fs.cpp:494: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:494: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:495: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:496: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:497: error: 'CURLOPT_WRITEDATA' was not declared in this scope
s3fs.cpp:498: error: 'CURLOPT_WRITEFUNCTION' was not declared in this scope
s3fs.cpp:504: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:511: error: 'CURLOPT_RANGE' was not declared in this scope
s3fs.cpp:513: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp:515: error: 'CURLINFO_RESPONSE_CODE' was not declared in this scope
s3fs.cpp:515: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp: In function 'int s3fs_flush(const char*, fuse_file_info*)':
s3fs.cpp:560: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:560: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:561: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:562: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:563: error: 'CURLOPT_UPLOAD' was not declared in this scope
s3fs.cpp:564: error: 'CURLOPT_INFILESIZE' was not declared in this scope
s3fs.cpp:565: error: 'CURLOPT_READDATA' was not declared in this scope
s3fs.cpp:566: error: 'CURLOPT_READFUNCTION' was not declared in this scope
s3fs.cpp:573: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:575: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp: In function 'int s3fs_readdir(const char*, void*, int (*)(void*,
const char*, const stat*, off_t), off_t, fuse_file_info*)':
s3fs.cpp:613: error: 'CURLOPT_URL' was not declared in this scope
s3fs.cpp:613: error: 'curl_easy_setopt' was not declared in this scope
s3fs.cpp:614: error: 'CURLOPT_FAILONERROR' was not declared in this scope
s3fs.cpp:615: error: 'CURLOPT_FOLLOWLOCATION' was not declared in this scope
s3fs.cpp:616: error: 'CURLOPT_WRITEDATA' was not declared in this scope
s3fs.cpp:617: error: 'CURLOPT_WRITEFUNCTION' was not declared in this scope
s3fs.cpp:624: error: 'CURLOPT_HTTPHEADER' was not declared in this scope
s3fs.cpp:626: error: 'curl_easy_perform' was not declared in this scope
s3fs.cpp:628: error: 'CURLINFO_RESPONSE_CODE' was not declared in this scope
s3fs.cpp:628: error: 'curl_easy_getinfo' was not declared in this scope
s3fs.cpp:641: error: 'xmlDocPtr' was not declared in this scope
s3fs.cpp:641: error: expected `;' before 'doc'
s3fs.cpp:642: error: 'doc' was not declared in this scope
s3fs.cpp:643: error: 'xmlNodePtr' was not declared in this scope
s3fs.cpp:643: error: expected `;' before 'cur_node'
s3fs.cpp:643: error: 'cur_node' was not declared in this scope
s3fs.cpp:654: error: expected `;' before 'sub_node'
s3fs.cpp:654: error: 'sub_node' was not declared in this scope
s3fs.cpp:655: error: 'XML_ELEMENT_NODE' was not declared in this scope
s3fs.cpp:658: error: 'XML_TEXT_NODE' was not declared in this scope
s3fs.cpp:697: error: 'doc' was not declared in this scope
s3fs.cpp:697: error: 'xmlFreeDoc' was not declared in this scope
make: *** [all] Error 1

Please help me out. Let me know what i need to do.

Original issue reported on code.google.com by hareem.haque@gmail.com on 26 Nov 2007 at 7:57

GoogleCodeExporter commented 8 years ago
curl-devel needs to be installed (amongst other libraries)... what linux distro 
are
you running?

Original comment by rri...@gmail.com on 26 Nov 2007 at 8:01

GoogleCodeExporter commented 8 years ago
and libxml2-devel and openssl-devel

Original comment by rri...@gmail.com on 26 Nov 2007 at 8:01

GoogleCodeExporter commented 8 years ago
My OS is Fedora Core 4

Original comment by hareem.haque@gmail.com on 26 Nov 2007 at 8:16

GoogleCodeExporter commented 8 years ago
ok, probably need to do:

% yum install curl-devel
% yum install libxml2-devel
 and maybe
% yum install openssl-devel

Original comment by rri...@gmail.com on 26 Nov 2007 at 8:19

GoogleCodeExporter commented 8 years ago
Thanks a million. Your s3fs code really does wonders. I can now store all of my
important docs and files directly onto the s3 bucket. I really appreciate you 
making
this code available to me and also helping me out with setting it up.

Thanks
Hareem.Haque

Original comment by hareem.haque@gmail.com on 26 Nov 2007 at 8:44

GoogleCodeExporter commented 8 years ago
you're welcome!

Original comment by rri...@gmail.com on 26 Nov 2007 at 9:26

GoogleCodeExporter commented 8 years ago

Original comment by rri...@gmail.com on 17 Dec 2007 at 11:44