Bug 88417

Summary: rpm-4.2-1 won't rebuild on RHL 9
Product: [Retired] Red Hat Raw Hide Reporter: Chris Ricker <chris.ricker>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED CURRENTRELEASE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: leonard-rh-bugzilla, matthias
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-19 19:10:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Ricker 2003-04-09 23:17:25 UTC
I'm trying to rebuild rpm-4.2-1.src.rpm on RHL 9. When I do, the rpmbuild -ba
dies with the following:

extracting debug info from /var/tmp/rpm-root/usr/bin/rpmgraph
extracting debug info from /var/tmp/rpm-root/usr/bin/rpm2cpio
extracting debug info from /var/tmp/rpm-root/bin/rpm
12874 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
/usr/bin/strip: /var/tmp/rpm-root/usr/lib/stn0s9x1/libelf.a: Invalid operation
/usr/bin/strip: /var/tmp/rpm-root/usr/lib/stCBMye8/libelf.a: Invalid operation
error: Bad exit status from /var/tmp/rpm-tmp.78583 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.78583 (%install)

Looks like the debug madness is trying to strip two files which shouldn't be
stripped, but I don't know how to fix the .spec to prevent that (short of
turning off debugging altogether ;-)

Comment 1 Jeff Johnson 2003-04-14 14:54:08 UTC
rpm-4.2 builds for me on Red Hat 9 (obviously, duh), so
there's something different with your build system.

Try installing elfultils and redhat-rpm-config to use eu-strip,
not strip.

Comment 2 Chris Ricker 2003-04-23 14:41:20 UTC
They're already installed:

[cricker@fubar cricker]$ rpm -q redhat-rpm-config elfutils
redhat-rpm-config-8.0.21-1
elfutils-0.76-3
[cricker@fubar cricker]$ 

Any other ideas?

(fwiw, I'm not the only person seeing this. It's been mentioned on the fedora
devel lists, for example)

Comment 3 Jeff Johnson 2003-04-23 15:05:51 UTC
Try upgrading binutils? Nope, all I know is that
rpm-4.2 builds for me in Red Hat 9.

Comment 4 Håkon Løvdal 2003-09-08 21:50:35 UTC
I get the same error when trying to compile crossmingw32-platform on RH9. Adding
to the spec file

     %define	__spec_install_post	%{nil}

as suggested at http://www.geocrawler.com/archives/3/87/2003/5/0/10468452/ did
remove the problem.


Comment 5 Leonard den Ottolander 2004-04-13 14:01:46 UTC
Chris, does the method presented in comment #4 fix the problem for you?


Comment 6 Matthias Saou 2004-11-02 17:51:28 UTC
FYI, I just got the same problem on a faad2 static lib (but have seen
to here and there already...) and here's an interesting output :

-bash-3.00# strip libfaad.a
-bash-3.00# 

This one worked. But :

-bash-3.00# eu-strip libfaad.a
this is an archive member
Segmentation fault
-bash-3.00#

During the build, I got lots of these messages, that I don't
understand, but might be somewhat related :

*** Warning: Linking the shared library libmp4.la against the
*** static library ../../../common/mp4ff/libmp4ff.a is not portable!

Anyway, seems like a problem with eu-strip to me. I though that
eu-strip had been introduced to solve the issues with the regular
strip... seems like things are reversed in this case.

Comment 7 Jeremy Katz 2005-04-19 19:10:19 UTC
This should be fixed in newer releases.  If it's not, reopen with details on
problems with the current generation of stuff.