Thread: 64 bit ints vs libpq-fe.h

64 bit ints vs libpq-fe.h

From
Magnus Hagander
Date:
It's no longer possible to build pgadmin with libpq from git master:

/opt/pgsql/inst-pg/head/include/libpq-fe.h:551:8: error: ‘pg_int64’
does not name a type

and related messages about it.

This seems to be related to
http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=95d035e66d8e4371d35830d81f39face03cd4c45

AFAICT, this suddenly requires that any user of libpq has pg_int64
defined, which isn't likely to happen outside of postgres itself.

Or am I reading things wrong?

--Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/



Re: 64 bit ints vs libpq-fe.h

From
Tom Lane
Date:
Magnus Hagander <magnus@hagander.net> writes:
> It's no longer possible to build pgadmin with libpq from git master:
> /opt/pgsql/inst-pg/head/include/libpq-fe.h:551:8: error: �pg_int64�
> does not name a type

[ scratches head ... ]  That should be typedef'd in postgres_ext.h.
        regards, tom lane



Re: 64 bit ints vs libpq-fe.h

From
Magnus Hagander
Date:
On Mon, Nov 26, 2012 at 5:33 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> It's no longer possible to build pgadmin with libpq from git master:
>> /opt/pgsql/inst-pg/head/include/libpq-fe.h:551:8: error: ‘pg_int64’
>> does not name a type
>
> [ scratches head ... ]  That should be typedef'd in postgres_ext.h.

Ha. A wipe+reinstall seems to have fixed it. Must've been something
broken in my build dependencies.

Sorry about the noise.

--Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/