Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Alexandra Roy *EXTERN*" <Alexandra(dot)Roy(at)bull(dot)net>
Cc: "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Date: 2009-11-09 15:32:04
Message-ID: D960CB61B694CF459DCFB4B0128514C203938022@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Alexandra Roy wrote:
> It was a 32-bit build as I didn't have set the "OBJECT_MODE" to 64.
> I call configure and make using as root user:
>
> # ./configure
> # gmake
>
> The releases of "make" and "gcc" are :
> make-3.80-1
> gcc-4.2.0-3

Hmmm, I dont get the error if I set OBJECT_MODE to 32 and
do what you did, but I have PostgreSQL 8.4 here.

config.log and pg_config.h look like yours...

> Since my post, I have followed the advice of PostgreSQL 8.4
> documentation on AIX to do a 64-bit build:
> http://www.postgresql.org/docs/8.4/static/installation-platform-notes.html#INSTALLATION-NOTES-AIX
> that is to say I have :
> - set OBJECT_MODE to 64
> - pass CC="gcc -maix64" and LDFLAGS="-Wl,-bbigtoc" to configure
> - execute gmake
>
> gmake failed with these errors :
>
[...]
> ar crs libpgport.a strlcat.o strlcpy.o getopt_long.o chklocale.o
> copydir.o dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o
> pgstrcasecmp.o qsort.o qsort_arg.o sprompt.o thread.o
> ar: 0707-126 strlcat.o is not valid with the current object file mode.
> Use the -X option to specify the desired object mode.

You have to export OBJECT_MODE. Setting it is not enough.

Did you 'make clean' first? Otherwise some 64-bit objects might still be around...

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Henkel 2009-11-09 15:33:36 Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard
Previous Message Jukka Inkeri 2009-11-09 14:44:17 Re: Looking for a script that performs full online backup of postgres in archive mode

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Otto 2009-11-09 15:32:19 Re: drop tablespace error: invalid argument
Previous Message Robert Haas 2009-11-09 15:28:46 Re: Re: [COMMITTERS] pgsql: Rewrite GEQO's gimme_tree function so that it always finds a