You are not logged in.

#1 2019-05-22 13:06:07

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

[SOLVED] Conflicting OpenSSL Versions

I had an app from the AUR which I think used its own openssl. I've removed that app but it seems to have left something behind because now I'm not able to install Perl modules that use openssl. How do I clean this up so I have only one version?

# sudo cpan IO::Socket::SSL
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 22 May 2019 12:17:03 GMT
Running install for module 'IO::Socket::SSL'
Checksum for /root/.cpan/sources/authors/id/S/SU/SULLR/IO-Socket-SSL-2.066.tar.gz ok
Configuring S/SU/SULLR/IO-Socket-SSL-2.066.tar.gz with Makefile.PL
API-different OpenSSL versions compiled in (0x1010008f) vs linked (0x1010102f) at Makefile.PL line 68.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  SULLR/IO-Socket-SSL-2.066.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK

Last edited by JimDeadlock (2019-05-22 14:49:15)

Offline

#2 2019-05-22 13:16:56

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] Conflicting OpenSSL Versions

What app did you remove and how did you remove it?

Offline

#3 2019-05-22 13:23:21

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

It was 'asf' from the AUR - I did:

# sudo pacman -R asf
# sudo pacman -R openssl-1.0
# openssl version
OpenSSL 1.1.1b  26 Feb 2019

Offline

#4 2019-05-22 13:46:48

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] Conflicting OpenSSL Versions

Your probably looking at a dependency that was not removed.

There's probably a better way to resolve this but you could re-install those two packages and then use the proper pacman command to remove everything.

https://wiki.archlinux.org/index.php/Pa … g_packages

Offline

#5 2019-05-22 13:55:50

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

I tried that, but I'm still getting the cpan error from my original post sad

# sudo pacman -Rs asf
checking dependencies...

Packages (3) dotnet-host-2.2.3+105-1  openssl-1.0-1.0.2.r-1  asf-4.0.1.4-1

Total Removed Size:  52.72 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/3) removing asf                                                                                                    [#######################################################################] 100%
(2/3) removing openssl-1.0                                                                                            [#######################################################################] 100%
(3/3) removing dotnet-host                                                                                            [#######################################################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...

Offline

#6 2019-05-22 13:57:35

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

Mind you, I'm assuming that this is something to do with the asf install but it may be something totally unrelated.

Offline

#7 2019-05-22 14:30:07

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Conflicting OpenSSL Versions

With openssl-1.0 installed is the issue still present?

Offline

#8 2019-05-22 14:32:27

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

Yes it is - if I just remove asf but leave openssl-1.0 I still get the error.

Offline

#9 2019-05-22 14:37:37

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Conflicting OpenSSL Versions

Please try removing openssl-1.0 then rebuild Net::SSLeay which should then use openssl 1.1 as provided by the openssl package.

Offline

#10 2019-05-22 14:48:59

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

Bingo! Thank you!

Offline

#11 2019-05-22 14:56:17

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Conflicting OpenSSL Versions

The error may come back after an update of openssl package update due to

if (my $compiled = eval {
    require Net::SSLeay;
    Net::SSLeay::OPENSSL_VERSION_NUMBER()
}) {
    # don't support too old OpenSSL versions anymore, only causes trouble
    die sprintf(
	"minimal required version for OpenSSL is 0.9.8, but your Net::SSLeay reports 0x%08x",
	$compiled) if $compiled < 0x00908000;

    my $linked = Net::SSLeay::SSLeay();
    if (($compiled ^ $linked) >= 0x00001000) {
	die sprintf("API-different OpenSSL versions compiled in (0x%08x) vs linked (0x%08x)",
	    $compiled,$linked);
    }
}

Even if openssl is compatible according to the openssl authors the IO::Socket::SSL author requires a rebuild of Net::SSLeay

Offline

#12 2019-05-22 14:57:35

JimDeadlock
Member
From: London
Registered: 2019-03-20
Posts: 83

Re: [SOLVED] Conflicting OpenSSL Versions

OK thanks for the heads-up, I'll remember to do that if anything breaks.

Offline

Board footer

Powered by FluxBB