Re: #include oddity in v7.0b3

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Didier Verna <didier(at)xemacs(dot)org>
Cc: bugs(at)postgresql(dot)org, XEmacs beta testers <xemacs-beta(at)xemacs(dot)org>, Oliver Elphick <Oliver(dot)Elphick(at)lfix(dot)co(dot)uk>, olly(at)linda(dot)lfix(dot)co(dot)uk
Subject: Re: #include oddity in v7.0b3
Date: 2000-04-10 20:42:06
Message-ID: 200004102042.e3AKg9I25604@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Didier Verna wrote:
>
>[ Cc'ed to the XEmacs development list and the postgres debian package
> maintainer ]
>
> Hi!
>
> After upgrading my debian system (woody), the postgres package went
>from 6.5 to 7.0b3. On debian linux boxes, the postgres headers are located
>under /usr/include/postgresql/.
>
> The file `libpq-fe.h' #include's the file `postgres_ext.h' using <>
>instead of "" (line 27). As a consequence, applications that just do:
>
>| #include <full/path/to/libpq-fe.h>
>
>can't build anymore because the file `postgres_ext.h' is not in the path. Th
>is
>happens to be the case for XEmacs. I believe this is a bug because:
>
>1/ this didn't happen with my former version 6.5
>2/ the usage of <> or "" doesn't seem to be coherent among the headers
>3/ it's better to use "" when headers installed in the same place have to
> include each others

The Debian documentation used to include a statement that
`-I/usr/include/postgresql' should be included in the compilation options.
That seems to have got lost.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"But seek ye first the kingdom of God, and his
righteousness; and all these things shall be added
unto you." Matthew 6:33

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephen J. Turnbull 2000-04-11 07:00:58 Re: #include oddity in v7.0b3
Previous Message Tom Lane 2000-04-10 19:15:58 Re: #include oddity in v7.0b3