Home > Archive > PostgreSQL Bugs > December 2005 > BUG #2094: AIX: libraries contain the symbol main









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BUG #2094: AIX: libraries contain the symbol main
Hans Schlüper

2005-12-06, 1:24 pm


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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Seneca Cunningham

2005-12-08, 9:24 am

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com