[Privoxy-devel] Can not compile with openssl 1.0.2

Fabian Keil fk at fabiankeil.de
Mon Sep 21 13:55:12 UTC 2020


Hớ Hờ Hợ <kjllmeplz at gmail.com> wrote:

> Hi, I tried to compile privoxy with openssl ver 1.0.2 on cygwin and msys2
> in windows 10. But, i got this error:
> x86_64-w64-mingw32-gcc -c -pipe -O2 -Wshadow -DWINVER=0x501   -mwindows
> -Wall -Ipcre  openssl.c -o openssl.o
> In file included from
> P:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:95,
>                  from project.h:62,
>                  from openssl.c:42:
> P:/msys64/mingw64/include/openssl/ssl.h:1611:5: error: expected
> specifier-qualifier-list before '(' token
>  1611 |     X509_EXTENSIONS *tlsext_ocsp_exts;
>       |     ^~~~~~~~~~~~~~~

Does the attached untested patch help?
 
> openssl ver 1.1.1 seem to work fine.

Any reason to use 1.0.2 if a more recent version works?

The main reason I added support for 1.0.2 is that it's
included in the base system of FreeBSD and thus covered
by the "special exception" from section 3 of the GPLv2.

For Windows users I don't see an obvious benefit to stick
with 1.0.2.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Include-wincrypt.h-when-compiling-with-OpenSSL-on-Wi.patch
Type: text/x-patch
Size: 1272 bytes
Desc: not available
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20200921/681fbe0d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20200921/681fbe0d/attachment-0001.bin>


More information about the Privoxy-devel mailing list