
> > PS: pg snapshot 09/11 does not compile on AIX (large files (don't want
> > _LARGE_FILES),
> 
> Please provide details.

On AIX we would only want to make the large file api visible (_LARGE_FILE_API)
which automatically gets defined when xlc is used with -qlonglong.

#ifdef _LARGE_FILE_API
extern off64_t  lseek64(int, off64_t, int);
#endif

configure somehow thinks it needs to #define _LARGE_FILES though, which 
then clashes with pg_config.h's _LARGE_FILES. I think the test needs to 
#include unistd.h .

> > and mb conversions (pg_ascii2mic and pg_mic2ascii not
> > found in the postmaster and not included from elsewhere)

shared libs on AIX need to be able to resolve all symbols at linkage time.
Those two symbols are in backend/utils/SUBSYS.o but not in the postgres 
executable. 
My guess is, that they are eliminated by the linker ? Do they need an extern 
declaration ?

Andreas

Thu, 19 Sep 2002 11:21:50 +0200
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: AIX compilation problems (was Re: Proposal ...)
Zeugswetter Andreas SB SD writes:

> configure somehow thinks it needs to #define _LARGE_FILES though, which
> then clashes with pg_config.h's _LARGE_FILES. I think the test needs to
> #include unistd.h .

_LARGE_FILES is defined because it's necessary to make off_t 64 bits.  If
you disagree, please post compiler output.

> > > and mb conversions (pg_ascii2mic and pg_mic2ascii not
> > > found in the postmaster and not included from elsewhere)
>
> shared libs on AIX need to be able to resolve all symbols at linkage time.
> Those two symbols are in backend/utils/SUBSYS.o but not in the postgres
> executable.
> My guess is, that they are eliminated by the linker ? Do they need an extern
> declaration ?

They are defined in backend/utils/mb/conv.c and declared in
include/mb/pg_wchar.h.  They're also linked into the postmaster.  I don't
see anything unusual.

-- 
Peter Eisentraut   peter_e@gmx.net


Thu, 19 Sep 2002 23:37:48 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: AIX compilation problems (was Re: Proposal ...)