-
Notifications
You must be signed in to change notification settings - Fork 709
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
Error compiling pistache on windows #1281
Comments
It still compiles if I simply take the file out
it seems to fail 2 tests, however
Might be interesting |
Regarding the test errors, I would take a guess that that the errors in https_server_test are due to the "wrong" version of curl being installed. As background, certain curl commands work only when curl is using openssl and not when it is using the Windows default schannel library. I believe this is a bug in curl or schannel, but I have not proven it for certain. In any case, to provide a fair unit test, the setup script (gccsetup.ps1 or msvcsetup.ps1) does:
Could you please do these two commands:
and paste the results here? The other failure, in rest_server_test, looks unlike anything I've seen before. On inspection of rest_server_test.cpp, it appears that Thanks so much for your continued contribution! |
The test already allowed "localhost" and "ip6-localhost". "view-localhost" was seen on Windows 10 by @Kreijstal . We now allow any hostname ending in "localhost" to be accepted as a hostname. Addresses part of issue pistacheio#1281.
The test already allowed "localhost" and "ip6-localhost". "view-localhost" was seen on Windows 10 by @Kreijstal . We now allow any hostname ending in "localhost" to be accepted as a hostname. Addresses part of issue pistacheio#1281.
The test already allowed "localhost" and "ip6-localhost". "view-localhost" was seen on Windows 10 by @Kreijstal . We now allow any hostname ending in "localhost" to be accepted as a hostname. Addresses part of issue pistacheio#1281.
Hi @Kreijstal - I've merged what I hope is a fix for the rest_server_test issue into https://github.com/pistacheio/pistache. When you get the chance, it would be great if you could try it out in your environment. Thanks! |
Regarding
According to this stackoverflow thread (see the top answer and also the comment by installman.ps1 does two write-to-files that I can see, and both do specify encoding (one ascii, the other utf-8). What I'd suggest is - try running installman.ps1 manually from a PS prompt, and see if you can narrow down which line of installman.ps1 (if any) is causing this error to be thrown. The only other question mark would be that you are running meson from ucrt64. In my setup, meson is installed as a Python package, with a path like this:
Since I installed meson: I don't know if installing meson this way might make a difference. LMK what you find... |
ahh it seems this other machine is locked up
but with this #1281 (comment) patch, it removes this restriction making it compilable for low privilege windows systems. just type
on msys2 shell.
|
[DG] OK, that's interesting. You might have seen that the file Building on Windows.txt states to do: However, if that is not possible, then as you said we need another solution. If I may, I don't think restricting the manifest and logging.dll install to MSVC is the answer. It is just as desirable to install the manifest with gcc as with MSVC; and it is just as dependent on script execution policy. Instead, I will look for an alternative way to allow the compile to complete successfully even if the execution policy is blocking execution of the script. Thanks once more! |
Hi @Kreijstal - Regarding your suggestion in #1281 (comment), instead I tried:
At least on my machine, that extra line allowed the installman.ps1 to run as part of the build even when the CurrentUser ExecutionPolicy was set to Restricted in the registry. And it should work the same for gcc or Visual studio cases. Does that change work for you on your "locked down" machine? |
Hello, it's me again, I am trying in another windows machine, (Without admin rights). I can install msys2 tools, so I tried reproducing the same steps, but maybe there is something going around with powershell, this was however on win10 and not in win11
The text was updated successfully, but these errors were encountered: