Re: BUG #2094: AIX: libraries contain the symbol main - Mailing list pgsql-bugs

From Seneca Cunningham
Subject Re: BUG #2094: AIX: libraries contain the symbol main
Date
Msg-id 43984C46.1040301@ca.afilias.info
Whole thread Raw
In response to BUG #2094: AIX: libraries contain the symbol main  ("Hans Schlüper" <hans.schlueper@atosorigin.com>)
List 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@ca.afilias.info

pgsql-bugs by date:

Previous
From: "Tom"
Date:
Subject: BUG #2099: too many private dirs ?
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #1467: fe_connect doesn't handle EINTR right