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

CMake Error #628

Closed
SquitchYT opened this issue Sep 1, 2021 · 5 comments
Closed

CMake Error #628

SquitchYT opened this issue Sep 1, 2021 · 5 comments

Comments

@SquitchYT
Copy link

Hello, while trying to use the example code, but i have an error when building with cmake:

error: « dummy » .... [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
``` the return code is 2
Have you any idea ?
@SquitchYT
Copy link
Author

Up: I have found this issues : #607, if this solution work for me, I closed this issues

@SquitchYT
Copy link
Author

This solution work for me but now, the example code don't work. The return code is 0. I have try with https://google.com and the return code is 0 too. When I try with http://google.com the return code is 301. I think i miss something with OPENSSL (I use CMake)

@SquitchYT
Copy link
Author

I have found the solution. See #194 if interested. I close the issues (Thanks for the amazing libs)

@COM8
Copy link
Member

COM8 commented Sep 4, 2021

When using GCC 11.11 on fedora with cpr 1.6.2 I can reproduce this issue.
It looks like something in GoogleTest is broken.
As a way around try the following:

cmake .. -DCPR_BUILD_TESTS=OFF

@COM8
Copy link
Member

COM8 commented Sep 4, 2021

google/googletest#3219

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

2 participants