<!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"> 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>