LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-03-2003, 11:07 PM   #1
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
RPM Source Build errors


RedHat 8.0 with 2.4.18-19.8.0 kernel and all current updates from RedHat installed. I wanted to recompile PHP to add support for something not provided by default from RedHat. So I installed the PHP source modules, installed them and am having trouble trying to build them.

# rpmbuild -bb --target i686 php-4.2.2-8.0.5.spec

runs for quite a while and ends up with this:

Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libsnmp.so.5
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root
error: Installed (but unpackaged) file(s) found:
/usr/bin/pearize
/usr/bin/phptar
/usr/lib/php4/imap.a
/usr/lib/php4/ldap.a
/usr/lib/php4/mysql.a
/usr/lib/php4/odbc.a
/usr/lib/php4/pgsql.a
/usr/lib/php4/snmp.a


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/bin/pearize
/usr/bin/phptar
/usr/lib/php4/imap.a
/usr/lib/php4/ldap.a
/usr/lib/php4/mysql.a
/usr/lib/php4/odbc.a
/usr/lib/php4/pgsql.a
/usr/lib/php4/snmp.a

I have no idea what this means... Thoughts or ideas? Thanks...
 
Old 01-04-2003, 06:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,005
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
Prolly some files that are installed (%install) but not listed (%files).
Either fix your spec file or "rm -f $RPM_BUILD_ROOT/path/to/file" in %install or "echo "%_unpackaged_files_terminate_build 0" >> /etc/rpm/macros". *If you build RPM's as an unprivileged user (like you should) then the macro loc will be something like ~/.rpmmacros IIRC.

If all doesn't work try to gather info by piping error output to a file:
<command> <arg> 2>errorlog and post the relevant parts here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
How to build a rpm file from the source file? Flamenco Mandriva 5 12-22-2004 03:40 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus Suse/Novell 5 12-02-2004 12:48 PM
RPM build is changing part of it's source files areli Linux - Software 1 05-09-2004 03:34 PM
How to build an RPM from a source file ? redhat_zephyr Linux - General 1 03-12-2004 01:35 AM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration