[GENERAL] compiling postgres_fdw fails for 9.6.5 - Mailing list pgsql-general

From Sandeep Gupta
Subject [GENERAL] compiling postgres_fdw fails for 9.6.5
Date
Msg-id CAAywg7sFOgXSSppVz3j8X3fs99Va7Y2eJnGQtnggwZDokOUY=g@mail.gmail.com
Whole thread Raw
Responses Re: [GENERAL] compiling postgres_fdw fails for 9.6.5  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello,

I am on Cent OS 6.8 machine. The Postgres is already installed in some
install_dir/.
I downloaded the source, configured it with prefix=install_dir and
then moved to contrib/postgres_fdw dir.
However make fails with following error:

gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -O2 -fPIC
-I../../src/interfaces/libpq -I. -I. -I../../src/include -D_GNU_SOURCE -c -o postgres_fdw.o postgres_fdw.c
In file included from ../../src/include/postgres.h:48:0,                from postgres_fdw.c:13:
../../src/include/utils/elog.h:71:28: fatal error: utils/errcodes.h:
No such file or directory
compilation terminated.
make: *** [postgres_fdw.o] Error 1


It gets fixed if I add
-I[install_dir]/include/postgresql/server.

Is there alternative way which would not require this modification.

Thanks.


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Durgamahesh Manne
Date:
Subject: Re: [GENERAL] Regarding scram authentication libpq version 10 or more
Next
From: Rory Campbell-Lange
Date:
Subject: [GENERAL] Connection utilisation for pglogical