pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Travis Allison <travisallison@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: floriparob@gmail.com
Cc: pgsql-general@postgresql.org
Cc: Christoph Berg <myon@debian.org>
Subject: Re: What generates pg_config.h?
Date: Fri, 05 Jan 2018 17:56:30 -0500
Message-ID: <20599.1515192990@sss.pgh.pa.us> (raw)
In-Reply-To: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql>
References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Travis Allison wrote:
>> No instance of Postgres 10 running. I took Tom's suggestion: I ran dpkg -S
>> /usr/include/postgresql/pg_config.h
>> Result: libpq-dev: /usr/include/postgresql/pg_config.h

Ah, thanks for clearing that up.

>> Any suggestions on what to do next?

> I wonder if there is a mistake in the use of INCLUDEDIR vs.
> INCLUDEDIR-SERVER for -I.  Maybe both are being used, and looks like
> only the latter should be.  It seems odd that there are two pg_config.h
> files getting included ...

Yeah ...

> but I do wonder why is there a pg_config.h in libpq-dev.

Now I seem to recall some discussion with a packager who felt that
providing just the latest-and-greatest libpq was sufficient for
clients, and only server-side code needed to depend on the server
version.  So I'm betting that the intention on the Ubuntu packager's
end is that you use a -I for /usr/include/postgresql when building
client code, while if you want to build a server extension, you
point at the appropriate version subdirectory.  Meanwhile, the
extension Travis is trying to build is unfamiliar with that idea
and is throwing in a bunch of -I switches willy-nilly.

In short, yeah, try removing the -I that's pointing at the upper
directory.

			regards, tom lane




view thread (18+ messages)  latest in thread

Message-ID: <20599.1515192990@sss.pgh.pa.us>
Permalink:  ../20599.1515192990@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20599.1515192990@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, travisallison@gmail.com, adrian.klaver@aklaver.com, floriparob@gmail.com, myon@debian.org
  Subject: Re: What generates pg_config.h?
  In-Reply-To: <20599.1515192990@sss.pgh.pa.us>
  References: <20180105212750.ip5ek6v4p3tiix7e@alvherre.pgsql> <20599.1515192990@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox