Re: 7.2.2 RPM build failure - Mailing list pgsql-admin

From Roland Roberts
Subject Re: 7.2.2 RPM build failure
Date
Msg-id m2sn0fgsfl.fsf@kuiper.rlent.pnet
Whole thread Raw
In response to Re: 7.2.2 RPM build failure  (Lamar Owen <lamar.owen@wgcr.org>)
List pgsql-admin
>>>>> "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

pgsql-admin by date:

Previous
From: Brickley Jeff-RA9607
Date:
Subject: Vaccuum/Analyze
Next
From: Bruce Momjian
Date:
Subject: Re: disk spin down