Re: Compiling tsearch2 on AIX - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Compiling tsearch2 on AIX
Date
Msg-id 16401.1116385138@sss.pgh.pa.us
Whole thread Raw
In response to Compiling tsearch2 on AIX  (Mag Gam <magawake@gmail.com>)
Responses Re: Compiling tsearch2 on AIX
List pgsql-hackers
Mag Gam <magawake@gmail.com> writes:
> I am trying to compile PostgreSQL 8.0.3/tsearch2 contrib module on AIX 5.2 ML 3

> /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/stdio.h:484:
> error: conflicting types for `fgetpos64'
> /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include/stdio.h:310:
> error: previous declaration of `fgetpos64'

I'm just guessing, but this smells to me like a problem with largefile-
vs-not-largefile support.  We discovered long ago that when pg_config.h
defines _FILE_OFFSET_BITS or _LARGEFILE_SOURCE, it's critical that the
compiler see that *before* it includes stdio.h.  Unfortunately it seems
this hard-won knowledge didn't get propagated into tsearch2 until just
recently :-(.  Try applying the tsearch2 changes linked here:
http://archives.postgresql.org/pgsql-committers/2005-05/msg00068.php
and let us know if that helps.  I have not back-patched these changes
into existing release branches, but if it turns out to address a real
problem-seen-in-the-field then that should get done ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cost of XLogInsert CRC calculations
Next
From: Bruce Momjian
Date:
Subject: Re: Learning curves and such (was Re: pgFoundry)