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 801247 - ghostscript 8.70-11.el6_2.6 fails to build from source (missing libstdc++)
Summary: ghostscript 8.70-11.el6_2.6 fails to build from source (missing libstdc++)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ghostscript
Version: 6.2
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-08 02:58 UTC by Kurt Seifried
Modified: 2012-03-08 17:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-08 11:17:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kurt Seifried 2012-03-08 02:58:32 UTC
Description of problem:

ghostscript 8.70-11.el6_2.6 fails to build from source (missing libstdc++)

Version-Release number of selected component (if applicable):

ghostscript 8.70-11.el6_2.6 

How reproducible:

Always

Steps to Reproduce:

# ls -la /usr/lib64/libstdc++.so                      
ls: cannot access /usr/lib64/libstdc++.so: No such file or directory

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[1]: *** [bin/../sobin/libgs.so.8.70] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/ghostscript-8.70'
make: *** [so] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.D5kdXd (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.D5kdXd (%build)
===========================================================================
However if we add the link for libstdc++.so:

# ls -la /usr/lib64/libstdc++.so*
lrwxrwxrwx. 1 root root     14 Mar  7 19:31 libstdc++.so -> libstdc++.so.6
lrwxrwxrwx. 1 root root     19 Nov 24 16:28 libstdc++.so.6 -> libstdc++.so.6.0.13
-rwxr-xr-x. 1 root root 989840 Aug 24  2011 libstdc++.so.6.0.13

Works ok:

Wrote: /root/rpmbuild/SRPMS/ghostscript-8.70-11.el6.2.6.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/ghostscript-8.70-11.el6.2.6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/ghostscript-devel-8.70-11.el6.2.6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/ghostscript-doc-8.70-11.el6.2.6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/ghostscript-gtk-8.70-11.el6.2.6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.y0o12o
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd ghostscript-8.70
+ rm -rf /root/rpmbuild/BUILDROOT/ghostscript-8.70-11.el6.2.6.x86_64
+ exit 0

Comment 2 Tim Waugh 2012-03-08 11:13:38 UTC
Works fine here in mock.  The libstdc++.so symlink lives in /usr/lib/gcc/$arch/$ver, not in libdir.

Comment 4 Kurt Seifried 2012-03-08 17:18:14 UTC
I built this on a stock RHEL 6.2 VM of my own. The link you mentioned (/usr/lib/gcc/$arch/$ver) exists on it. I tried building on a different VM (essentially the same as first) and it worked. Sorry about the false report. My other VM must be bjorked in some subtle way :P


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