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

From Hans Schlüper
Subject BUG #2094: AIX: libraries contain the symbol main
Date
Msg-id 20051206141913.07962F144A@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #2094: AIX: libraries contain the symbol main
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2094
Logged by:          Hans Schlüper
Email address:      hans.schlueper@atosorigin.com
PostgreSQL version: 8.1.0
Operating system:   AIX 5.3
Description:        AIX: libraries contain the symbol main
Details:

Problem:
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"
=> noentry point is specified.
=> no symbol main

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #2093: SUM of timeintervals, no problems in 8.0.3
Next
From: Richard van den Berg
Date:
Subject: pg_restore fails midstream