Re: [INTERFACES] more on undefined reference to 'pg_detoast_datum' - Mailing list pgsql-general

From D. Stimits
Subject Re: [INTERFACES] more on undefined reference to 'pg_detoast_datum'
Date
Msg-id 3F8B55F6.2070102@comcast.net
Whole thread Raw
List pgsql-general
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


pgsql-general by date:

Previous
From: Edmund Dengler
Date:
Subject: SET within a function?
Next
From: Bruno Wolff III
Date:
Subject: Re: Index on timestamp to date field