Bug 56072 - libtool warnings from every C++ app
Summary: libtool warnings from every C++ app
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc (Show other bugs)
(Show other bugs)
Version: 1.0
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-12 15:06 UTC by Bernhard Rosenkraenzer
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-11-12 15:38:53 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Bernhard Rosenkraenzer 2001-11-12 15:06:44 UTC
Description of Problem:
Every application using libtool and C++ gets the following warning during 
linking:
libtool: link: warning: library 
`/usr/lib/gcc-lib/i386-redhat-linux/3.1/libstdc++.la' was moved.

dependency_libs= in the file holds references to the build root:

dependency_libs=' 
-L/usr/src/redhat/BUILD/gcc-3.1-20011112/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/src 
-L/usr/src/redhat/BUILD/gcc-3.1-20011112/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/src/.libs 
-lm -lm -lm 
-L/usr/src/redhat/BUILD/gcc-3.1-20011112/obj-i386-redhat-linux/gcc 
-L/usr/lib/gcc-lib/i386-redhat-linux/3.1 
-L/usr/lib/gcc-lib/i386-redhat-linux/3.1/../../.. -lgcc -lc
-lgcc -lm -lgcc -lc -lgcc'

and libdir='/usr/lib'

points to the wrong place.

Affects libsupc++ as well.

Suggested quickfix:

perl -pi -e 
"s,^libdir=.*,libdir='/usr/lib/gcc-lib/%{_arch}-redhat-linux/%{version},;s,$RPM_BUILD_ROOT,,;" 
$RPM_BUILD_ROOT/usr/lib/gcc-lib/%{_arch}-redhat-linux/%{version}/*.la


Similarily, I think the loads of references to -lgcc should be replaced 
with just one.

Alternatively, simply remove the *.la files, libtool sucks anyway, and 
doesn't have much of a point on sane OSes. ;)

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

Comment 1 Jakub Jelinek 2001-11-12 15:28:16 UTC
Do you have a preprocessed testcase, please?

Comment 2 Jakub Jelinek 2001-11-12 15:30:19 UTC
Oops, this was meant for different bug. Sorry.
.la files are already removed in my .spec file.

Comment 3 Bernhard Rosenkraenzer 2001-11-12 15:38:46 UTC
If your comment was meant for #56073, what exactly do you need? Something 
using __attribute__ alias or something trying to link to it? I'm not familiar 
with gcc __attribute__ internals.



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