Bug 1665630 - zeromq is linked against an old version of libsodium preventing compilation or linking
Summary: zeromq is linked against an old version of libsodium preventing compilation o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: zeromq
Version: epel7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Denis Arnaud
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-12 01:00 UTC by Ben Woodard
Modified: 2019-10-22 10:01 UTC (History)
4 users (show)

Fixed In Version: zeromq-4.1.4-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-29 00:40:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Woodard 2019-01-12 01:00:33 UTC
Description of problem:
We are developing an application which uses both libsodium and zeromq from EPEL and this makes linking impossible.

zeromq-4.1.4-5.el7 brings in libsodium.so.13 from libsodium13-1.0.5-1.el7.x86_64.rpm and if we want to be able to link we must install libsodium13-devel-1.0.5-1.el7 otherwise we get conflicting symbols from libsodium-devel-1.0.16-1.el7 

We can't use libsoldium13 though because it is missing the base64 functions which we use. There doesn't seem to be any reason why zeromq must link with the older libsodium13 rather than the newer libsodium and so this whole problem could be eliminated if zeromq was simply recompiled to use the current libsodium. This can be done with a simple recompile within the context of having libsodium-devel installed rather than having libsodium13-devel installed. NB there is no dependency on the older version of libsodium.

Version-Release number of selected component (if applicable):
zeromq-4.1.4-5.el7 

How reproducible:
Always

Steps to Reproduce:
1. wget https://dl.fedoraproject.org/pub/epel/7/SRPMS/Packages/z/zeromq-4.1.4-5.el7.src.rpm
2. rpm -Uvh zeromq-4.1.4-5.el7.src.rpm
3. cd rpmbuild/SPECS
4. sudo yum install libsodium-devel
5. rpmbuild -ba zeromq.spec
6. rpm -qp --requires /home/ben/rpmbuild/RPMS/x86_64/zeromq-4.1.4-5.el7.x86_64.rpm | grep sodium


Actual results:
libsodium.so.13()(64bit)

Expected results:
libsodium.so.23()(64bit)

Comment 1 Denis Arnaud 2019-01-13 15:27:48 UTC
Thanks Ben, that's a good catch!

If we first remove libsodium13, then zeromq compiles with libsodium-1.0.16, ie by linking with libsodium.so.23 as expected.

New build (for zeromq-4.1.4-6.el7): https://koji.fedoraproject.org/koji/taskinfo?taskID=32000270

$ yum remove libsodium13 zeromq
$ yum --enablerepo=epel-testing install zeromq-devel-4.1.4-6 || yum install https://kojipkgs.fedoraproject.org//work/tasks/273/32000273/zeromq-devel-4.1.4-6.el7.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/273/32000273/zeromq-4.1.4-6.el7.x86_64.rpm
$ ldd -r /usr/lib64/libzmq.so | grep sodium
libsodium.so.23 => /lib64/libsodium.so.23

Comment 2 Fedora Update System 2019-01-13 15:32:19 UTC
zeromq-4.1.4-6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-cea8576f94

Comment 3 Fedora Update System 2019-01-14 01:13:07 UTC
zeromq-4.1.4-6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-cea8576f94

Comment 4 Denis Arnaud 2019-01-16 13:09:59 UTC
(In reply to Ben Woodard from comment #0)
> Description of problem:
> We are developing an application which uses both libsodium and zeromq from
> EPEL and this makes linking impossible.

Does it work for you, Ben? If yes, could you give some positive karma on https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-cea8576f94 ?

Comment 5 Travis Gummels 2019-01-16 16:44:05 UTC
(In reply to Denis Arnaud from comment #4)
> (In reply to Ben Woodard from comment #0)
> > Description of problem:
> > We are developing an application which uses both libsodium and zeromq from
> > EPEL and this makes linking impossible.
> 
> Does it work for you, Ben? If yes, could you give some positive karma on
> https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-cea8576f94 ?

Hi Denis,

LLNL reports that it works for them so I've added karma as requested.

Travis

Comment 6 Fedora Update System 2019-01-29 00:40:25 UTC
zeromq-4.1.4-6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.