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

Failure to build against OpenSSL v1.1.0 #5757

Closed
cyrelk opened this issue Nov 30, 2016 · 6 comments

Comments

Projects
None yet
7 participants
@cyrelk
Copy link

commented Nov 30, 2016

Operating Systems

Server: Debian Stretch
Client: Not Applicable

I get the following error when I try to compile synergy on an up-to-date debian Stretch:

/srv/src/synergy/src/lib/net/SecureSocket.cpp: In member function ‘void SecureSocket::showSecureCipherInfo()’:
/srv/src/synergy/src/lib/net/SecureSocket.cpp:810:46: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’
STACK_OF(SSL_CIPHER) * cStack = m_ssl->m_ssl->session->ciphers;
^~
In file included from /usr/include/openssl/crypto.h:31:0,
from /usr/include/openssl/comp.h:16,
from /usr/include/openssl/ssl.h:47,
from /srv/src/synergy/src/lib/net/SecureSocket.cpp:27:
/usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of ‘SSL {aka struct ssl_st}’
typedef struct ssl_st SSL;
^~~~~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unused-local-typedef’ [-Werror]
cc1plus: all warnings being treated as errors
src/lib/net/CMakeFiles/net.dir/build.make:134 : la recette pour la cible « src/lib/net/CMakeFiles/net.dir/SecureSocket.cpp.o » a échouée
make[2]: *** [src/lib/net/CMakeFiles/net.dir/SecureSocket.cpp.o] Erreur 1
CMakeFiles/Makefile2:549 : la recette pour la cible « src/lib/net/CMakeFiles/net.dir/all » a échouée
make[1]: *** [src/lib/net/CMakeFiles/net.dir/all] Erreur 2
Makefile:83 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
Going back to: /srv/src/synergy
Error: make failed: 512

Synergy Version

v1.8.5-stable

Steps to reproduce bug

Compilation

Other info

Response from the debian package maintainer:

This is not a bug in OpenSSL. Those structures are no longer
accessable and you need to use functions to get that now.

See:
https://wiki.openssl.org/index.php/1.1_API_Changes

@XinyuHou

This comment has been minimized.

Copy link

commented Dec 5, 2016

Pull request 5746 would fix this issue

@XinyuHou XinyuHou added the bug label Dec 5, 2016

@XinyuHou XinyuHou changed the title Cannot compile synergy on a debian Stretch Incompatible with newer version of OpenSSL Dec 5, 2016

@level323

This comment has been minimized.

Copy link

commented Apr 3, 2017

I confirm I encountered the same issue on a Debian Stretch box I'm in the middle of provisioning.

FWIW An ugly interim hack which worked for me was to copy the following files from a Debian Jessie system (of the same CPU architecture) across to the stretch machine:

/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
...and...
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0

@jlafourc

This comment has been minimized.

Copy link

commented Apr 27, 2017

Hi,

Is this PR planned to be merged soon ? Just to know ...

Thanks

Julien

@nlyan nlyan changed the title Incompatible with newer version of OpenSSL Failure to build against OpenSSL 1.1.0 May 5, 2017

@nlyan nlyan changed the title Failure to build against OpenSSL 1.1.0 Failure to build against OpenSSL v1.1.0 May 5, 2017

@nlyan nlyan closed this May 5, 2017

@geeksmith

This comment has been minimized.

Copy link

commented May 6, 2017

You can compile on a newer Debian release if you use the older headers and library:
sudo apt-get install libssl1.0-dev

It would be better if synergy would conform to the changes in the latest OpenSSL library.

@nlyan

This comment has been minimized.

Copy link
Contributor

commented May 10, 2017

We think we've nailed this in v1.9, please see

https://symless.com/forums/topic/2587-synergy-v190-release-candidate/

@drocsid

This comment has been minimized.

Copy link

commented Oct 3, 2017

It didn't seem to work on my debian system. Still seemed to reference the older release, not 1.1.0 . https://symless.com/forums/topic/4143-using-old-ssl-libraries-in-version-18/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.