From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Gardner <jgardner@jonathangardner.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Error compiling PostgreSQL 7.4 for Fedora Core 1
Date: Tue, 09 Dec 2003 00:33:57 -0500
Message-ID: <27159.1070948037@sss.pgh.pa.us> (raw)
In-Reply-To: <200312082059.54218.jgardner@jonathangardner.net>
References: <200312062347.51232.jgardner@jonathangardner.net>
<20449.1070786896@sss.pgh.pa.us>
<200312082059.54218.jgardner@jonathangardner.net>
Jonathan Gardner <jgardner@jonathangardner.net> writes:
> On Sunday 07 December 2003 12:48 am, Tom Lane wrote:
>> Hmmm ... this is evidently a variant of ye olde "Gen_fmgrtab.sh script
>> failed" problem,
> So far, this is what I have. I'm attaching fmgroids.h and fmgrtab.c ( I kno=
> w=20
> these are fairly sizable...)
That's really bizarre. For awhile I thought you might have fmgroids.h
and fmgrtab.c generated from some pre-7.4-release version of pg_proc.h,
but that theory doesn't seem to hold water --- for instance your files
include box_send() but not box_recv(), which were added in the same
commit. I don't see a pattern to the functions you are missing. Anyone
have a theory?
In the absence of any brilliant insight, I'd suggest slogging through
Gen_fmgrtab.sh to try to narrow down where functions are getting lost
--- add code to save the various intermediate files, and see what's in
'em. If we knew exactly which step was losing the functions it'd be a
leg up.
> Unfortunately, I am not familiar with the internals of awk and sed. If I=20
> were hired to fix this for my platform (Fedora Core 1), I would probably=20
> rewrite Gen_fmgrtab.sh in perl.
I can't see that as a plausible answer. With all due respect to Perl,
it's neither more portable nor more bug-free than awk/sed.
> The only other option I see is to distribute the pre-generated fmgroids.h
> and fmgrtab.c with the distribution.
We could fall back in that direction if we had to. But I'd like to
understand why we have to, first. Gen_fmgrtab.sh has worked on all our
supported platforms for a long time, and I'm disinclined to assume that
it's suddenly broken ... especially on what's presumably a modern
platform. I'm having a real problem with the idea that Fedora
incorporates a broken awk or sed.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jgardner@jonathangardner.net, pgsql-bugs@postgresql.org
Subject: Re: Error compiling PostgreSQL 7.4 for Fedora Core 1
In-Reply-To: <27159.1070948037@sss.pgh.pa.us>
References: <200312062347.51232.jgardner@jonathangardner.net> <20449.1070786896@sss.pgh.pa.us> <200312082059.54218.jgardner@jonathangardner.net> <27159.1070948037@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox