Problem building contrib/array in current CVS

Lists: pgsql-hackers
From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Problem building contrib/array in current CVS
Date: 2003-08-07 18:11:32
Message-ID: 20030807181132.GA25102@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem building contrib/array in current CVS
Date: 2003-08-07 20:10:19
Message-ID: 20030807201019.GA1902@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Aug 07, 2003 at 13:11:32 -0500,
Bruno Wolff III <bruno(at)wolff(dot)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.


From: Joe Conway <mail(at)joeconway(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem building contrib/array in current CVS
Date: 2003-08-07 20:16:29
Message-ID: 3F32B39D.9020306@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem building contrib/array in current CVS
Date: 2003-08-07 20:52:25
Message-ID: 6240.1060289545@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Bruno Wolff III <bruno(at)wolff(dot)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


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem building contrib/array in current CVS
Date: 2003-08-08 05:20:11
Message-ID: 20030808052011.GA7593@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Aug 07, 2003 at 13:16:29 -0700,
Joe Conway <mail(at)joeconway(dot)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.