Re: BUG #2094: AIX: libraries contain the symbol main

From: Seneca Cunningham <scunning(at)ca(dot)afilias(dot)info>
To: Hans SchlXXper <hans(dot)schlueper(at)atosorigin(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2094: AIX: libraries contain the symbol main
Date: 2005-12-08 15:07:50
Message-ID: 43984C46.1040301@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hans SchlXXper wrote:
> with xlc compiler under AIX 5.3 (also 4.3) we found the following problem.
> The linker per default assumes that
> you are linking a main program when you do not specify a module type. So
> shared libraries contain the symbol
> main. So you couldn't use the libraries
>
> Solution:
> Using LDFLAGS_SL="-bnoentry"

How did you configure postgres? Every AIX build that I have seen
includes "-Wl,-bnoentry" as part of the LDFLAGS_SL, which is sourced
from src/makefiles/Makefile.aix (I know that a non-gcc build on aix3.2.5
would use "-e _nostart" instead).

--
Seneca Cunningham
scunning(at)ca(dot)afilias(dot)info

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Will Szopko 2005-12-08 15:39:52 BUG #2101: Postmaster Crash Using PL/PgSQL With %TYPE on Non-Exisiting Column
Previous Message Robert Bengtsson 2005-12-08 14:10:57 BUG #2100: CREATE TABLE AS - may not supply table specification