Skip to content
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

Compile of v1.85.0 fails #149

Closed
Dirk1980ac opened this issue Jan 12, 2018 · 6 comments
Closed

Compile of v1.85.0 fails #149

Dirk1980ac opened this issue Jan 12, 2018 · 6 comments

Comments

@Dirk1980ac
Copy link

On my Linux system (Fedora 27) compile fails with error message as follows:

/home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/src/evp_pkey.cpp: In Elementfunktion »int logicalaccess::openssl::EVPPKey::type() const«:
/home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/src/evp_pkey.cpp:32:46: Fehler: falsche Verwendung des unvollständigen Typs »using element_type = std::remove_extent<evp_pkey_st>::type {aka struct evp_pkey_st}«
return EVP_PKEY_type(d_pkey.get()->type);
^~
In file included from /usr/include/openssl/evp.h:14:0,
from /home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/include/logicalaccess/crypto/evp_pkey.hpp:16,
from /home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/src/evp_pkey.cpp:7:
/usr/include/openssl/ossl_typ.h:93:16: Anmerkung: Vorwärtsdeklaration von »using element_type = std::remove_extent<evp_pkey_st>::type {aka struct evp_pkey_st}«
typedef struct evp_pkey_st EVP_PKEY;
^~~~~~~~~~~
/home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/src/evp_pkey.cpp:32:48: Fehler: falsche Verwendung des unvollständigen Typs »using element_type = std::remove_extent<evp_pkey_st>::type {aka struct evp_pkey_st}«
return EVP_PKEY_type(d_pkey.get()->type);
^~~~
In file included from /usr/include/openssl/evp.h:14:0,
from /home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/include/logicalaccess/crypto/evp_pkey.hpp:16,
from /home/dgottschalk/Projects/liblogicalaccess-1.85.0/plugins/cryptolib/src/evp_pkey.cpp:7:
/usr/include/openssl/ossl_typ.h:93:16: Anmerkung: Vorwärtsdeklaration von »using element_type = std::remove_extent<evp_pkey_st>::type {aka struct evp_pkey_st}«
typedef struct evp_pkey_st EVP_PKEY;
^~~~~~~~~~~
make[2]: *** [plugins/cryptolib/CMakeFiles/logicalaccess-cryptolib.dir/build.make:519: plugins/cryptolib/CMakeFiles/logicalaccess-cryptolib.dir/src/evp_pkey.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:123: plugins/cryptolib/CMakeFiles/logicalaccess-cryptolib.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2

In short: Forward declaration of an incomplete type.

Somebody an idea where this comes from?

Openssl-Libs and boost are installed and working.

@Liryna
Copy link
Contributor

Liryna commented Jan 12, 2018

Hi @Dirk1980ac ,

What is your version of boost and openssl ?
Try to pull the current master and rebuild. It is enough stable to be used.

@Dirk1980ac
Copy link
Author

I am using
boost 1.64.0
openssl 1.1.0g
both for x86_64 architecture.

I already tried to compile the reopsitories master, but this endet with the same result.

@Liryna
Copy link
Contributor

Liryna commented Jan 14, 2018

I cannot say if openssl changed something or it is the version of gcc/clang that you are using that do not support this style of struct.

Travis has no problem to build it https://travis-ci.org/islog/liblogicalaccess

@Dirk1980ac
Copy link
Author

I use GCC 7.2.1 and the standarf glibc. Okay, I'll take a deeper look and see if I can find the Problem. Thanks for you advice.

@Liryna
Copy link
Contributor

Liryna commented Jan 25, 2018

Hi @Dirk1980ac ,

have you been able to find the issue on the build ?

@Dirk1980ac
Copy link
Author

Yes, thank you. I did not find the problem itself, but i did a reinstall of the *-devel packages and now it works. Obviously something was messed up on them.

@Liryna Liryna closed this as completed Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants