<p>After successfully building dblink on solaris 10 using Sun C 5.9
SunOS_sparc 2007/05/03 and gmake.</p>

<p>I ran gmake installcheck and got the following output:</p>

<pre><code>========== running regression test queries        ==========

test dblink               ... FAILED

======================

 1 of 1 tests failed.
</code></pre>

<p>The differences that caused some tests to fail can be viewed in the
file "./regression.diffs".  A copy of the test summary that you see
above is saved in the file "./regression.out".</p>

<p>First error in regression.diffs file:</p>

<blockquote>
  <p>psql:dblink.sql:11: ERROR:  could not load library "/apps/postgresql/
  lib/dblink.so": ld.so.1: postgre
  s: fatal: relocation error: file /apps/postgresql/lib/dblink.so:
  symbol PG_GETARG_TEXT_PP: referenced symbol not found</p>
</blockquote>

<p>I am running postgreSQL version 8.2.4 with the latest dblink source.</p>

<p>Has anyone got any idea what I need to do to solve this problem.
Thanks. </p>

[{'answer_id': 73275, 'author': 'Grant Johnson', 'author_id': 12518, 'author_profile': 'https://Stackoverflow.com/users/12518', 'pm_score': 0, 'selected': False, 'text': '<p>Does the file it is looking for actually exist?   Is it in that location?</p>\n\n<p>It may be one of a few things I can think of:\n1)  The thing did not compile, and therefore does not exist.\n2)  It exists, but somewhere else, and the environment variable that tells it where to find it is set wrong.\n3)  The permissions are such that the ID that the postmaster is running as cannot traverse to that directory.</p>\n\n<p>To check if it is somewhere else:</p>\n\n<pre><code>find / -type f|grep dblink.so\n</code></pre>\n\n<p>To check the permissions:</p>\n\n<pre><code>su - \nsu - postgres\nless /apps/postgresql/ lib/dblink.so\n</code></pre>\n'}, {'answer_id': 78444, 'author': 'Simon', 'author_id': 5385, 'author_profile': 'https://Stackoverflow.com/users/5385', 'pm_score': 2, 'selected': True, 'text': '<p>To solve this issue I tried using the 8.2 dblink sources, instead of the latest version.</p>\n\n<p>You also need to make sure you use gnu make not the sun make.</p>\n'}]
['https://Stackoverflow.com/questions/69959', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5385/']