[OpenIndiana-discuss] Compiling qpdf

Peter Tribble peter.tribble at gmail.com
Fri Aug 15 10:34:39 UTC 2025


Those should be defined in <openssl/evp.h>

One possible cause is that you're somehow using the openssl 1.0.2 headers,
as the
missing functions appeared in openssl 1.1.


On Fri, Aug 15, 2025 at 11:19 AM Apostolos Syropoulos via
openindiana-discuss <openindiana-discuss at openindiana.org> wrote:

> Hello,
> I am trying to compile qpdf and I am getting the following errors:
> [ 19%] Building CXX object
> libqpdf/CMakeFiles/libqpdf_object.dir/QPDFCrypto_openssl.cc.o
> /container/source/var/qpdf-main/libqpdf/QPDFCrypto_openssl.cc: In
> constructor 'QPDFCrypto_openssl::QPDFCrypto_openssl()':
> /container/source/var/qpdf-main/libqpdf/QPDFCrypto_openssl.cc:98:12:
> error: 'EVP_MD_CTX_new' was not declared in this scope; did you mean
> 'EVP_MD_CTX_md'?
>    98 |     md_ctx(EVP_MD_CTX_new()),
>       |            ^~~~~~~~~~~~~~
>       |            EVP_MD_CTX_md
> /container/source/var/qpdf-main/libqpdf/QPDFCrypto_openssl.cc: In
> destructor 'virtual QPDFCrypto_openssl::~QPDFCrypto_openssl()':
> /container/source/var/qpdf-main/libqpdf/QPDFCrypto_openssl.cc:108:5:
> error: 'EVP_MD_CTX_reset' was not declared in this scope; did you mean
> 'EVP_MD_CTX_create'?
>   108 |     EVP_MD_CTX_reset(md_ctx);
>       |     ^~~~~~~~~~~~~~~~
>       |     EVP_MD_CTX_create
> /container/source/var/qpdf-main/libqpdf/QPDFCrypto_openssl.cc:109:5:
> error: 'EVP_CIPHER_CTX_reset' was not declared in this scope; did you mean
> 'EVP_CIPHER_CTX_free'?
>   109 |     EVP_CIPHER_CTX_reset(cipher_ctx);
>       |     ^~~~~~~~~~~~~~~~~~~~
>       |     EVP_CIPHER_CTX_free
>
> The problem is that the various symbols are defined in fileopenssl/env.h
> which is missing from my installation. I have donea Google search and it
> seems this file should be there in anystandard distribution.  Also, the
> following command clearlyshows that this file is not part of OpenIndiana:
> $ pkg search -r env.h
> INDEX      ACTION VALUE                          PACKAGE
> basename   file   usr/include/proftpd/env.h
> pkg:/service/network/ftp/proftpd at 1.3.9-2025.0.0.0
> basename   file   usr/include/spdlog/cfg/env.h
>  pkg:/library/c++/spdlog at 1.15.3-2025.0.0.0
> basename   file   usr/include/c-client/env.h
>  pkg:/library/uw-imap at 2007.6-2025.0.0.4
> basename   file   usr/demo/link_audit/src/env.h
> pkg:/source/demo/system at 0.5.11-2025.0.0.22719
> basename   file   usr/include/sys/sysevent/env.h
> pkg:/system/header at 0.5.11-2025.0.0.22719
> basename   file   usr/demo/link_audit/src/env.h
> pkg:/source/demo/system at 0.5.11-2025.0.0.22719
> basename   file   usr/include/sys/sysevent/env.h
> pkg:/system/header at 0.5.11-2025.0.0.22719
> basename   file   usr/demo/link_audit/src/env.h
> pkg:/source/demo/system at 0.5.11-2025.0.0.22719
>
> So can someone let me know where is this file?Thanks in advance.A.S.
> ----------------------Apostolos Syropoulos
> Xanthi, Greece
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/


More information about the openindiana-discuss mailing list