-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
config: remove CURL_SIZEOF_CURL_OFF_T use only SIZEOF_CURL_OFF_T #6702
Conversation
The travis cmake build now fails to set the largefile bit, but it works fine for me locally. 😕 |
The same is true for these AppVeyor builds due to:
This is the same issue as I experienced with my attempt in #6277. I don't understand this issue, because the condition should end up being the same as in the adjusted CMake file: Line 154 in 246399a
Lines 402 to 405 in b899cb0
|
I would actually consider this a fix instead of a tidy-up, because previously Largefile support was not detected at all with CMake, because |
@snikulov Can you bring any lights to this issue? |
1212f3a
to
036bfb8
Compare
- Use preprocessor macros to determine CURL_SIZEOF_CURL_OFF_T, CURL_OFF_T_MAX and CURL_OFF_T_MIN and expose them to the user. - Drop SIZEOF_CURL_OFF_T in favor of CURL_SIZEOF_CURL_OFF_T. Prior to this change CURL_SIZEOF_CURL_OFF_T was defined depending on the build system at configure time or build time depending on how it was built. The macros were not available to the user. draft, alternative to curl#6702
Alternative take at #6704 |
239a129
to
3e95dc4
Compare
With the new debug output in the cmake travis CI build showing all the SIZEOF sizes after cmake has run shows they're present in |
What about Looking at the code in |
The travis CI cmake output from the grep. |
I wanted to focus on getting the travis cmake build to work first, because that's on Linux and I feel at home there (contrary to anything Windows). But since not even that works even if the two important size defines are set in the include file, it really puzzles me. |
Make the code consistently use a single name for the size of the "curl_off_t" type.
3e95dc4
to
cbf8622
Compare
To be honest, I unable to help with this issue, because I'm not familiar
with this code.
Perhaps I did something for Windows, but definitely not touch this code for
Linux.
And looks like it either was broken or not worked since the beginning.
But you're right feature Largefile is not enabled by default on x86_64 on current HEAD.
…On Mon, Mar 8, 2021 at 5:49 PM Daniel Stenberg ***@***.***> wrote:
@snikulov <https://github.com/snikulov> Can you bring any lights to this
issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6702 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABCWKZCPM66H3C47IA6L3TTCTPXFANCNFSM4YZHP44A>
.
--
Best Regards,
Sergei Nikulov
|
Even when I reversed the conditional check in |
The irony here is of course that I doubt we ever build on systems these days that don't support "large files"... |
I figured it out and it was sillier than you'd expect:
|
cbf8622
to
5dd71b7
Compare
Wouldn't it be better to fix it the other way around then? |
Nah, let's do it right at once. |
and make test1014 check for it
5dd71b7
to
ec81a3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So only travis CI is still failing now, but:
- https://travis-ci.org/github/curl/curl/jobs/762229525 timeout seems unrelated
- https://travis-ci.org/github/curl/curl/jobs/762229531 tests 1561 and 1562 failing seems unrelated
both issues are also happening in current master for some reason.
Yes, they seem unrelated #6705 works on the torture test fails |
... as cmake now does it correctly, and make test1014 check for it Closes #6702
Make the code consistently use a single name for the size of the
curl_off_t
type.