Re: BUG #1999: contrib/spi doesn't receive the configured

From: Seneca Cunningham <scunning(at)ca(dot)afilias(dot)info>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1999: contrib/spi doesn't receive the configured
Date: 2005-10-26 15:13:11
Message-ID: 435F9D07.1090503@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> "Seneca Cunningham" <scunning(at)ca(dot)afilias(dot)info> writes:
>
>>$ cd postgresql-8.1beta4
>>$ export OBJECT_MODE=64
>>$ CFLAGS="-maix64 -Wl,-bbigtoc" ./configure
>>--prefix=/opt/dbs/pgsql81b4-afilias-AIX53-2005-10-25
>>--with-includes=/opt/freeware/include --enable-debug --enable-thread-safety
>>--with-libraries=/opt/freeware/lib --enable-casert
>
>
> This is your error. -Wl,-bbigtoc is not a compiler flag, it's a linker
> flag, and hence should be specified in LDFLAGS or related variables.

I redid the build changing CFLAGS to "-maix64" and LDFLAGS to
"-Wl,-bbigtoc", and gmake check still doesn't run without first
modifying src/makefiles/Makefile.aix to add CFLAGS. The -maix64 from
CFLAGS is required to get contrib/spi to build since IBM's tools are
expecting objects using the 64-bit API to operate on, and if I were to
unset OBJECT_MODE, the linking would fail as ld cannot link against
XCOFF64 files in 32-bit mode.

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2005-10-26 15:20:54 Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals
Previous Message Tom Lane 2005-10-26 15:07:58 Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals