Problem building contrib/array in current CVS

Started by Bruno Wolff IIIover 22 years ago5 messages
#1Bruno Wolff III
bruno@wolff.to

I just (with the last half hour) grabbed a fresh copy of 7.4 from CVS
and got an error when building contrib/array:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c array_iterator.c -o array_iterator.o
array_iterator.c:30: utils/fmgroids.h: No such file or directory
make: *** [array_iterator.o] Error 1

This is on a RH6.2 system.

This is the configure command I used:

./configure --prefix=/usr/local/pgsql --enable-integer-datetimes --with-pgport=5433

#2Bruno Wolff III
bruno@wolff.to
In reply to: Bruno Wolff III (#1)
Re: Problem building contrib/array in current CVS

On Thu, Aug 07, 2003 at 13:11:32 -0500,
Bruno Wolff III <bruno@wolff.to> wrote:

I just (with the last half hour) grabbed a fresh copy of 7.4 from CVS
and got an error when building contrib/array:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c array_iterator.c -o array_iterator.o
array_iterator.c:30: utils/fmgroids.h: No such file or directory
make: *** [array_iterator.o] Error 1

I must have caught something in the middle of an update. I grabbed a fresh
copy a little while ago and now it builds properly.

#3Joe Conway
mail@joeconway.com
In reply to: Bruno Wolff III (#2)
Re: Problem building contrib/array in current CVS

Bruno Wolff III wrote:

array_iterator.c:30: utils/fmgroids.h: No such file or directory
make: *** [array_iterator.o] Error 1

I must have caught something in the middle of an update. I grabbed a fresh
copy a little while ago and now it builds properly.

I believe utils/fmgroids.h is a derived file. Were you building contrib
without first building Postgres?

Joe

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruno Wolff III (#1)
Re: Problem building contrib/array in current CVS

Bruno Wolff III <bruno@wolff.to> writes:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c array_iterator.c -o array_iterator.o
array_iterator.c:30: utils/fmgroids.h: No such file or directory
make: *** [array_iterator.o] Error 1

This suggests a failure in the src/backend/utils/Gen_fmgrtab.sh script.
In the past we've seen that happen due to missing or broken sed or awk
programs.

regards, tom lane

#5Bruno Wolff III
bruno@wolff.to
In reply to: Joe Conway (#3)
Re: Problem building contrib/array in current CVS

On Thu, Aug 07, 2003 at 13:16:29 -0700,
Joe Conway <mail@joeconway.com> wrote:

Bruno Wolff III wrote:

array_iterator.c:30: utils/fmgroids.h: No such file or directory
make: *** [array_iterator.o] Error 1

I must have caught something in the middle of an update. I grabbed a fresh
copy a little while ago and now it builds properly.

I believe utils/fmgroids.h is a derived file. Were you building contrib
without first building Postgres?

I wasn't intending to. I might have made a mistake, but I am pretty sure
that the top level make started and that when I came back to do the make
in contrib it looked like the first make had finished normally. Maybe
I did something wrong and didn't notice it.