Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed - Mailing list pgsql-general

From Albe Laurenz
Subject Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20393802D@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed  (Alexandra Roy <Alexandra.Roy@bull.net>)
Responses Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Alexandra Roy wrote:
> Without the "-disable-largefile" option, the compilation is
> still failing with this error:
>
>
>     In file included from psqlscan.c:2385:
>        /usr/include/unistd.h:171: error: conflicting types for 'lseek64'
>        /usr/include/unistd.h:169: error: previous declaration of 'lseek64'
>        was here
>        In file included from /usr/include/unistd.h:744,
>                         from psqlscan.c:2385:
[...]
>
>
> Does someone have an idea about this ?
> Why the "-disable-largefile" option is necessary to do a
> PostgreSQL 8.3.8 32-build ?
> Why the "OBJECT_MODE" exported to 32 is not sufficient ?

The problem will be fixed in the upcoming 8.5 release.

If you need a 32-bit build of 8.3.8 on AIX, you can (after
you got the error message) edit src/bin/psql/psqlscan.c and add
#include "postgres.h"
as first line.

Then try again, and it should work.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: [HACKERS] PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Next
From: Peter Eisentraut
Date:
Subject: Re: Editor for sgml files