Thread: pg-config --includedir-server

pg-config --includedir-server

From
elein
Date:
PostgreSQL 7.2.2 SuSe 7.3

This is a new installation not an update.  (New machine ;-)
If this is a bug it probably will only affect new/clean installations
of 7.2.*

Per docs 12.5.6 Writing Code I ran pg_config --includedir-server to verify
the location on the C include files.  It said /usr/local/pgsql/include/server.

Neither the files nor the directory were there, however.

pg_config --includedir showed one level up and it had some .h files
and the internal and libpq include directories.  postgres.h was not anywhere.

Either the install forgot this piece or I needed to configure with
some flag before I built.  Configure only seems to know about --includedir
not --includedir-server, though.  I did not configure with --includedir
as I believe it should be used to overwrite the default.  (Correct me if
that is not the case.)

Either configure needs to have the includedir-server option added
or revert to includedir, but the include files need to go somewhere
besides the source tree.

For new users this is sort of serious, however, new users probably
won't go looking for the header files right away.

I'm not following the bug mailing list, so please copy me on responses
especially if I am way out in left field.

elein
elein@norcov.com

:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:
     elein@norcov.com   (510)543-6079
     "Taking a Trip. Not taking a Trip." --anonymous
:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:

Re: pg-config --includedir-server

From
Tom Lane
Date:
elein <elein@norcov.com> writes:
> Per docs 12.5.6 Writing Code I ran pg_config --includedir-server to verify
> the location on the C include files.  It said /usr/local/pgsql/include/server.
> Neither the files nor the directory were there, however.

Sounds like you did not do "make install-all-headers".

            regards, tom lane

Re: pg-config --includedir-server

From
elein
Date:
Yup, that was it.  And of course it is properly mentioned in
the INSTALL file.

Thank you,
elein

At 09:43 AM 9/5/02, Tom Lane wrote:
>elein <elein@norcov.com> writes:
> > Per docs 12.5.6 Writing Code I ran pg_config --includedir-server to verify
> > the location on the C include files.  It said
> /usr/local/pgsql/include/server.
> > Neither the files nor the directory were there, however.
>
>Sounds like you did not do "make install-all-headers".
>
>                         regards, tom lane

:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:
     elein@norcov.com   (510)543-6079
     "Taking a Trip. Not taking a Trip." --anonymous
:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~: