From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pgxs problem... |
Date: | 2012-10-09 21:43:11 |
Message-ID: | 50749A6F.9050001@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 10/09/12 1:45 PM, Tom Lane wrote:
> Well, you're making progress anyway. That one probably needs -lm
> added to the command. Hard to tell if the fact that it's not there
> already is our fault or pljava's. On my machine, if I go into say
> contrib/cube and do "make", I see -lm in the link command --- do you?
I do.
...
/usr/vacpp/bin/xlc -q64 -I/home/postgres/src/include -O2 -qarch=pwr5
-qtune=balanced -qnoansialias -o cube.so libcube.a
-Wl,-bE:libcube.exp -L../../src/port -L/home/postgres/src/lib
-Wl,-blibpath:'/opt/pgsql91/lib:/home/postgres/src/lib:/usr/lib:/lib' -Wl,-bnoentry
-Wl,-H512 -Wl,-bM:SRE -lm -Wl,-bI:../../src/backend/postgres.imp
...
Further, it appears the link command pljava is using for the AIX case is
given in its makefile as...
$(COMPILER) $(LDFLAGS_NO_L) $(LDFLAGS_SL) -o $(plugin) $<
-Wl,-bE:$(NAME)$(EXPSUFF) $(SHLIB_LINK)
I can't find anywhere LDFLAGS_NO_L is defined. however, SHLIB_LINK is
defined to concatenate PLJAVA_LDFLAGS, so I set that to -lm and POOF,
its built. scary!
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-10-09 22:41:59 | Re: [GENERAL] pgxs problem... |
Previous Message | Tom Lane | 2012-10-09 20:45:58 | Re: pgxs problem... |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-10-09 22:41:59 | Re: [GENERAL] pgxs problem... |
Previous Message | Daniel Farina | 2012-10-09 21:31:10 | Re: Truncate if exists |