[GH-ISSUE #361] It didn't compile in Ubuntu 12.04. #185

Closed
opened 2026-03-04 01:43:04 +03:00 by kerem · 2 comments
Owner

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
3.2.0-23-virtual
root@MicroBizAppServer1:
/s3fs-fuse# cat /etc/issue
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?

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 3.2.0-23-virtual root@MicroBizAppServer1:~/s3fs-fuse# cat /etc/issue 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?
kerem closed this issue 2026-03-04 01:43:04 +03:00
Author
Owner

@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,

<!-- gh-comment-id:181932552 --> @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,
Author
Owner

@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.

<!-- gh-comment-id:182681980 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#185
No description provided.