Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed

From: Alexandra Roy <Alexandra(dot)Roy(at)bull(dot)net>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Date: 2009-11-09 16:18:12
Message-ID: 4AF840C4.4020501@bull.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Laurenz,

I have juste finished to build PostgreSQL 8.3.8 with OBJECT_MODE set to
32 and I have exactly the same error as the beginning :
# export OBJECT_MODE=32
# cd /home/PostgreSQL_8.3.8/sources/postgresql-8.3.8
# ./configure => OK
# gmake 2>&1 | tee gmake_PGS_8.3.8_v4.log

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:
/usr/include/sys/lockf.h:64: error: conflicting types for 'lockf64'
/usr/include/sys/lockf.h:62: error: previous declaration of 'lockf64'
was here
In file included from psqlscan.c:2385:
/usr/include/unistd.h:807: error: conflicting types for 'ftruncate64'
/usr/include/unistd.h:805: error: previous declaration of 'ftruncate64'
was here
/usr/include/unistd.h:843: error: conflicting types for 'truncate64'
/usr/include/unistd.h:841: error: previous declaration of 'truncate64'
was here
/usr/include/unistd.h:860: error: conflicting types for 'pread64'
/usr/include/unistd.h:857: error: previous declaration of 'pread64' was here
/usr/include/unistd.h:861: error: conflicting types for 'pwrite64'
/usr/include/unistd.h:858: error: previous declaration of 'pwrite64' was
here
/usr/include/unistd.h:928: error: conflicting types for 'fclear64'
/usr/include/unistd.h:925: error: previous declaration of 'fclear64' was
here
/usr/include/unistd.h:929: error: conflicting types for 'fsync_range64'
/usr/include/unistd.h:926: error: previous declaration of
'fsync_range64' was here
gmake[3]: *** [psqlscan.o] Error 1
gmake[3]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src/bin/psql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src/bin'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src'
gmake: *** [all] Error 2

Could you please give me the command you execute to 32-build PostgreSQL
on AIX ?

Thank you.
Regards,
Alexandra

Albe Laurenz a écrit :
> 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
>
>
>

--
Alexandra ROY
Database Competence Center

Bull, Architect of an Open World TM
Phone: 04 76 29 77 01
http://www.bull.com

This e-mail contains material that is confidential for the sole use of
the intended recipient. Any review, reliance or distribution by others
or forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete all
copies.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-11-09 17:23:31 Re: I can't seem to put the right combination of magic into the pg_hba and pg_ident files.
Previous Message Yadira Lizama Mue 2009-11-09 16:13:51 Re: Execute a query passed by parameters to a function

Browse pgsql-hackers by date

  From Date Subject
Next Message Sam Mason 2009-11-09 16:47:13 Re: more support for various frame types of window functions
Previous Message Greg Stark 2009-11-09 16:10:33 Re: more support for various frame types of window functions