Re: AIX Compilation Fun with 7.5 CVS - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: AIX Compilation Fun with 7.5 CVS
Date
Msg-id 200405201709.i4KH9Z928766@candle.pha.pa.us
Whole thread Raw
In response to AIX Compilation Fun with 7.5 CVS  (Chris Browne <cbbrowne@acm.org>)
Responses Re: AIX Compilation Fun with 7.5 CVS  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Your timezone testing will have to wait for the unix timezone code to be
added in a few days.

It is strange you are having this problem with finfo only in pg_dump
because it is used a lot in the backend.  Looking at the warning, it
looks like it doesn't like that 'static' specification.  If you remove
the 'static', is it OK?

---------------------------------------------------------------------------

Chris Browne wrote:
> ===========================================================================
> 
> I was hoping to check this out on "latest 7.5 CVS" in order that if
> there be a need to get any "CUT" support added, we can get that in
> _early_ in the test cycle.  If it remains borken, I'll update the AIX
> documentation to at least give the user 'fair warning' that this can
> be a problem.
> 
> But the AIX compile is breaking, on pg_dump.  Evidently there's some
> conflict of symbol names, though it doesn't look like it's due to new
> changes.  "finfo" seems pretty unique to AIX...
> 
> bash-2.05a$ make
> make -C ../../../src/interfaces/libpq all
> make[1]: Entering directory `/opt/OXRS/Sources/pgsql-75cvs/src/interfaces/libpq'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/opt/OXRS/Sources/pgsql-75cvs/src/interfaces/libpq'
> make -C ../../../src/port all
> make[1]: Entering directory `/opt/OXRS/Sources/pgsql-75cvs/src/port'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/opt/OXRS/Sources/pgsql-75cvs/src/port'
> make -C ../../../src/backend/parser keywords.o
> make[1]: Entering directory `/opt/OXRS/Sources/pgsql-75cvs/src/backend/parser'
> make[1]: `keywords.o' is up to date.
> make[1]: Leaving directory `/opt/OXRS/Sources/pgsql-75cvs/src/backend/parser'
> gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include-I/opt/OXRS/supporting-packages/readline-4.2/include/
-I/opt/OXRS/supporting-packages/zlib-1.1.4/include/-DFRONTEND  -c -o common.o common.c
 
> common.c:54: error: `finfo' redeclared as different kind of symbol
> /usr/include/unistd.h:722: error: previous declaration of `finfo'
> common.c:54: warning: `finfo' was declared `extern' and later `static'
> make: *** [common.o] Error 1
> 
> bash-2.05a$ grep finfo /usr/include/s*/*.h
> /usr/include/sys/finfo.h:/* @(#)92      1.7  src/bos/kernel/sys/finfo.h, syslfs, bos510 7/18/00 17:04:32
> /usr/include/sys/finfo.h:/* command parameters for finfo and ffinfo */
> /usr/include/sys/finfo.h:int finfo(const char *, int, void *, int32long64_t);
> /usr/include/sys/finfo.h:int ffinfo(int, int, void *, int32long64_t);
> /usr/include/sys/finfo.h:int finfo();
> /usr/include/sys/finfo.h:int ffinfo();
> /usr/include/sys/vnode.h:       int     (*vn_finfo)(struct vnode *, int32long64_t, void *,
> /usr/include/sys/vnode.h:       vnop_finfo(vp, cmd, p, len, ucred)
> /usr/include/sys/vnode.h:vnop_finfo(

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Delaying the planning of unnamed statements until Bind
Next
From: Tom Lane
Date:
Subject: Re: AIX Compilation Fun with 7.5 CVS