LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2008, 01:09 AM   #1
harish.patel
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
RPM Package building


Hi,
I am working on RHEL4 linux system.
I am facing one problem with rpm package building. I have one static library.This static library is linked with other dynamic libraries.
This static & dynamic libraries are within one package. When it is installed in /usr/lib path & discarding all symbols using strip linux utility. At that time, strip command gives error for multiple strip of static library.
I use following command to build rpm package.

#rpmbuild -ba <PackageName>.spec
Log of rpm package building is mention below.
--------------------------------------------------------------------
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf AVL
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/AVL-1.0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd AVL
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd AVL
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
+ CFLAGS='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4'
+ ./configure
+ make
MP4Muxer_muxer.c: In function `MP4WR_Get_MUX_BufferSize':
MP4Muxer_muxer.c:53: warning: assignment makes integer from pointer without a cast
QTFFMuxer_muxer.c: In function `QTFFWR_Get_MUX_BufferSize':
QTFFMuxer_muxer.c:50: warning: assignment makes integer from pointer without a cast
+ exit 0
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd AVL
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/AVL-buildroot
+ make DESTDIR=/var/tmp/AVL-buildroot install
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/AVL
5636 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/AVL-buildroot/usr/local/lib/st6zkEVG/libosal.a: Invalid operation
/usr/bin/strip: /var/tmp/AVL-buildroot/usr/local/lib/stcWwiGJ/libosal.a: Invalid operation
/usr/bin/strip: /var/tmp/AVL-buildroot/usr/local/lib/stCzOrhP/libosal.a: Invalid operation
/usr/bin/strip: /var/tmp/AVL-buildroot/usr/local/lib/stT1kbAc/libosal.a: Invalid operation
/usr/bin/strip: /var/tmp/AVL-buildroot/usr/local/lib/stBhTs9e/libosal.a: Invalid operation
/usr/bin/strip: /var/tmp/AVL-buildroot/usr/local/lib/stThQUIh/libosal.a: Invalid operation
error: Bad exit status from /var/tmp/rpm-tmp.32273 (%install)
Bad exit status from /var/tmp/rpm-tmp.32273 (%install)
-------------------------------------------------------------------------


Plese give me right solution for that.
How can I solve this problem & make one rpm package.

Last edited by harish.patel; 12-23-2008 at 01:11 AM.
 
Old 12-24-2008, 10:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Either re-defining the "__os_install_post" macro as
Code:
%define __os_install_post    \
    /usr/lib/rpm/brp-compress \
%{nil}
in the top of your .spec file or exporting "DONT_STRIP=1" in the %install section should work.
 
Old 12-25-2008, 11:57 PM   #3
harish.patel
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi ,
Thank you,I created rpm package successfully.
Thanks a lot.

Thanks & Regards
Harish Patel
 
  


Reply

Tags
building, package, rpm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating RPM Package without sources, building etc prakashpms Linux - Software 1 08-27-2008 02:19 PM
Prevent strip when building an RPM package sidra Red Hat 7 10-26-2007 12:48 PM
building rpm package question hct224 Linux - Newbie 2 09-02-2004 05:41 AM
building POSTFIX rpm package for Redhat hct224 Linux - Newbie 6 06-16-2004 01:32 AM
Building own RPM package hems Linux - Newbie 1 11-28-2002 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration