Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1436273 - ghostscript update cause symbol lookup error
ghostscript update cause symbol lookup error
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ghostscript (Show other bugs)
7.1
x86_64 Linux
high Severity medium
: rc
: ---
Assigned To: David Kaspar [Dee'Kej]
QE Internationalization Bugs
: EasyFix, Patch, Reproducer
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-27 10:26 EDT by Jaroslav Spanko
Modified: 2017-08-01 19:03 EDT (History)
5 users (show)

See Also:
Fixed In Version: ghostscript-9.07-26.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-01 19:03:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2180 normal SHIPPED_LIVE Low: ghostscript security and bug fix update 2017-08-01 15:40:55 EDT

  None (edit)
Description Jaroslav Spanko 2017-03-27 10:26:55 EDT
Description of problem:
After update ghostscript gs fails with 
gs: symbol lookup error: /lib64/libgs.so.9: undefined symbol: cmsCreateContext

ghostscript.x86_64 0:9.07-18.el7 will be updated 
ghostscript.x86_64 0:9.07-20.el7_3.1 will be an update

Version-Release number of selected component (if applicable):
ghostscript.x86_64 0:9.07-20.el7_3.1

How reproducible:
100%

Steps to Reproduce:
Update ghostscript.x86_64 0:9.07-18.el7 to ghostscript.x86_64 0:9.07-20.el7_3.1

Actual results:
gs: symbol lookup error: /lib64/libgs.so.9: undefined symbol: cmsCreateContext

Expected results:
gs without symbol lookup error

Additional info:
This is because of lcms2

ghostscript.x86_64 0:9.07-20.el7_3.1 with lcms2-2.5-4.el7.x86_64 fails
ghostscript.x86_64 0:9.07-20.el7_3.1 with lcms2-2.6-2.el7.x86_64 works

Could you please add lcms2-2.6-2.el7.x86_64 as dependency for ghostscript.x86_64 0:9.07-20.el7_3.1 ?

Thank you
Comment 2 David Kaspar [Dee'Kej] 2017-03-27 11:31:53 EDT
Hello, as you can see here:

$ rpm -qpR ghostscript-9.07-20.el7_3.3.x86_64.rpm | grep lcms2
> liblcms2.so.2()(64bit)

The ghostscript-9.07-20.el7_3.3.x86_64.rpm has the dependency requirement for *lcms2*.

If you try to install the ghostscript package with 'yum install', it will automatically install current lcms2 package for RHEL-7.3 (lcms2-2.6-3.el7.x86_64). Removing the lcms2 package will actually remove the ghostscript package as well.

In other words, the ghostscript package has the requirements for lcms2 package, and in current RHEL-7.3 repositories there should the lcms2 version 2.6 available.

Looking into the specfile:
> BuildRequires: lcms2-devel >= 2.4-5

The only thing I can do is to increase the version requirement for this, but from your problem description, I'm not sure it would actually solve your problem.

Best regards,

David
Comment 5 Kamil Dudka 2017-03-28 05:49:26 EDT
(In reply to David Kaspar [Dee'Kej] from comment #2)
> Looking into the specfile:
> > BuildRequires: lcms2-devel >= 2.4-5

This is a build-time dependency, not run-time dependency.  Library dependencies are scanned by rpm-build automatically and everything should just work if the shared libraries are properly versioned (by their SONAMEs).  If they are not, you need to introduce an explicit run-time dependency.
Comment 6 David Kaspar [Dee'Kej] 2017-03-28 06:24:50 EDT
(In reply to Kamil Dudka from comment #5)
> Library
> dependencies are scanned by rpm-build automatically and everything should
> just work if the shared libraries are properly versioned (by their SONAMEs).
Yeah, this was my thinking initially. I didn't expect that 'yum upgrade' wouldn't update the lcms2 package as well, but I guess our customer used the 'yum upgrade ghostscript' command, which would explain the problem.

> If they are not, you need to introduce an explicit run-time dependency.
Yes, I will add the explicit 'Requires: lcms2 >= 2.6-1' (2.6-3 if necessary). Thanks.
Comment 16 errata-xmlrpc 2017-08-01 19:03:50 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2180

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