Обсуждение: 7.2.2 RPM build failure

Поиск
Список
Период
Сортировка

7.2.2 RPM build failure

От
Roland Roberts
Дата:
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@rlenter.com                     76-15 113th Street, Apt 3B
roland@astrofoto.org                       Forest Hills, NY 11375

Re: 7.2.2 RPM build failure

От
Lamar Owen
Дата:
On Wednesday 11 September 2002 06:02 pm, Roland Roberts wrote:
> 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:

I'm looking at this.  Just popping this message in there to let you know that
much, at least.

In order to troubleshoot it, I will have to build up a 7.2 box, I guess.  The
source RPM's build fine on 7.3, which is what I built on.

But, see where pg_config.h is supposed to be versus where it actually is.  Is
kerberos actually installed, for instance?  Kerberos-devel?

The Perl error is a little more tricky.  That code hasn't changed in a while;
not sure what's going on.

But I will look into it; but it may be a day or so before I can get an answer
back.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

Re: 7.2.2 RPM build failure

От
Roland Roberts
Дата:
>>>>> "Lamar" == Lamar Owen <lamar.owen@wgcr.org> writes:

    Lamar> On Wednesday 11 September 2002 06:02 pm, Roland Roberts wrote:
    >> 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:

    Lamar> I'm looking at this.  Just popping this message in there to
    Lamar> let you know that much, at least.

Thanks!

    Lamar> In order to troubleshoot it, I will have to build up a 7.2
    Lamar> box, I guess.  The source RPM's build fine on 7.3, which is
    Lamar> what I built on.

I'll see what I can find in the meantime.  I may be upgrading to 7.3
soon anyway, but didn't want to have to do so quite yet.

    Lamar> But, see where pg_config.h is supposed to be versus where
    Lamar> it actually is.  Is kerberos actually installed, for
    Lamar> instance?  Kerberos-devel?

It seems to be in the right place (./src/include/pg_config.h); that's
what's confusing me.  It fails from the RPM build, but when I switch
to the top-level source directory (*not* ./src, just above it in
/usr/src/redhat/BUILD/posgresql-7.2.2)), and just typing "make" using
the configuration the RPM set up, it builds.

krb5-devel and krb5-libs are installed, not -workstation or -server.

    Lamar> The Perl error is a little more tricky.  That code hasn't
    Lamar> changed in a while; not sure what's going on.

Although this is a 7.2 machine, it is mostly up-to-date (not quite
willing to say it is fully up-to-date, but I think it is), so Perl os
5.6.1, in case that matters.

    Lamar> But I will look into it; but it may be a day or so before I
    Lamar> can get an answer back.

Thanks!

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

Re: 7.2.2 RPM build failure

От
Roland Roberts
Дата:
>>>>> "Roland" == Roland Roberts <roland@astrofoto.org> writes:

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

    Roland> 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 
    Roland> In file included from ../../src/include/postgres.h:47,
    Roland>                  from user_locks.c:12:
    Roland> ../../src/include/c.h:52:23: pg_config.h: No such file or directory
    Roland> make[1]: *** [user_locks.o] Error 1
    Roland> make[1]: Leaving directory `/opt/src/redhat/BUILD/postgresql-7.2.2/contrib/userlock'
    Roland> make: *** [all] Error 2
    Roland> make: Leaving directory `/opt/src/redhat/BUILD/postgresql-7.2.2/contrib'
    Roland> error: Bad exit status from /var/tmp/rpm-tmp.86826 (%build)

I'm going crazy :-/

I just rebuilt after doing the following:

    cd /usr/src/redhat/BUILD/postgresql-7.2.2
    make clean
    cd ../../SPECS
    rpm -bc --short-circuit postgresql.spec

and it builds fine, going right past the error above.  Yesterday I
built from scratch twice (rpm -ba ...) and it failed consistently at
the above location.  The install phase (rpm -bi --short-circuit) still
fails :-(.  I started again from scratch (rpm -ba) and it built!

I can only guess there was something wacky in my environment, but I
don't know what it might have been.  I am logged in remotely doing the
build now, rather than locally, but don't know of anything specific in
my .profile or .bashrc that would be affected by that.

However, it is still failing during the install.  It would appear the
Pg.3pm is not being created during the perl build.

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