Skip to content
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

fix for compiling with libcurl on aarch64 (arm 64bit) #126

Open
disjunction opened this issue Nov 14, 2021 · 2 comments
Open

fix for compiling with libcurl on aarch64 (arm 64bit) #126

disjunction opened this issue Nov 14, 2021 · 2 comments

Comments

@disjunction
Copy link

I was compiling sam from sources on linux aarch64 (debian in docker running on macos M1) and had to make the following change, otherwise the corresponding constants stayed undefined and wex wouldn't compile.

I'm leaving my workaround here in case someone faces the same problem:

index 1e62f56..5bf9764 100644
--- a/build_resources/libcurl_ssl_x64/include/curl/curlbuild.h
+++ b/build_resources/libcurl_ssl_x64/include/curl/curlbuild.h
@@ -536,7 +536,7 @@ Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
 #    define CURL_SIZEOF_CURL_OFF_T     8
 #    define CURL_SUFFIX_CURL_OFF_T     LL
 #    define CURL_SUFFIX_CURL_OFF_TU    ULL
-#  elif defined(__x86_64__) || defined(__ppc64__)
+#  elif defined(__x86_64__) || defined(__ppc64__) || defined(__aarch64__)
 #    define CURL_SIZEOF_LONG           8
 #    define CURL_TYPEOF_CURL_OFF_T     long
 #    define CURL_FORMAT_CURL_OFF_T     "ld"

My platform:

uname -a
Linux d6caf49a35b7 5.10.47-linuxkit #1 SMP PREEMPT Sat Jul 3 21:50:16 UTC 2021 aarch64 GNU/Linux
@lazcamus
Copy link

I ran into this today and am using your patch. Thanks @disjunction :)

@LightBarricade
Copy link

Thanx a lot! just had the same problem and fix it with your solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants