panda3d install on fedora 27

Translation by google translator

I’m trying to install panda3d version 1.9.4 (stable) on a notbook with fedora27 - running kernel 4.15.3. But I’m getting the following error:

[ 1%] Building Bison object built/tmp/p3cppParser_cppBison.o
dtool/src/cppparser/cppBison.yxx:198.1-12: warning: deprecated directive, use ‘%pure-parser’ [-Wdeprecated]
%pure_parser
^^^^^^^^^^^^
[ 2%] Building C++ object built/tmp/p3cppParser_composite1.o
[ 2%] Building C++ object built/tmp/p3cppParser_composite2.o
[ 2%] Linking static library built/tmp/libp3cppParser.a
[ 2%] Building C++ object built/tmp/p3prc_composite1.o
In file included from dtool/src/prc/encryptStream.h:23:0,
from dtool/src/prc/configPage.cxx:21,
from dtool/src/prc/p3prc_composite1.cxx:5:
dtool/src/prc/encryptStreamBuf.h:71:18: error: field ‘_read_ctx’ has incomplete type ‘EVP_CIPHER_CTX {aka evp_cipher_ctx_st}’
EVP_CIPHER_CTX _read_ctx;
^~~~~~~~~
In file included from /usr/include/openssl/evp.h:14:0,
from dtool/src/prc/prcKeyRegistry.h:27,
from dtool/src/prc/configPage.cxx:19,
from dtool/src/prc/p3prc_composite1.cxx:5:
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of ‘EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}’
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
^~~~~~~~~~~~~~~~~
In file included from dtool/src/prc/encryptStream.h:23:0,
from dtool/src/prc/configPage.cxx:21,
from dtool/src/prc/p3prc_composite1.cxx:5:
dtool/src/prc/encryptStreamBuf.h:77:18: error: field ‘_write_ctx’ has incomplete type ‘EVP_CIPHER_CTX {aka evp_cipher_ctx_st}’
EVP_CIPHER_CTX _write_ctx;
^~~~~~~~~~
In file included from /usr/include/openssl/evp.h:14:0,
from dtool/src/prc/prcKeyRegistry.h:27,
from dtool/src/prc/configPage.cxx:19,
from dtool/src/prc/p3prc_composite1.cxx:5:
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of ‘EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}’
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
^~~~~~~~~~~~~~~~~
In file included from dtool/src/prc/p3prc_composite1.cxx:5:0:
dtool/src/prc/configPage.cxx: In member function ‘bool ConfigPage::read_prc(std::istream&)’:
dtool/src/prc/configPage.cxx:160:17: error: invalid use of incomplete type ‘EVP_MD_CTX {aka struct evp_md_ctx_st}’
_md_ctx = new EVP_MD_CTX;
^~~~~~~~~~
In file included from /usr/include/openssl/evp.h:14:0,
from dtool/src/prc/prcKeyRegistry.h:27,
from dtool/src/prc/configPage.cxx:19,
from dtool/src/prc/p3prc_composite1.cxx:5:
/usr/include/openssl/ossl_typ.h:92:16: note: forward declaration of ‘EVP_MD_CTX {aka struct evp_md_ctx_st}’
typedef struct evp_md_ctx_st EVP_MD_CTX;
^~~~~~~~~~~~~
In file included from dtool/src/prc/p3prc_composite1.cxx:5:0:
dtool/src/prc/configPage.cxx:240:24: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
delete (EVP_MD_CTX *)_md_ctx;
^~~~~~~
dtool/src/prc/configPage.cxx:240:10: warning: invalid use of incomplete type ‘struct evp_md_ctx_st’
delete (EVP_MD_CTX *)_md_ctx;
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/evp.h:14:0,
from dtool/src/prc/prcKeyRegistry.h:27,
from dtool/src/prc/configPage.cxx:19,
from dtool/src/prc/p3prc_composite1.cxx:5:
/usr/include/openssl/ossl_typ.h:92:16: note: forward declaration of ‘struct evp_md_ctx_st’
typedef struct evp_md_ctx_st EVP_MD_CTX;
^~~~~~~~~~~~~
In file included from dtool/src/prc/p3prc_composite1.cxx:5:0:
dtool/src/prc/configPage.cxx:240:24: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
delete (EVP_MD_CTX *)_md_ctx;
^~~~~~~
Storing dependency cache.
Elapsed Time: 6 sec
The following command returned a non-zero value: g++ -ftemplate-depth-70 -fPIC -c -o built/tmp/p3prc_composite1.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python3.6m -I/usr/include/eigen3 -DEIGEN_MPL2_ONLY= -DEIGEN_NO_DEBUG= -Idtool/src/prc -pthread -fno-exceptions -msse2 -ffast-math -fno-finite-math-only -O2 -DBUILDING_DTOOLCONFIG dtool/src/prc/p3prc_composite1.cxx
Build terminated.

Used Command:
bash:
python3 makepanda/makepanda.py --everything --installer --no-egl --no-gles --no-gles2 --no-opencv

I’d like to know how can I fix this error.

I suggest you get the latest version of the source from GitHub instead, which has this issue fixed.