Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group