Stefan Schwarzer wrote: > ld: file not found: ../../src/backend/postgres It appears to be trying to link to the postgres executable (which is presumably built with --export-dynamic to usefully permit that). The postgres executable doesn't appear to be there. At a guess, the module expects to be built from a particular location within the postgresql source tree, probably contrib/tablefunc, and you're building it somewhere else. -- Craig Ringer