<div dir="rtl"><div dir="ltr">Hi Michael,</div><div dir="ltr"><br></div><div dir="ltr">see attached file for cygwin details.</div><div dir="ltr"><br></div><div dir="ltr">The openssl is cloned from:</div><div dir="ltr">git clone <a href="https://github.com/openssl/openssl.git">https://github.com/openssl/openssl.git</a><br></div><div dir="ltr"><br></div><div dir="ltr">perl Configure<br><b>Configuring OpenSSL version 3.2.0-dev for target Cygwin-x86_64</b><br>Using os-specific seed configuration<br>Created <a href="http://configdata.pm">configdata.pm</a><br>Running <a href="http://configdata.pm">configdata.pm</a><br>Created Makefile.in<br>Created Makefile<br>Created include/openssl/configuration.h<br><br>**********************************************************************<br>***                                                                ***<br>***   OpenSSL has been successfully configured                     ***<br>***                                                                ***<br>***   If you encounter a problem while building, please open an    ***<br>***   issue on GitHub <<a href="https://github.com/openssl/openssl/issues">https://github.com/openssl/openssl/issues</a>>  ***<br>***   and include the output from the following command:           ***<br>***                                                                ***<br>***       perl <a href="http://configdata.pm">configdata.pm</a> --dump                                ***<br>***                                                                ***<br>***   (If you are new to OpenSSL, you might want to consult the    ***<br>***   'Troubleshooting' section in the INSTALL.md file first)      ***<br>***                                                                ***<br>**********************************************************************<br></div></div><br><div class="gmail_quote"><div dir="rtl" class="gmail_attr">‫בתאריך יום א׳, 16 באוק׳ 2022 ב-17:55 מאת ‪Michael Wojcik‬‏ <‪<a href="mailto:Michael.Wojcik@microfocus.com">Michael.Wojcik@microfocus.com</a>‬‏>:‬<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> From: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org" target="_blank">openssl-users-bounces@openssl.org</a>> On Behalf Of ???? ???<br>
> Sent: Saturday, 15 October, 2022 15:48<br>
<br>
> I have tried to build openssl using cygwin:<br>
<br>
> Both options starts compiling, but end up with error:<br>
> In file included from providers/implementations/storemgmt/winstore_store.c:27:<br>
> /usr/include/w32api/wincrypt.h:20:11: error: unknown type name 'LONG'<br>
>   20 |   typedef LONG HRESULT;<br>
> Q: What am I missing here?<br>
<br>
Well, the version of OpenSSL you're using, for one thing. And what C implementation; there are various ones which can be used under Cygwin. Cygwin is an environment, not a build toolchain.<br>
<br>
I don't know if this is still true, or if it differs for 1.1.1 and 3.0; but historically there have been issues using Cygwin perl to build OpenSSL, because OpenSSL on Windows wants a perl implementation that uses Windows-style file paths. We use Strawberry Perl.<br>
<br>
That said, that error appears to be due to an issue with the Windows SDK headers, since it's the Windows SDK which should be typedef'ing LONG. (Because we wouldn't want Microsoft to use actual standard C type names, would we?) So this might be due to not having some macro defined when including the various Windows SDK headers.<br>
<br>
-- <br>
Michael Wojcik<br>
</blockquote></div>