[GH-ISSUE #468] Not able to find _clock_gettime symbol while mounting s3 bucket #256

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

Originally created by @ssahu on GitHub (Sep 16, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/468

[INF]       curl.cpp:insertV4Headers(2237): computing signature [HEAD] [/.DS_Store] [] []
[INF]       curl.cpp:url_to_host(100): url is http://s3.amazonaws.com
[INF]       curl.cpp:RequestPerform(1910): HTTP response code 200
[INF]       cache.cpp:AddStat(346): add stat cache entry[path=/.DS_Store]
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /usr/local/bin/s3fs
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /usr/local/bin/s3fs
  Expected in: /usr/lib/libSystem.B.dylib

Anyone got this issue on trying to mount the s3 bucket like below?
s3fs -f -d s3_sync local_folder -o passwd_file=.passwd-s3fs

I upgraded to Xcode 8 yesterday, maybe that caused it?

Originally created by @ssahu on GitHub (Sep 16, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/468 ``` [INF] curl.cpp:insertV4Headers(2237): computing signature [HEAD] [/.DS_Store] [] [] [INF] curl.cpp:url_to_host(100): url is http://s3.amazonaws.com [INF] curl.cpp:RequestPerform(1910): HTTP response code 200 [INF] cache.cpp:AddStat(346): add stat cache entry[path=/.DS_Store] dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /usr/local/bin/s3fs Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _clock_gettime Referenced from: /usr/local/bin/s3fs Expected in: /usr/lib/libSystem.B.dylib ``` Anyone got this issue on trying to mount the s3 bucket like below? `s3fs -f -d s3_sync local_folder -o passwd_file=.passwd-s3fs` I upgraded to Xcode 8 yesterday, maybe that caused it?
kerem closed this issue 2026-03-04 01:43:44 +03:00
Author
Owner

@ggtakec commented on GitHub (Sep 19, 2016):

@ssahu
Do you use latest codes in master(or macosx) branch?
Latest codes check clock_gettime function at configure and prepare an alternative function.
https://github.com/s3fs-fuse/s3fs-fuse/blob/macosx/src/cache.cpp#L59-L70

Please check you code base and try to rebuld all(start to run autogen.sh).

Thanks in advance for your assistance.

<!-- gh-comment-id:247918517 --> @ggtakec commented on GitHub (Sep 19, 2016): @ssahu Do you use latest codes in master(or macosx) branch? Latest codes check clock_gettime function at configure and prepare an alternative function. https://github.com/s3fs-fuse/s3fs-fuse/blob/macosx/src/cache.cpp#L59-L70 Please check you code base and try to rebuld all(start to run autogen.sh). Thanks in advance for your assistance.
Author
Owner

@jbarlow83 commented on GitHub (Nov 23, 2016):

Same error here. macOS 10.11.6, Xcode 8.1, v1.80

The homebrew script runs ./autogen.sh and builds v1.80 from source, but this error still occurs.

HEAD version fails with the same error.

<!-- gh-comment-id:262443400 --> @jbarlow83 commented on GitHub (Nov 23, 2016): Same error here. macOS 10.11.6, Xcode 8.1, v1.80 The homebrew script runs `./autogen.sh` and builds v1.80 from source, but this error still occurs. HEAD version fails with the same error.
Author
Owner

@jbarlow83 commented on GitHub (Nov 23, 2016):

Compiled HEAD from source and it built a working version, so it seems like the problem is in the Homebrew script.

<!-- gh-comment-id:262444151 --> @jbarlow83 commented on GitHub (Nov 23, 2016): Compiled HEAD from source and it built a working version, so it seems like the problem is in the Homebrew script.
Author
Owner

@jbarlow83 commented on GitHub (Dec 2, 2016):

cache.cpp somehow is expecting clock_gettime to be an external symbol so it overlooks the static local copy provided in the macos case.

See the homebrew issue where renaming clock_gettime in that module is sufficient to fix. (This would break non-macOS however).

<!-- gh-comment-id:264336430 --> @jbarlow83 commented on GitHub (Dec 2, 2016): cache.cpp somehow is expecting clock_gettime to be an external symbol so it overlooks the static local copy provided in the macos case. See the homebrew issue where renaming clock_gettime in that module is sufficient to fix. (This would break non-macOS however).
Author
Owner

@ggtakec commented on GitHub (Dec 4, 2016):

@jbarlow83 I'm sorry for my late reply.
I changed clock_gettime function name for not conflicting same function in library.
I merged codes to master and macosx branches, please try to use it.
Thanks very much for your help.

<!-- gh-comment-id:264696678 --> @ggtakec commented on GitHub (Dec 4, 2016): @jbarlow83 I'm sorry for my late reply. I changed clock_gettime function name for not conflicting same function in library. I merged codes to master and macosx branches, please try to use it. Thanks very much for your help.
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#256
No description provided.