-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib curl compiled on OSX 10.13 failed to run on OSX 10.10 #2905
Comments
Work-aroundAfter you run configure, but before you invoke 'make', you can edit |
I think I know how to fix this. I looked at the time.h header, and noticed that the clock_* functions are all marked for weak-linking as of macOS 10.13.x, so there are two ways we can weak-link the symbol:
Method 2 is the method Apple wants developers to use from now on, but as we found out a while ago, it doesn't work with compilers other than Clang. |
I tried the workaround of removing HAVE_CLOCK_GETTIME_MONOTONIC and now the crash is not happening, but however when I tried to access the https url, it failed. It is able to access only http urls. |
I did this:
I compiled my application with curl (options : ./configure --with-gnutls) on Xcode 9.4. And when I tested the application on Mac OS version yosemite (OS X 10.10) the app crashed with the below output.
Crash report :
Dyld Error Message:
Symbol not found: _clock_gettime
Referenced from: */libcurl.4.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
I expected the following:
Application to run normally
curl/libcurl version:
curl-7.40.0
Mac OS version: yosemite (OS X 10.10)
The text was updated successfully, but these errors were encountered: