Re: more on undefined reference to 'pg_detoast_datum' and libpq - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: more on undefined reference to 'pg_detoast_datum' and libpq
Date
Msg-id 558.1065936082@sss.pgh.pa.us
Whole thread Raw
In response to more on undefined reference to 'pg_detoast_datum' and libpq  ("D. Stimits" <stimits@comcast.net>)
List pgsql-interfaces
"D. Stimits" <stimits@comcast.net> writes:
> Apparently in PosgreSQL 7.2.3 (the Redhat 7.3 version, which has some 
> patching involved), pg_detoast_datum is defined in fmgr backend code, 
> but this function is not defined anywhere in any library, especially not 
> libpq.

Of course not; it's a backend function.  Your problem is that you are
trying to build a server-side function as though it were a client
application.  You're linking to an inappropriate set of libraries.
See the contrib modules for numerous examples of correct link setup
for server-side functions.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "D. Stimits"
Date:
Subject: more on undefined reference to 'pg_detoast_datum' and libpq
Next
From: "D. Stimits"
Date:
Subject: Re: more on undefined reference to 'pg_detoast_datum'