PostgreSQL 8.3.8 on AIX5.3 : compilation failed

From: Alexandra Roy <Alexandra(dot)Roy(at)bull(dot)net>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Cc: ROY Alexandra <Alexandra(dot)Roy(at)bull(dot)net>
Subject: PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Date: 2009-11-09 08:35:18
Message-ID: 4AF7D446.8020303@bull.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I am trying to compile PostgreSQL 8.3.8 on AIX 5.3 TL9 (64 bits).<br>
The "<font face="Courier New" size="-1">.configure</font>" has been
executed with success without any error but the compilation of
PostgreSQL with "<font face="Courier New" size="-1">gmake</font>"
fails. <br>
<br>
Please find below the errors I get : <br>
<blockquote><font face="Courier New" size="-1">In file included from
psqlscan.c:2385:</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:171: error:
conflicting types for 'lseek64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:169: error:
previous declaration of 'lseek64' was here</font><br>
<font face="Courier New" size="-1">In file included from
/usr/include/unistd.h:744,</font><br>
<font face="Courier New" size="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
psqlscan.c:2385:</font><br>
<font face="Courier New" size="-1">/usr/include/sys/lockf.h:64:
error: conflicting types for 'lockf64'</font><br>
<font face="Courier New" size="-1">/usr/include/sys/lockf.h:62:
error: previous declaration of 'lockf64' was here</font><br>
<font face="Courier New" size="-1">In file included from
psqlscan.c:2385:</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:807: error:
conflicting types for 'ftruncate64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:805: error:
previous declaration of 'ftruncate64' was here</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:843: error:
conflicting types for 'truncate64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:841: error:
previous declaration of 'truncate64' was here</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:860: error:
conflicting types for 'pread64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:857: error:
previous declaration of 'pread64' was here</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:861: error:
conflicting types for 'pwrite64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:858: error:
previous declaration of 'pwrite64' was here</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:928: error:
conflicting types for 'fclear64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:925: error:
previous declaration of 'fclear64' was here</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:929: error:
conflicting types for 'fsync_range64'</font><br>
<font face="Courier New" size="-1">/usr/include/unistd.h:926: error:
previous declaration of 'fsync_range64' was here</font><br>
<font face="Courier New" size="-1">gmake[3]: *** [psqlscan.o] Error 1</font><br>
<font face="Courier New" size="-1">gmake[3]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src/bin/psql'</font><br>
<font face="Courier New" size="-1">gmake[2]: *** [all] Error 2</font><br>
<font face="Courier New" size="-1">gmake[2]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src/bin'</font><br>
<font face="Courier New" size="-1">gmake[1]: *** [all] Error 2</font><br>
<font face="Courier New" size="-1">gmake[1]: Leaving directory
`/home/PostgreSQL_8.3.8/sources/postgresql-8.3.8/src'</font><br>
<font face="Courier New" size="-1">gmake: *** [all] Error 2</font><br>
</blockquote>
I read on the PostgreSQL.fr's forum that this error is linked to large
files in 64 bits system, allowing to read / write files of 2 GB and
over.<br>
I also read that I can use the "<font face="Courier New" size="-1">-disable-largefile</font>"
while I launched "<font face="Courier New" size="-1">.configure</font>"
but I don't really understand the problem. <br>
If PostgreSQL can't use such files, except for trace logs, why the
compilation fails on large files ? <br>
<br>
Thank you for your help.<br>
<br>
Regards,<br>
Alexandra
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 4.1 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anders Moe 2009-11-09 08:47:48 Not possible to create 64 bit windows clients ?
Previous Message Marko Kreen 2009-11-09 08:31:43 Re: pgp encryption functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Hans-Juergen Schoenig -- PostgreSQL 2009-11-09 08:46:06 Re: next CommitFest
Previous Message Jeff Davis 2009-11-09 03:43:00 Re: operator exclusion constraints