You are not logged in.

#1 2017-05-17 05:47:29

Meridian
Member
Registered: 2017-05-17
Posts: 2

CMake broken after OpenSSL 1.1 Update

The issue is already commented on here: https://github.com/elysium-project/server/issues/713

Essentially, Arch's upgrade to OpenSSL 1.1 breaks the build.

Any directives to CMake, such as package(OPENSSL 1.0.2 REQUIRED) in CMakeLists, or specifying

-DOPENSSL_INCLUDE_DIR==/usr/include/openssl-1.0

seem to be ignored. All attempts to get the compiler to use openssl-1.0 instead of openssl (1.1) directories seem to be in vain.


It's time to call upon wiser minds.
Any help would be much appreciated.

Copied command list and output from the linked thread.

>pacman -S intel-tbb mysql

(install ace https://aur.archlinux.org/packages/ace/)

>git clone https://github.com/elysium-project/server.git

>cd server

>cmake .

>make

In file included from /home/eir/git_elysium/server/src/realmd/AuthSocket.cpp:27:0:
/home/eir/git_elysium/server/src/shared/Auth/Hmac.h:43:18: error: field 'm_ctx' has incomplete type 'HMAC_CTX {aka hmac_ctx_st}'
         HMAC_CTX m_ctx;
                  ^~~~~
In file included from /usr/include/openssl/evp.h:14:0,
                 from /usr/include/openssl/hmac.h:15,
                 from /home/eir/git_elysium/server/src/shared/Auth/Hmac.h:23,
                 from /home/eir/git_elysium/server/src/realmd/AuthSocket.cpp:27:
/usr/include/openssl/ossl_typ.h:102:16: note: forward declaration of 'HMAC_CTX {aka struct hmac_ctx_st}'
 typedef struct hmac_ctx_st HMAC_CTX;
                ^~~~~~~~~~~
make[2]: *** [src/realmd/CMakeFiles/realmd.dir/build.make:63: src/realmd/CMakeFiles/realmd.dir/AuthSocket.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:505: src/realmd/CMakeFiles/realmd.dir/all] Error 2

Last edited by Meridian (2017-05-17 17:54:11)

Offline

#2 2017-05-17 12:12:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: CMake broken after OpenSSL 1.1 Update

There doesn't appear to be a PKGBUILD for elysium-project, so replicating the issue may be difficult.

Can you post the exact cmake / make commands used and their output ?

Are you running those commands as root or as user ?

Last edited by Lone_Wolf (2017-05-17 12:13:23)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2017-05-17 17:56:25

Meridian
Member
Registered: 2017-05-17
Posts: 2

Re: CMake broken after OpenSSL 1.1 Update

Lone_Wolf wrote:

There doesn't appear to be a PKGBUILD for elysium-project, so replicating the issue may be difficult.

Can you post the exact cmake / make commands used and their output ?

Are you running those commands as root or as user ?

You should be able to replicate it on any up-to-date Arch installation.
Copied the commands here for convenience.

Non-install commands are being run as a user, but that doesn't make a difference.

Offline

#4 2017-05-18 10:22:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: CMake broken after OpenSSL 1.1 Update

It does look like the problems may be caused by the openssl 1.0 package.

Keep an eye on arch-dev-public ML thread .

Last edited by Lone_Wolf (2017-05-18 10:22:38)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2017-05-18 13:48:48

Infernales
Member
From: Russia
Registered: 2017-03-30
Posts: 7
Website

Re: CMake broken after OpenSSL 1.1 Update

cmake ../ -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0
sudo rm /usr/lib64/libssl.so
sudo ln -s /usr/lib64/libssl.so.1.0.0 /usr/lib64/libssl.so
sudo rm /usr/lib64/libcrypto.so
sudo ln -s /usr/lib64/libcrypto.so.1.0.0 /usr/lib64/libcrypto.so
make
make install
sudo rm /usr/lib64/libssl.so
sudo ln -s /usr/lib64/libssl.so.1.1 /usr/lib64/libssl.so
sudo rm /usr/lib64/libcrypto.so
sudo ln -s /usr/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so

Offline

Board footer

Powered by FluxBB