LittleFlower2019 / s3fs

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

1.72 Will not compile on Ubuntu 12.04.2 (precise) i686 #360

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Note: 1.71 builds with no problem.

Follow instructions to build from wiki.

./configure --prefix=/usr
make

produces the following log, with fatal errors ( references to md5hexsum and 
md5sum ) at end.

Making all in src
make[1]: Entering directory `/usr/local/src/s3fs-1.72/src'
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT s3fs.o -MD -MP -MF .deps/s3fs.Tpo -c -o s3fs.o 
s3fs.cpp
s3fs.cpp: In function ‘int s3fs_mknod(const char*, mode_t, dev_t)’:
s3fs.cpp:748:3: warning: format ‘%lu’ expects argument of type ‘long 
unsigned int’, but argument 4 has type ‘dev_t {aka long long unsigned 
int}’ [-Wformat]
s3fs.cpp: In function ‘int s3fs_utimens(const char*, const timespec*)’:
s3fs.cpp:1603:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘__time_t {aka long int}’ [-Wformat]
s3fs.cpp: In function ‘int s3fs_truncate(const char*, off_t)’:
s3fs.cpp:1741:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
s3fs.cpp: In function ‘int s3fs_read(const char*, char*, size_t, off_t, 
fuse_file_info*)’:
s3fs.cpp:1826:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
s3fs.cpp:1826:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1834:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1834:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp: In function ‘int s3fs_write(const char*, const char*, size_t, 
off_t, fuse_file_info*)’:
s3fs.cpp:1857:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
s3fs.cpp:1857:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1865:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1865:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp: In function ‘int s3fs_flush(const char*, fuse_file_info*)’:
s3fs.cpp:1890:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp: In function ‘int s3fs_release(const char*, fuse_file_info*)’:
s3fs.cpp:1928:3: warning: format ‘%ld’ expects argument of type ‘long 
int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1936:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp:1936:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ 
[-Wformat]
s3fs.cpp: In function ‘int readdir_multi_head(const char*, S3ObjList&)’:
s3fs.cpp:2003:3: warning: format ‘%ld’ expects argument of type ‘long 
int’, but argument 3 has type ‘std::list<std::basic_string<char> 
>::size_type {aka unsigned int}’ [-Wformat]
mv -f .deps/s3fs.Tpo .deps/s3fs.Po
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT curl.o -MD -MP -MF .deps/curl.Tpo -c -o curl.o 
curl.cpp
curl.cpp: In member function ‘int S3fsCurl::PutRequest(const char*, 
headers_t&, int, bool)’:
curl.cpp:1624:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘long long int’ [-Wformat]
curl.cpp:1624:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 5 has type ‘long long int’ [-Wformat]
curl.cpp: In member function ‘int S3fsCurl::PreGetObjectRequest(const char*, 
int, off_t, ssize_t)’:
curl.cpp:1638:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
curl.cpp: In member function ‘int S3fsCurl::GetObjectRequest(const char*, 
int, off_t, ssize_t)’:
curl.cpp:1694:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
curl.cpp: In member function ‘int S3fsCurl::UploadMultipartPostSetup(const 
char*, int, std::string&)’:
curl.cpp:2028:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
curl.cpp: In member function ‘int S3fsCurl::UploadMultipartPostRequest(const 
char*, int, std::string&)’:
curl.cpp:2091:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
curl.cpp: In member function ‘int S3fsMultiCurl::Request()’:
curl.cpp:2551:3: warning: format ‘%ld’ expects argument of type ‘long 
int’, but argument 2 has type ‘std::map<void*, S3fsCurl*>::size_type {aka 
unsigned int}’ [-Wformat]
mv -f .deps/curl.Tpo .deps/curl.Po
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o 
cache.o cache.cpp
mv -f .deps/cache.Tpo .deps/cache.Po
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT string_util.o -MD -MP -MF 
.deps/string_util.Tpo -c -o string_util.o string_util.cpp
mv -f .deps/string_util.Tpo .deps/string_util.Po
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT s3fs_util.o -MD -MP -MF .deps/s3fs_util.Tpo -c 
-o s3fs_util.o s3fs_util.cpp
mv -f .deps/s3fs_util.Tpo .deps/s3fs_util.Po
g++ -DPACKAGE_NAME=\"s3fs\" -DPACKAGE_TARNAME=\"s3fs\" 
-DPACKAGE_VERSION=\"1.72\" -DPACKAGE_STRING=\"s3fs\ 1.72\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"s3fs\" -DVERSION=\"1.72\" -I.  
-D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -I/usr/include/fuse     -g -O2 
-Wall -D_FILE_OFFSET_BITS=64 -MT fdcache.o -MD -MP -MF .deps/fdcache.Tpo -c -o 
fdcache.o fdcache.cpp
fdcache.cpp: In member function ‘void PageList::Dump()’:
fdcache.cpp:479:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp:479:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp: In member function ‘int FdEntity::Open(ssize_t, time_t)’:
fdcache.cpp:576:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 5 has type ‘time_t {aka long int}’ [-Wformat]
fdcache.cpp: In member function ‘int FdEntity::SetMtime(time_t)’:
fdcache.cpp:690:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘time_t {aka long int}’ [-Wformat]
fdcache.cpp: In member function ‘int FdEntity::Load(off_t, ssize_t)’:
fdcache.cpp:783:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp: In member function ‘ssize_t FdEntity::Read(char*, off_t, size_t, 
bool)’:
fdcache.cpp:930:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp:941:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 2 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp:941:5: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 3 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp: In member function ‘ssize_t FdEntity::Write(const char*, off_t, 
size_t)’:
fdcache.cpp:961:3: warning: format ‘%zd’ expects argument of type ‘signed 
size_t’, but argument 4 has type ‘off_t {aka long long int}’ [-Wformat]
fdcache.cpp: In member function ‘FdEntity* FdManager::Open(const char*, 
ssize_t, time_t, bool, bool)’:
fdcache.cpp:1144:3: warning: format ‘%zd’ expects argument of type 
‘signed size_t’, but argument 4 has type ‘time_t {aka long int}’ 
[-Wformat]
mv -f .deps/fdcache.Tpo .deps/fdcache.Po
g++  -g -O2 -Wall -D_FILE_OFFSET_BITS=64   -o s3fs s3fs.o curl.o cache.o 
string_util.o s3fs_util.o fdcache.o -pthread -lfuse -lrt -ldl -lcurl -lxml2 
-lcrypto   
curl.o: In function `GetContentMD5(int)':
/usr/local/src/s3fs-1.72/src/curl.cpp:2613: undefined reference to 
`md5hexsum(int, long long, int)'
curl.o: In function `S3fsCurl::UploadMultipartPostSetup(char const*, int, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/local/src/s3fs-1.72/src/curl.cpp:2035: undefined reference to `md5sum(int, 
long long, int)'
collect2: ld returned 1 exit status
make[1]: *** [s3fs] Error 1
make[1]: Leaving directory `/usr/local/src/s3fs-1.72/src'
make: *** [all-recursive] Error 1

===================================================================
The following information is very important in order to help us to help
you.  Omission of the following details may delay your support request or
receive no attention at all.
===================================================================
Version of s3fs being used (s3fs --version): 1.72

Version of fuse being used (pkg-config --modversion fuse): 2.8.6

System information (uname -a): Linux ip-172-31-24-249 3.2.0-36-virtual 
#57-Ubuntu SMP Tue Jan 8 22:21:19 UTC 2013 i686 i686 i386 GNU/Linux

Distro (cat /etc/issue): Ubuntu 12.04.2 LTS \n \l

s3fs command line used (if applicable): N/A

/etc/fstab entry (if applicable): N/A

s3fs syslog messages (grep s3fs /var/log/syslog): N/A

Original issue reported on code.google.com by st...@greengecko.co.nz on 15 Aug 2013 at 10:35

GoogleCodeExporter commented 8 years ago
HI

I updated new revision as r466.
Please try to make this, if you have a problem yet, please let me know.

Thank you for your help.

Original comment by ggta...@gmail.com on 19 Aug 2013 at 6:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Unfortunately I too am having the same error even after applying your software 
patch. This is the error I get when I attempt to make the application.

g++  -g -O2 -Wall -D_FILE_OFFSET_BITS=64   -o s3fs s3fs.o curl.o cache.o 
string_util.o s3fs_util.o fdcache.o -pthread -L/usr/local/lib -lfuse -lrt -ldl 
-lcurl -lxml2 -lcrypto   
curl.o: In function `GetContentMD5(int)':
/tmp/s3fs-read-only/src/curl.cpp:2821: undefined reference to `md5hexsum(int, 
long long, int)'
curl.o: In function `S3fsCurl::UploadMultipartPostSetup(char const*, int, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/tmp/s3fs-read-only/src/curl.cpp:2056: undefined reference to `md5sum(int, long 
long, int)'
collect2: ld returned 1 exit status
make[1]: *** [s3fs] Error 1
make[1]: Leaving directory `/tmp/s3fs-1.72/src'
make: *** [all-recursive] Error 1

===================================================================
The following information is very important in order to help us to help
you.  Omission of the following details may delay your support request or
receive no attention at all.
===================================================================
Version of s3fs being used (s3fs --version): compiling version 1.72 (already 
installed version 1.71)

Version of fuse being used (pkg-config --modversion fuse): 2.8.6

System information (uname -a): Linux www10 3.2.0-51-generic-pae #77-Ubuntu SMP 
Wed Jul 24 20:40:32 UTC 2013 i686 i686 i386 GNU/Linux

Distro (cat /etc/issue): Ubuntu 12.04.2 LTS \n \l

s3fs command line used (if applicable): N/A

/etc/fstab entry (if applicable): s3fs#originals.filemobile.com 
/mnt/mediaoriginals fuse 
_netdev,auto,allow_other,default_acl=public-read,retries=5 0 0

s3fs syslog messages (grep s3fs /var/log/syslog): 

Aug 20 03:29:05 www10 s3fs: ###HTTP response=500
Aug 20 03:29:09 www10 s3fs: ###retrying...
Aug 20 07:32:12 www10 s3fs: ###HTTP response=500
Aug 20 07:32:16 www10 s3fs: ###retrying...
Aug 20 09:33:07 www10 s3fs: ###HTTP response=500
Aug 20 09:33:11 www10 s3fs: ###retrying...
Aug 20 09:56:07 www10 s3fs: ###HTTP response=500
Aug 20 09:56:11 www10 s3fs: ###retrying...
Aug 20 09:56:16 www10 s3fs: ###HTTP response=500
Aug 20 09:56:20 www10 s3fs: ###retrying...
Aug 20 09:56:21 www10 s3fs: ###HTTP response=500
Aug 20 09:56:25 www10 s3fs: ###retrying...
Aug 20 11:08:16 www10 s3fs: ### CURLE_OPERATION_TIMEDOUT
Aug 20 11:08:18 www10 s3fs: ###retrying...

Original comment by mark.d...@gmail.com on 20 Aug 2013 at 6:10

GoogleCodeExporter commented 8 years ago
Hi

I'm sorry for mis-coding which is wrong prototype for md5sum and md5hexsum 
functions.
(This bug is as same as Issue 361)
Thus I updated new revision(r469).
Please checkout new revision and check it.

I closed this issue, if you find another bug please let me know.

Thanks in advance.

Original comment by ggta...@gmail.com on 21 Aug 2013 at 8:43