LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-12-2020, 12:44 PM   #1
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Slackware 14.1 - OpenSSL-1.1.1


Anyone try building OpenSSL-1.1.1 on Slackware-14.1?

Any issues??
 
Old 12-14-2020, 05:57 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Have no 14.1 system to test this, however..
Compiled fine on slackware64-14.2 here, there shouldn't be any significant roadblocks I think.
Using it only because it's a requirement for linking a more recent qt5 than what is normally available for 14.2.

How it was done:

1. remove stock openssl and openssl-solibs
2. grab sources from -current repository (at the moment it's just openssl-1.1.1i and openssl10-1.0.2u)
3. install the 4 resulting packages, and see what can be recompiled to link with 1.1 (in my case it was curl, wget and couple of others)

If something breaks and you can't fix it; save the relevant logs, attach them here maybe someone can help.
 
Old 12-03-2023, 08:40 PM   #3
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Rep: Reputation: Disabled
For anyone curious, I've done this and it works but it is not recommended because it breaks a lot of stuff. It will break ssh so you will need to rebuild it --without-openssl because if you try to rebuild it with ssl, it won't work, it looks for libcrypto.so and so does wget.

I was trying to compile a c program that was looking for specific EVP functions that were somehow not available in the original 2016 build, but in the new ones they are located somewhere I believe in libcrypto.a or libssl.a . There are no libcrypto.so.1 shared libraries that will get replaced if you remove them from the system.

As stated, without removing the original stuff and while linking my c program with the new build with
Code:
-L /mynewbuild/openssl-no-shared
, I would get errors:

Code:
enc.c:(.text+0x3d5): undefined reference to `EVP_CIPHER_iv_length'
enc.c:(.text+0x408): undefined reference to `EVP_PKEY_size'
enc.c:(.text+0x42f): undefined reference to `EVP_CIPHER_block_size'
collect2: error: ld returned 1 exit status
I found the solution. The old evp.h does not contain those functions but the new ones do. A temporary solution to build binaries using a NEW build of openssl, that is 3.3 as of this date, is the latest build from git, is to copy the entire /include/openssl/* to /usr/include/openssl but not before making a backup of the entire original directory in case other stuff breaks. Or after you build whatever you want, just copy the original folder back. That way you can have the latest openssl to build whatever software you have but not actually break anything

Last edited by rootaccess; 12-03-2023 at 09:55 PM. Reason: discovered the solution to use the latest openssl but not remove the original
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] new openssl 1.1.0 - broken compatibility with openssl 1.0.1 FranekW Linux - Newbie 2 06-26-2018 10:49 AM
Does recursive mutex lock in openssl will affect other openssl users in same system? T.Selvan Linux - Networking 3 02-09-2016 12:59 AM
openssl: any simple examples no how to use openssl to do some decryption? eantoranz Programming 7 07-26-2012 07:57 PM
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration