LinuxQuestions.org
Visit Jeremy's Blog.
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 09-03-2017, 04:36 PM   #1
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 152

Rep: Reputation: 50
Openssl 1.1.0 build help


Has anyone had any luck building openssl 1.1.0. I tried to modify the slackbuild from current, but things are too different from 1.0.2.

Need this because of a pci compliance scan.
 
Old 09-03-2017, 07:45 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
I really don't mess with ?.SlackBuild files but I was curious, did two changes to line 85 in RED

Code:
sed -i "s/#define OPENSSL_VERSION_NUMBER.*/\/* Use 0x1000205fL (1.1.0) below to avoid pointlessly breaking the ABI *\/\n#define OPENSSL_VERSION_NUMBER 0x1000205fL/g" /usr/include/openssl/opensslv.h || exit 1
it built
Quote:
Slackware package /tmp/openssl-solibs-1.1.0-x86_64-1.txz created.
didn't install it.

there were two files to install I guess:
/tmp/openssl-1.1.0-x86_64-1.txz
/tmp/openssl-solibs-1.1.0-x86_64-1.txz

Last edited by glorsplitz; 09-03-2017 at 07:48 PM. Reason: added info
 
Old 09-03-2017, 08:32 PM   #3
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 152

Original Poster
Rep: Reputation: 50
Thanks glorsplitz,

I had done that, via ssh on a virtual 14.2 box. building the package the slackbuild installed libcrypto to /usr/lib64 instead of the tmp/pkg directory. This killed mc and ssh. I had a heck of a time recovering my virtual machine.

Did you not get that file in /usr/lib64?
 
Old 09-03-2017, 10:11 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Yes, I messed things up too, ssh, mc. Maybe best to leave to experts. My current vm is back to normal.

Let us know if you ever get anywhere.

Last edited by glorsplitz; 09-03-2017 at 11:03 PM. Reason: updated comments
 
Old 09-04-2017, 02:06 AM   #5
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
If you want to pursue this further, you can start at https://repology.org/metapackage/openssl/versions and look in the distros' build repositories (to the extent you can find them) to see what changes they applied versus 1.0.2l (to the extent you can understand them).

However, the likely conclusion is that you need to rebuild whatever applications you need that link to openssl, for the reasons mentioned in Patrick's SlackBuild. (You need to ponder the comment above the unconvincing change you tried -- the ABI very likely *has* changed. Just remove Patrick's fixup.) But many of those applications will need version bumps or patches to build (see e.g. Gentoo's note).
 
1 members found this post helpful.
Old 09-04-2017, 10:18 PM   #6
dgrames
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 152

Original Poster
Rep: Reputation: 50
I did get this to build. In the end I removed the line that sets the version number because everything is broken. openssh libssh2, bind, httpd, sendmail, use your imagination.

I changed the config a little, I suppose it could be right.

./config \
--prefix=/usr \
--openssldir=/etc/ssl \
zlib \
enable-camellia \
enable-seed \
enable-rfc3779 \
enable-cms \
enable-md2 \
enable-ssl3 \
enable-ssl3-method \
no-mdc2 \
no-idea \
no-rc5 \
no-sse2 \
no-weak-ssl-ciphers \
shared

The only other thing I changed was the make install line, it now is:

make install DESTDIR=$PKG1 || exit 1

openssh needs to be patched to work, I found a long patch on the arch linux site that worked.

Everything else is recompiling OK so far as long as I use the versions in current.
I'm running 14.2, but a lot of those won't accept the new openssl where the current versions do.

I'm Having Fun
 
  


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
Slackware 14.1 + OpenSSL 1.1.0 build problems MichaelHallager Slackware 3 08-26-2016 06:14 PM
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 01:22 AM.

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