mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #361] It didn't compile in Ubuntu 12.04. #185
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @c8r-ash on GitHub (Feb 9, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/361
I've tried to compile s3fs on Ubuntu 12.04
root@MicroBizAppServer1:
/s3fs-fuse# uname -r/s3fs-fuse# cat /etc/issue3.2.0-23-virtual
root@MicroBizAppServer1:
Ubuntu 12.04.5 LTS \n \l
But it didn;t pass the make step and I got error
root@MicroBizAppServer1:~/s3fs-fuse# make
make all-recursive
make[1]: Entering directory
/home/ashota/s3fs-fuse' Making all in src make[2]: Entering directory/home/ashota/s3fs-fuse/src'g++ -DHAVE_CONFIG_H -I. -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
mv -f .deps/s3fs.Tpo .deps/s3fs.Po
g++ -DHAVE_CONFIG_H -I. -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
mv -f .deps/curl.Tpo .deps/curl.Po
g++ -DHAVE_CONFIG_H -I. -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
cache.cpp: In function ‘int clock_gettime(int, timespec_)’:
cache.cpp:60:57: error: ‘int clock_gettime(int, timespec_)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
/usr/include/time.h:336:12: error: previous declaration of ‘int clock_gettime(clockid_t, timespec_)’ [-fpermissive]
make[2]: *_* [cache.o] Error 1
make[2]: Leaving directory
/home/ashota/s3fs-fuse/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/ashota/s3fs-fuse'make: *** [all] Error 2
The problem solved:
./configure LIBS=-lrt
May be we can update the README and provide right options?
@ggtakec commented on GitHub (Feb 9, 2016):
@armstyle Thanks you for reporting.
I will change codes that I think s3fs should use gettimeofday function instead of clock_gettime.
Your problem is due to the gcc version, and same issue on OSX.
I merged #360, but I will change code for these problem.
Please wait a day.
Regards,
@ggtakec commented on GitHub (Feb 11, 2016):
@armstyle I have to complete the verification in my test box(ubuntu12.04).
Please use latest codes.
@RobbKistler thanks again.