X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BF91AD1BC59 for ; Tue, 9 Dec 2003 05:34:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66815-01 for ; Tue, 9 Dec 2003 01:34:02 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id E26AFD1BB74 for ; Tue, 9 Dec 2003 01:33:59 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hB95Xv19027160; Tue, 9 Dec 2003 00:33:57 -0500 (EST) To: Jonathan Gardner Cc: pgsql-bugs@postgresql.org Subject: Re: Error compiling PostgreSQL 7.4 for Fedora Core 1 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> Comments: In-reply-to Jonathan Gardner message dated "Mon, 08 Dec 2003 20:59:48 -0800" Date: Tue, 09 Dec 2003 00:33:57 -0500 Message-ID: <27159.1070948037@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/65 X-Sequence-Number: 7342 Jonathan Gardner 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