-
Notifications
You must be signed in to change notification settings - Fork 280
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
Civetweb failing to compile due to pointers<->int conversions #108
Comments
Yea I got the same problem. But the error is not in the "s2client-api" it is in the submodule civetweb (which they change on 22 Aug) from a oder version. I will check now if I can pull a older version before they changed. |
We are using a slightly modified version of civetweb v1.9.1. Do you get the same error if you build the latest master of civetweb? Maybe they have a fix we can pull in. Otherwise we may need to ask them to look into it. |
I'm getting the error too now, and I think the lines in question are from a commit about a year old. Master builds fine for me. |
Seems like they fixed it recently: If that does fix it, we could cherry-pick that commit onto our fork. We have avoiding using their latest master as it is unclear how stable it is since they haven't made a new release tag for awhile. |
civetweb/civetweb@c6fbe01 didn't work for me. same error with different location
this is how I patch, I am on origin/master branch inside
|
Yeah they """fixed""" it. Too bad the compiler doesn't know the bad cast is inside a |
That seems to be how it is on their latest master. I am confused then by how kuzi117 says their master build fine. Did they have some later commit where they suppressed this warning? |
Yeah i don't know either. |
@Proch92 That's sort of incorrect. It does understand that it's inside an if, and since size_of is a compile time operator it can understand that code inside of it can become unreachable code. It seems like clang is the only one to emit a warning about it though. @KevinCalderone This seems like the commit that fixes it. It pushes diagnostics to ignore those warnings, and in the case of clang, ignore unreachable code. I glanced over the rest of it and it seems to be mostly just formatting fixes. |
It looks like @jrepp committed the fix: KevinCalderone/civetweb@ba9c16f Also this issue seemed to start happening because our civetweb submodule got messed up briefly and we pulled in a bunch of new civetweb changes that we hadn't tested. That should all be reverted now too. Can you please retest, and reopen this issue if it is still occurring for you? |
Nothing to reopen ;) |
Improved handling timeout errors and crashes. Reviewer: abrunasso
Hello,
i'm on linux 64bit and i'm trying to build the api.
GCC 7.1.1
Target: x86_64-pc-linux-gnu
After the steps provided in the docs
the make command fails at building civetweb. Here's the error:
Can someone point me in the right direction?
Thanks
The text was updated successfully, but these errors were encountered: