LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RPM Source Build errors (https://www.linuxquestions.org/questions/linux-software-2/rpm-source-build-errors-40250/)

wdingus 01-03-2003 11:07 PM

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...

unSpawn 01-04-2003 06:34 AM

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.


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