RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 607251 - missing libtermcap.so.2 symlinks
Summary: missing libtermcap.so.2 symlinks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: distribution
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Lichvar
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-23 15:52 UTC by Jeff Bastian
Modified: 2019-02-15 13:30 UTC (History)
5 users (show)

Fixed In Version: compat-libtermcap-2.0.8-49.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 20:16:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
termcap-demo program (751 bytes, text/plain)
2010-06-23 16:03 UTC, Jeff Bastian
no flags Details

Description Jeff Bastian 2010-06-23 15:52:23 UTC
Description of problem:
libtermcap has been replaced by ncurses (see bug 606588) in RHEL 6.0.  In order to provide compatibility with applications that were compiled on RHEL 5.x, the ncurses package should provide a libtermcap.so.2 symlink to libtinfo.so.5.

Version-Release number of selected component (if applicable):
ncurses-5.7-3.20090208.el6

How reproducible:
every time

Steps to Reproduce:
1. on a RHEL 5.x system:
     $ gcc -o termcap-demo termcap-demo.c -ltermcap
     $ ./termcap-demo 
     Your terminal is 80x48 characters
2. copy the termcap-demo binary to a RHEL 6.x system
     $ scp termcap-demo rhel6-system:/tmp
3. try to run the program on the RHEL 6.x system
     $ /tmp/termcap-demo 
     /tmp/termcap-demo: error while loading shared libraries: libtermcap.so.2:
     cannot open shared object file: No such file or directory
4. create a symlink to libtinfo.so.5 and try again
     $ sudo ln -s /lib64/libtinfo.so.5 /lib64/libtermcap.so.2
     $ /tmp/termcap-demo
     Your terminal is 80x48 characters

Actual results:
missing libtermcap.so.2 library prevents the program from running properly on a RHEL 6 system

Expected results:
RHEL 6 should allow applications compiled on RHEL 5 to work correctly

Additional info:

Comment 1 Jeff Bastian 2010-06-23 16:03:35 UTC
Created attachment 426302 [details]
termcap-demo program

Comment 2 Miroslav Lichvar 2010-06-23 16:12:05 UTC
The ABI provided by libtinfo is not 100% compatible with libtermpcap, so I'm not sure if creating the symlink is a good fix. It will probably work with most termcap applications, but some might fail.

Is this ok or do we need to resurrect libtermcap with termcap database in a compat package?

Comment 13 releng-rhel@redhat.com 2010-11-10 20:16:59 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Comment 14 Dan Locks 2010-12-02 22:07:50 UTC
Unfortunately, compat-libtermcap-2.0.8-49.el6 does not create the links mentioned above.

[root@foo tmp]# find /usr/lib64 -name "libterm*"
/usr/lib64/libtermcap.so

[root@foo tmp]# yum install compat-libtermcap
Loaded plugins: rhnplugin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libtermcap.x86_64 0:2.0.8-49.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================
 Package                               Arch                       Version                             Repository                                Size
=====================================================================================================================================================
Installing:
 compat-libtermcap                     x86_64                     2.0.8-49.el6                        rhel-x86_64-server-6                      16 k

Transaction Summary
=====================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 16 k
Installed size: 0  
Is this ok [y/N]: y
Downloading Packages:
compat-libtermcap-2.0.8-49.el6.x86_64.rpm                                                                                     |  16 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : compat-libtermcap-2.0.8-49.el6.x86_64                                                                                         1/1 

Installed:
  compat-libtermcap.x86_64 0:2.0.8-49.el6                                                                                                            
Complete!

[root@foo tmp]# find /usr/lib64 -name "libterm*"
/usr/lib64/libtermcap.so
-------------------
[root@foo tmp]# rpm -V compat-libtermcap-2.0.8-49.el6.x86_64.rpm 
package compat-libtermcap-2.0.8-49.el6.x86_64.rpm is not installed
[root@foo tmp]# rpm -i compat-libtermcap-2.0.8-49.el6.x86_64.rpm 
        package compat-libtermcap-2.0.8-49.el6.x86_64 is already installed

That's not right!

Comment 15 Dan Locks 2010-12-02 22:23:48 UTC
opened a new bug, which I think is the correct action.  sorry to create bugspam.

bug 659501


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