-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add support for OpenSSL 1.1 #33
Conversation
Can you test it works with OpenSSL 1.1, @th-otto ? |
I cannot test it on linux anymore, because i cannot simultaneously install development packages for both openssl 1.1.0 and openssl-3, because they conflict with each other. Your patch is not yet merged, so i had to apply it manually. But i get other error, when trying to cross-compile for mint (with openssl 1.1.1 libraries installed)
Although it does not seem to cause problems for this particular case, the Compiler is gcc-7.5.0 |
I'll wait until I can setup some automatic tests for OpenSSL 1.1 before merging this.
I cannot reproduce this in any of my setups, but it is indeed an error. I pushed a tentative fix.
This is likely caused by either As a workaround if your cross-compiler doesn't outputs "/usr/local/include" you can add For
|
Yes, strangely gcc-13 seems to accept this, although it is clearly an error, atleast in non-C++ code. Your workaround fixed this.
Maybe, i have to check that. If configure.ac invokes fltk-config, that may indeed be a problem when cross-compiling. However, the -I/usr/local/include does not seem to come from the fltk-config script, they are part of $CPPFLAGS (although i specified --prefix=/usr). Same for LDFLAGS: they are set to -L/usr/lib. That will even be wrong when compiling natively (eg. on openSUSE, fedora and others, 64-bit libraries are installed in /usr/lib64, and linking with -L/usr/lib wil give a warning atleast from the linker about incompatible libraries). For further tests, i need cross-compiled FLTK libraries first. |
Amazing :-)
Do you see any messages in the terminal? As a quick test, you could try to disable the threaded DNS resolver by using Can you resolve other hosts from the machine?, does
|
Also, can you share your patch/changes?, so I can also understand which parts are not working properly.
That solution sounds good to me, in case you want to make a MR :-)
Then, it is likely to be coming from the Adding |
There are no error messages, it just times out after some time with the message But seems to be a bit random. Sometimes it works. Maybe just a problem with my setup (using aranym with a bridge to the host), since sometimes other network connections also fail. I've always used --disable-threaded-dns, since the only thread implementation currently available is pth, and that is non-preemptive and just causes problems because of this.
I have disabled that currently when using gcc, since gcc should always look in that directories by default. Should that cause problems on BSD system, the test could also be changed to Other things that i changed: looking for png library uses png-config. I've tested it also on linux, but may need some testing for other systems. For FLTK i currently just use -lfltk when cross-compiling, since it does not seem to require any special cflags. Maybe that test could also be changed to some The dpi programs have to be linked explicitly to the x11 libraries. This is again only needed because of static libraries, but should not hurt on other systems. Searching for openssl also uses pkg-config now. I have no mbedtls yet, so i don't know what files are installed there. All in all the patches aren't that large, so if you don't want to apply them, i can just keep them as mint-specific patches. But note that this is all quite experimental. There are other quirks currently, some drawing problems (which i suspect to be fVDI problems in combination with aranym), the tooltips sometimes immediately disappearing again etc. And of course that X.App that is needed is also quite experimental. However the rendering always is quite strange, also in the linux version of dillo. Maybe some features of CSS that are not implemented yet? |
I would like to continue the discussion for Atari support here #34, as I want this PR to be focused on the support for OpenSSL 1.1 only. The other issues we can deal in other PR, so we break them into small changes. |
6f56d07
to
efa4deb
Compare
Before OpenSSL 3.0, the EVP_PKEY_get_id() was named EVP_PKEY_id().
In Ubuntu 20.04 the libssl-dev package includes the version 1.1.1f as reported by: https://packages.ubuntu.com/focal/libssl-dev
The README file is required to work with the "gnu" level of strictness: https://www.gnu.org/software/automake/manual/html_node/Strictness.html
764821c
to
900a305
Compare
The function is not available in OpenSSL 1.1 with the
_get
suffix.