7.2.2 RPM build failure

From: Roland Roberts <roland(at)astrofoto(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: 7.2.2 RPM build failure
Date: 2002-09-11 22:02:23
Message-ID: m2lm68yykw.fsf@kuiper.rlent.pnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


I'm trying to build from the source RPMs for a (mostly) up-to-date
RedHat 7.2 system. The build fails with this message:

gcc -O2 -march=i386 -mcpu=i686 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -I/usr/kerberos/include -c -o user_locks.o user_locks.c
In file included from ../../src/include/postgres.h:47,
from user_locks.c:12:
../../src/include/c.h:52:23: pg_config.h: No such file or directory
make[1]: *** [user_locks.o] Error 1
make[1]: Leaving directory `/opt/src/redhat/BUILD/postgresql-7.2.2/contrib/userlock'
make: *** [all] Error 2
make: Leaving directory `/opt/src/redhat/BUILD/postgresql-7.2.2/contrib'
error: Bad exit status from /var/tmp/rpm-tmp.86826 (%build)

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

I cd to the stop directory and finish the build by just typing
'make', followed by

rpm -bc --short-circuit postgresql.spec

This was a no-op, which is what I expected.

Then on to the installation step

rpm -bi --short-circuit postgresql.spec
[...lots of stuff elided....]
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Pg/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
make: Leaving directory `/opt/src/redhat/BUILD/postgresql-7.2.2/src/interfaces/perl5'
+ find /var/tmp/postgresql-7.2.2-root/usr/lib/perl5 -name .packlist -exec rm -f '{}' ';'
+ find /var/tmp/postgresql-7.2.2-root/usr/lib/perl5 -type f -print
+ sed -e 's|/var/tmp/postgresql-7.2.2-root/|/|g'
+ sed -e 's|.*/man/.*|&\*|'
+ find /var/tmp/postgresql-7.2.2-root/usr/lib/perl5 -type d -name Pg -print
+ sed -e 's|/var/tmp/postgresql-7.2.2-root/|%dir /|g'
+ '[' '!' -e '/var/tmp/postgresql-7.2.2-root/usr/share/man/man3/Pg.*' ']'
+ mkdir -p /var/tmp/postgresql-7.2.2-root/usr/share/man/man3
++ find /var/tmp/postgresql-7.2.2-root -name 'Pg.3*' -print
+ cp /var/tmp/postgresql-7.2.2-root/usr/share/man/man3
cp: missing destination file
Try `cp --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.35944 (%install)

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

What am I missing?

roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland(at)rlenter(dot)com 76-15 113th Street, Apt 3B
roland(at)astrofoto(dot)org Forest Hills, NY 11375

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lamar Owen 2002-09-12 03:56:04 Re: 7.2.2 RPM build failure
Previous Message Adam Witney 2002-09-11 20:05:11 Re: 7.2.2 upgrade, pg_dumpall / reload problem