X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 63EE5D1B4E8 for ; Tue, 14 Oct 2003 01:48:49 +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 85244-03 for ; Mon, 13 Oct 2003 22:48:19 -0300 (ADT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by svr1.postgresql.org (Postfix) with ESMTP id CD60FD1B50D for ; Mon, 13 Oct 2003 22:48:16 -0300 (ADT) Received: from comcast.net (12-253-72-16.client.attbi.com[12.253.72.16]) by comcast.net (rwcrmhc13) with SMTP id <2003101401481401500kndr7e> (Authid: stimits); Tue, 14 Oct 2003 01:48:14 +0000 Message-ID: <3F8B55F6.2070102@comcast.net> Date: Mon, 13 Oct 2003 19:48:38 -0600 From: "D. Stimits" Reply-To: stimits@comcast.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021018 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-general Subject: Re: [INTERFACES] more on undefined reference to 'pg_detoast_datum' References: <3F886324.8020707@comcast.net> <558.1065936082@sss.pgh.pa.us> <3F8A64DF.1080008@comcast.net> <14311.1066056160@sss.pgh.pa.us> In-Reply-To: <3F886324.8020707@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/638 X-Sequence-Number: 50711 Tom Lane wrote: > "D. Stimits" writes: > > >... My question is, where the heck is > >CurrentMemoryContext and MemoryContextAlloc provided as an > >implementation which I can link with? > > > They're inside the backend, and you don't --- you are not trying to > build a standalone executable with no unresolved symbols, but a shared > library that can be successfully loaded into the backend. It's okay > for such a library to have unresolved references to symbols that will be > resolved at load time. > > regards, tom lane Thanks to all that answered this. I found the problem, and it was totally unexpected. There were some leftover Makefile lines that were used to build a standalone module loader test unit, that test unit does not implement palloc. The actual dynamic loadable module was in fact working right, but the make was dying early when it so much as referenced the old module loader code (a loader used to test/regress functions before trying it on a server). I couldn't believe my eyes when I saw those old lines in there. D. Stimits