Обсуждение: dblink make fails under postgresql 8.4.4 on mac osx 10.4.11

Поиск
Список
Период
Сортировка

dblink make fails under postgresql 8.4.4 on mac osx 10.4.11

От
Gary Merkel
Дата:
<div class="WordSection1"><p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Havingtrouble installing dblink under PostgreSQL 8.4.4 on MAC
OSX 10.4.11</span><p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Runningmake gives the following error:</span><p
class="MsoNormal"style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><p
class="MsoNormal"style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">sed
's,MODULE_PATHNAME,$libdir/dblink,g'<a href="http://dblink.sql.in">dblink.sql.in</a> >dblink.sql</span><p
class="MsoNormal"style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">gcc
-no-cpp-precomp-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing-fwrapv  -I../../src/interfaces/libpq -I. -I../../src/include   -c -o dblink.o dblink.c</span><p
class="MsoNormal"style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">dblink.c:
Infunction 'get_pkey_attnames':</span><p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">dblink.c:1698:error: 'SnapshotNow' undeclared (first use in
thisfunction)</span><p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">dblink.c:1698:error: (Each undeclared identifier is reported
onlyonce</span><p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">dblink.c:1698:error: for each function it appears
in.)</span><pclass="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">make:*** [dblink.o] Error 1</span><p class="MsoNormal"
style="text-autospace:none"><spanstyle="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><p class="MsoNormal"
style="text-autospace:none"><spanstyle="font-size:10.0pt;font-family:"Arial","sans-serif"">Does anyone know a fix to
this?</span><pclass="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thanksfor any help.</span><p class="MsoNormal"
style="text-autospace:none"><spanstyle="font-size:10.0pt;font-family:"Arial","sans-serif"">Gary</span><p
class="MsoNormal"> </div>

Re: dblink make fails under postgresql 8.4.4 on mac osx 10.4.11

От
Robert Haas
Дата:
On Wed, Aug 31, 2011 at 9:45 AM, Gary Merkel <garymerkel@accugenix.com> wrote:
> Having trouble installing dblink under PostgreSQL 8.4.4 on MAC OS X 10.4.11
>
> Running make gives the following error:
>
> sed 's,MODULE_PATHNAME,$libdir/dblink,g' dblink.sql.in >dblink.sql
>
> gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
> -I../../src/interfaces/libpq -I. -I../../src/include   -c -o dblink.o
> dblink.c
> dblink.c: In function 'get_pkey_attnames':
> dblink.c:1698: error: 'SnapshotNow' undeclared (first use in this function)
> dblink.c:1698: error: (Each undeclared identifier is reported only once
> dblink.c:1698: error: for each function it appears in.)
> make: *** [dblink.o] Error 1
>
> Does anyone know a fix to this?

This is hard to understand, because SnapshotNow is defined in
utils/tqual.h, and dblink.c includes that file.

Also, I checked out the official sources at tag REL8_4_4 and it looks
to me like there's no reference to SnapshotNow on line 1698.  That
line for me is blank, and the only reference I see to SnapshotNow is
on line 1715.

So I suspect that what you've got is a modified version of the sources
that is somehow messed up.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company