
> > 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 ?

Further research prooved, that the AIX linker eliminates functions on a per
c file basis if none of them is referenced elsewhere (declared extern or not).
Thus it eliminates the whole conv.c file from the postgres executable since 
those functions are only used by the conversion shared objects.

Anybody have an idea what I can do ?

Andreas

Thu, 26 Sep 2002 16:19:15 +0200
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: AIX compilation problems (was Re: Proposal ...)
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> Further research prooved, that the AIX linker eliminates functions on a per
> c file basis if none of them is referenced elsewhere (declared extern or not).
> Thus it eliminates the whole conv.c file from the postgres executable since 
> those functions are only used by the conversion shared objects.

Yipes.  Surely there is a linker switch to suppress that behavior?

			regards, tom lane

Thu, 26 Sep 2002 10:55:25 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: AIX compilation problems (was Re: Proposal ...) 